var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC All Rights Reserved. Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.dev/license */ /* (The MIT License) Copyright (C) 2014 by Vitaly Puzrin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------- Ported from zlib, which is under the following license https://github.com/madler/zlib/blob/master/zlib.h zlib.h -- interface of the 'zlib' general purpose compression library version 1.2.8, April 28th, 2013 Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Jean-loup Gailly Mark Adler jloup@gzip.org madler@alumni.caltech.edu The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). */ /* The MIT License (MIT) Copyright (c) 2015-present Dan Abramov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ 'use strict';var N='Y;cmo=;slice;prototype;signatureCipher;url;Ic;splice;length;fvip;indexOf;set;;s;split;S;unshift;path;push;scheme;mn;fromCharCode;/videoplayback;join;/;cmo=td;rr;match;startsWith;https://local;pop;get;Hi;n;=;1970-01-01T09:16:14.000+09:15;lQSOZ;a1.googlevideo.com;J;1;:;local;cmo;index.m3u8;www.youtube.com;undefined;dD;redirector.googlevideo.com;T;toString;/initplayback;eI;\\.a1\\.googlevideo\\.com$;//;T6;forEach;%3D;clone;fallback_count;replace;ZT;&;youtube.player.web_20250528_22_RC00;---;file;1970-01-01T10:15:05.000+10:15;://;,;";U00KaWS4HKQjZ4B8uH-_w8_;rr?[1-9].*\\.c\\.youtube\\.com$;,\'"/\u2263;reverse;1970-01-01T07:45:44.000+07:45;/api/manifest;r;?;cmo=pf;http://local;sp;/file/index.m3u8;1969-12-31T17:15:25.000-06:45;\\.googlevideo\\.com$;gk;playerfallback;1969-12-31T19:30:45.000-04:30;assign;Untrusted URL'.split(";"), zo,KST,$88,Iv,fTW,p5u,b8,tqW,eq,Ba8,wa,DT,kS,av,Nao,vSW,nW,W5,ITW,Jd,Gop,da,c5,bW5,Ad,YS,Xg,xS,Fg,ep5,Ou,Uu,zH,D8S,ydo,vo,koa,hpS,b_,aTS,Rpq,D4,ugp,LST,QQ,ESI,Wo,P8u,HWW,mp,Qvd,quI,m8W,lTI,A2,XT,Vqp,nSa,TH,WSv,pL,t6,B4,v4,I9,Gl,iWS,bE,em,wr,d8d,svS,yA,Adq,R9,uE,lE,VA,nL,W4,jvp,Yug,J6,dr,iE,X5g,x8I,FSS,OWW,ZWS,sP,A6,jm,Yo,XV,FV,OP,U85,o9,Tl,UP,zm,Km,fm,Mt,z7q,pm,tR,Iz,$5a,f4S,MSp,Gm,e8,wT,yw,k7,az,S8,b1o,e7o,woa,D5q,ue,y2o,Lm,Es,P9,kHa,H9,h7S,R7q,le,nm,gT,dT,c9,LpI,uTd,q9T,H1v,l4I,Y7,X3,Zy,Wp8,gf5, J2u,Cm,Us,i1d,Tm,M0,j8,c2q,d5u,v6,N0,AR,s8a,Io,bp,Gi,A2a,wW,j8S,ye,k0,h$,ao,Ro,ST,up,EZ,P6,mN,lp,W6,Xoo,Fpg,x5a,O1d,r28,sZ,A$,Y0,ofS,Xj,C_T,x0,Fj,OZ,U55,zwp,fK8,Kya,Mmv,Nrg,rW,Brg,p4d,ZZ,oo,voI,Cs,IKS,Ti,bLS,GlW,ewW,w4a,$N,fC,Dnp,y65,klo,MW,pC,hwu,uVa,t4,Lyd,Eo8,mng,Ij,qP8,PEW,VmW,J6a,bg,wk,yd,Dj,gog,kN,h4,aj,ug,LC,EH,Hi,j9v,Qd,YPp,md,Vd,OLW,J4,ig,ci,r6u,dk,ZLa,oo8,sH,gk,A4,jG,CEp,YN,xN,Ung,FY,OH,rk,$tp,UH,fyq,M8u,p98,t8g,Td,CC,Zj,zFd,KMu,BTW,v7q,Iyu,GmI,$g,fP,MQ,bmg,B7,v7,Ir,Gg,eFq,Dtv,e2,yRT,kg, De,Ss5,ar,u38,E7v,uF,Rr,Pep,LP,Ec,P7,S2,QV,H7,mu,qQ,JG,HmS,lF,nP,gj,QzT,iF,qsq,dj,c7,Yg,Xp,xg,sc,j2,AG,Oc,mt8,Ze,lyS,or,n7S,Tg,W7,Uc,zA,KF,JRT,$D,fF,pF,tC,BX,NM,vX,g78,In,ima,GA,bM,e5,Di,w5,yq,kD,hC,an,Rn,dtT,szS,uM,ARp,jz5,Ysp,PX,HX,mt,xtp,lM,OmS,Vq,Zmg,nF,WX,JC,o7g,g5,Ceq,iM,TTa,Utp,d5,zTI,cX,sU,KNW,YD,XC,fZo,OU,tTu,$0o,r5,on,CF,v0T,BWI,UU,Mr,IZo,bsW,eTg,pe,to,Bv,Nr,vv,Gz,b6,y$I,kiu,hTS,RTg,SZu,w4,DD,uj8,y8,LNv,E0g,Hsg,lZd,kp,VTv,n08,WNq,J$q,g0g,RW,is5,u6,c$W,Pv,Hv,A$8,Q8,qr,mm,jod,YZT,ne,X6p,Wv, Jo,Osd,r$8,Zsa,Yp,jU,Ao,o0d,Cpp,TWS,XO,xp,FO,zYd,Ce,Tz,$WT,fjg,MGS,UW,zQ,pi5,tGW,Kj,Bku,NkS,vNW,Ijd,pj,fj,tu,B2,ND,Gd5,bC8,eY8,v2,It,wiS,GQ,DWo,y4S,kdq,bd,hY5,eJ,ws,kgo,hrS,aeg,Rrd,ScW,upS,kE,hu,at,SJ,PFg,ud,Lj,HPo,Ego,Rt,Qrg,Ef,P2,H2,qD,Qj,qcq,mQS,leS,mH,ngg,Vj,JG8,ggT,iPS,dQ5,cGp,srS,AGg,jrS,Ju,gs,id,X7S,YcT,xQu,Fup,c2,OPS,sf,rGS,ZPI,Au,jJ,YE,ogS,XA,xE,CF5,FA,Of,ZO,ot,Cj,TQ,Uf,z7,Tjv,UQ8,zu8,Kt8,KD,$Mo,M58,fi8,fD,Mx,t58,pXa,vDT,bFI,GAS,pD,euS,wXp,DMa,kAa,yCg,huu,tg,aip,RuW,Nx,SUv,uCS,Ltu,EDI,vj, PMI,Iu,HF5,G7,bK,qU8,er,mMd,wF,D9,li5,V5g,ya,hg,Wta,au,nDI,JCg,gD8,iFq,cCS,Ru,snv,LD,Ez,jna,YUI,Ftg,OFv,Pj,Hj,Qa,qx,mT,lK,Va,nD,Wj,Jg,gF,iK,dF,CM8,oDo,T5I,zXg,UMu,$rp,ZFW,KmT,rCS,cj,sz,MU8,pv8,tUg,XZ,xF,FZ,Ag,N4g,Oz,fDu,IDg,Gzg,vpI,rF,Uz,z1,K_,bea,B4q,eX5,f_,wvg,Dr5,yoW,kzd,hXu,SWg,uOS,Lmp,Epp,Mq,p_,tb,BF,P6S,Heq,mrI,lD8,Nq,IE,npS,G1,vF,JoT,WmS,gpu,ie8,drp,e_,wo,sWo,AoW,jWS,YWv,Xvp,xrW,FmS,Oe8,roa,Zeu,y0,kj,aE,RE,opq,zkq,KHS,fOS,$DT,MJ8,L_,E0,p2I,tJS,BsW,PF,HF,Q0,qq,m4,lZ,V0,n_,Nso,Jb,IOu,iZ,GQo, bja,cF,s0,Ab,j_,ekW,w2S,yud,Yj,eU,aZ8,ro,kQu,hkS,Zq,aOT,O0,SfI,Rk5,FU,oE,C_,uAW,LHa,EE5,Pd5,T1,Hjd,U0,T4S,C6q,zf,Kr,fr,MX,mDg,pr,t8,NX,lOp,VJ8,vO,ijv,wB,WHS,gEu,bL,Gf,ak,Sk,dDo,EA,cu8,PO,HO,st8,jt8,X2a,nr,J8,ru8,Zjg,oEd,sA,z5S,lL,FHu,$xg,UDS,CdI,TsW,f9d,KT8,jk,xZ,pj5,trv,BFW,NFq,vFp,OA,I9S,ZP,G7q,wjp,DxS,ok,k7a,a9a,h5I,R5I,Tf,KV,pV,Bc,NY,vc,Ii,Gh,LTo,EFo,bA,PKS,eI,wS,tm,Df,y2,kV,bZ,hm,HDg,Ri,mxI,SI,uA,VrS,l98,nFS,WTg,Jgu,LV,gFT,iDS,dx8,EE,Pc,suv,Yz8,Xj8,Hc,rgq,OD8,ZDp,oF5,CKq,Q2,TFa,xxI,qY,UxI,zma, mV,$qq,fqu,M_u,pFd,t_g,V2,BoW,Nov,vju,IqI,emS,G1S,nV,Wc,Jm,gS,iA,dS,cc,sE,Dqv,jI,Am,ybu,XW,aqS,YV,RmI,S0u,H_q,uU8,L45,Ej5,PZg,xV,FW,OE,QEu,rS,Zf,oi,CV,Th,UE,njT,q0o,fG,V_S,Mc,lqW,$n,z$,mqS,KG,ty,Jb8,Nc,Bx,eP,wh,yL,dqW,DV,al,cb5,Rl,gjT,jEW,Y0q,XFW,LG,ED,Px,xqd,Hx,QL,qc,mi,F4o,l2,VL,nG,O_a,rb8,Wx,Z_v,Tod,Agv,CZg,Uqd,zyT,KZu,fPp,oju,Mkp,BBW,cx,Ay,vZp,IPS,Gfq,brp,wO5,X8,Yn,DXS,eyI,kfu,aPd,hyd,SAT,OD,uuo,F8,ZV,LZo,ol,T$,UD,EZI,PLa,Ni,HrI,IG,Qko,qAW,aG,mXo,Vku,RG,nZg,WZp,c8S,J8I,E8,Ps,Hs,qi,mQ,XOo,lx,Vf, nl,FZT,gy,Or8,r8W,ix,oZg,cs,s8,AU,jy,CL8,Y4,x4,Fi,O8,ry,TB8,UX5,zEo,oG,Cl,TJ,U8,zE,Kt,KVI,$YI,ffq,MI8,pca,tIW,$L,BST,vm,NSp,vVS,Ifq,IO,bl,e4,we,kL,hS,aO,bV8,ul,Lt,Ep,eE8,wcv,Pm,DYa,ym8,QY,EVo,PAp,HV8,qz,QiS,qE8,VII,ll,WVa,nVa,Jm8,iVS,dYp,Wm,JS,cmo,ge,il,de,cm,sp,AS,j4,YL,XP,xL,FP,Op,re,ZB,sia,AmW,jiq,Ct,KJ,YEI,pJ,ta,Bg,Nu,vg,GM,bm,OV8,eg,wV,DQ,ZVd,rmp,Xcp,ha,kB,UYg,aw,qu,Pg,mw,lm,KiI,nJ,px8,fVp,MPu,Bhg,bGv,NhT,IVu,G$I,zba,Ja,Wg,wx5,im,dV,cg,DcT,xB,yy8,Fs,OJ,rV,ow,k$o,TM,UJ,hbI,zC,K3,Rb8,Mm,tV,BK, Nm,vK,IZ,GC,bu,ep,w0,u8o,DF,hV,ka,EnS,qDS,HGW,Qlu,mca,lVu,nnT,Wi5,VPq,gn5,Sp,uu,PK,iGI,dcW,ET,HK,slS,Ay5,xco,XxW,lu,VS,n3,WK,JV,iu,OG8,ryv,ZG5,XH,xa,ona,C2T,Thd,oZ,C3,TC,Ucd,z3W,$i8,My8,$i,psa,p8,f8,Ng,vJ,GN,tyS,hO,aY,RY,SO,L8,Ex,HJ,GJ8,bl5,qg,e3a,wsd,lN,Di8,yUo,Vl,n8,kJ8,h3I,R3o,gg,uiI,LQS,WJ,E4o,PxS,QG5,Hlv,sx,S88,miT,lzo,FQ,XQ,Vyq,n4W,Ox,rg,WQT,JUp,C8,g4I,ild,diq,cUo,$K,sGd,AUS,jG5,Y8S,Xs8,xip,FQo,Olp,MJ,rU8,tc,o4S,Cxp,Tyu,Uiu,znW,Bk,es,$zS,pmg,wD,t4p,NeS,K9a,vLS,IB8,GES,fBq,M4S,NJ,vk,ba,BeS,G4, Is,btS,end,wma,DzT,ySg,kEd,uPa,hnq,hc,as,Ss,Plo,qpv,QO8,Rs,mW,mzo,nR,lBa,nLd,dD,V48,jOd,W95,AS8,js,Ypu,F9q,YK,Ac,XmW,xza,Ot8,xK,Zt5,oLv,ClT,Teo,Uz8,z8S,Kwu,rSg,fQg,Mgp,pgv,IQT,tgg,bJI,Zh,e8u,os,CR,T4,wgp,Dug,Kv,$h,kMp,yaI,fv,h8p,R8v,usS,SJ5,Lw5,HJ5,EBv,wJ,kh,y9,Qw8,Dp,hY,aP,E2,PL,qJS,Q9,lQg,li,ml,nv,WL,JY,gJ,Vg8,ii,cL,nBv,AY,Yh,Xr,WwT,Jad,gBa,iJv,xh,O2,du8,rJ,Zp,oP,sw8,Cv,TW,AaS,zu,fQ,$T,KQ,Me,pQ,Xgg,oBa,TVg,ZJ8,raq,Cm8,Ne,Gu,$mT,Uug,zzd,K6g,YJo,GCS,S3,IFu,wKI,vaS,BM,uc,D6,a2,b3p,e3,Fwq,xu8,OJS,I2, N0S,HM,Rzu,Qz,uHp,L6p,EaW,mx,Puv,H3v,QZg,mmq,lFI,nQ,naI,WM,W6W,JVu,i35,dmg,gx,cVa,AVo,ic,jZI,dx,cM,wg,rVu,Um8,FX,KaS,MO8,rx,tO5,Bga,Ngu,tt,pc,via,fc,Htq,Kc,Mb,$l,Z6,wM,ej,yb,ht,GNg,aT,Sj,un,b8o,eWu,PW,Dgv,yO5,kNI,hWo,as5,RWa,Sx8,uQg,La8,Ei5,PNq,mh,H8a,ln,nc,QYp,qxg,mgg,lsW,VOa,WW,Jt,niW,Wau,JOu,giW,i8q,dgu,sa,At,jj,cOu,Yl,sYq,xl,jYT,AOp,Oa,rM,Zv,oT,Yxa,Cc,TU,XJd,xg5,Ua,zs,Z8T,Fap,rOg,O8p,Kd,$k,fd,oi8,CN8,Tgd,MS,zxS,fh5,$Jd,pd,tP,BP,NS,vP,Gs,bs,e$,wc,DW,yD,Msv,pkg,tsp,kk,hP,a3,R3,us,E$,vKo,NDS,HP, IhS,QD,qS,mc,ls,VD,JP,is,dc,cP,s$,AP,j$,Yk,ex8,XN,xk,FN,wkW,ZW,DJu,o3,Cd,hxu,ahS,RxI,u$a,EKv,fp,Pa8,pp,MP,qnd,mJo,lha,BR,hE,nK8,RV,SX,uz,Lp,Jco,EG,PR,HR,gKW,Qx,WWa,qP,m$,dJq,iR5,lz,Vx,np,WR,gl,ssv,Ac5,dl,cR,AE,jX,js5,sG,xJo,FW5,ORq,rcS,ZR8,oK8,Caq,X2,Y5,Xko,zqu,x5,$1v,fpd,oV,MLo,OG,rl,pLI,Cp,BJW,vho,T9,UG,Ipv,zv,bvI,KI,hqg,yYT,eqT,D1W,wLq,fI,Md,pI,t0,BY,Nd,vY,Gv,RqS,LlS,wz,VUS,Dl,Ehp,HvT,kH,Sh,h0,RU,aU,m1q,q2v,QPS,lpS,uf,VLp,gh5,LI,PY,d1S,HY,QN,qd,mk,cY8,sPS,lf,VN,nI,AY8,jPv,J0,sB,A0,jh,YH,Xt,xH, Ft,OB,rz,Zl,oU,CI,Tv,Y2S,XLS,UB,zL,Kf,$8,ff,MA,x1q,Fl8,pf,a7,Zvg,oho,R7,Sv,Q7,qA,TJo,V7,U18,zUg,JM,Kxq,f6g,$eq,M38,pM8,t3v,Bxq,Nx8,vT5,Gu5,I65,bQ8,Deo,ku8,wMS,hU8,a6u,Smp,iR,dQ,Lx8,uXo,c_,sI,AM,Pca,jv,Y8,XS,Q2d,qmI,x8,HQu,FS,V3I,OI,rQ,ZR,o7,Cf,TL,UI,zj,Ku,$9,fu,M3,pu,th,BT,N3,vT,ID,Gj,b5,eQ,ww,D2,yg,k9,hh,aD,RD,SQ,u5,Lu,Ej,PT,HT,Qg,q3,me,l5,Vg,nu,WT,Jh,gw,i5,dw,cT,sj,Ah,jQ,Y9,XM,x9,FM,Oj,rw,Z2,oD,Cu,Tj,Uj,zn,Kh,$z,fh,Ma,ph,tK,Bd,Na,vd,Gn,bY,Wxg,ei,C,w3,If,Dx,yc,kz,gTv,af,de8,hK,clI,Si,s2u,Lh,Rf,E5, Pd,Hd,qa,j25,Ymv,XMd,xea,d3,cd,Wd,s5,OQv,rlS,ZQW,oTI,Al5,Ccg,Qc,TxW,UeI,ji,O5,Yz,lY,ze8,m0,AK,Xe,r3,$b5,Vc,nh,Fe,xz,fvd,Zx,of,Ch,Tn,Mj5,U5,zw,K6,$R,f6,pWp,tjq,NMq,vla,tA,Bt,GUT,NI,DbI,kUd,av5,Reg,II,ucv,LhW,yU,Eld,kR,hA,aI,RI,SN,uS,PnT,QTg,qaq,HcW,mbp,lvu,Ht,QU,m7,VU,n6,Wt,VjW,JA,nlT,gE,iS,qI,s4,AA,jN,YR,Wh5,ct,glg,XJ,ica,dbS,xR,ct5,FJ,O4,sTo,Atp,rE,jTS,Yaq,ZU,XWI,xbI,Fh8,Oco,oI,C6,rtq,Zca,Tw,U4,z5,olu,Kn,$I,fn,MT,Cn8,pn,tq,TMv,Bf,UbS,NT,zvS,Kcg,$Sv,fWp,M$5,pPI,vf,t$o,BcT,Ncp,IA,vku,G5,IWT,bB,Gsq, ea,bdI,evW,wI,aA,wPT,RA,Sa,uB,Ln,DS8,Eq,Pf,Hf,yPI,ks8,qT,mE,aWa,lB,Rv5,S$g,hva,uNo,LcW,EkW,nn,Psp,Wf,Jq,gI,iB,Hd8,dI,cf,Aq,Q3T,YI,XI,q$S,FI,Z8,Oq,Uq,zr,mS8,KZ,lWW,fZ,Mh,pZ,V$I,BA,nka,vA,IC,Gr,Cn,bh,el,wn,Wca,D0,yr,kr,JPp,hn,aC,RC,Sl,rn,Z0,CZ,Tr,U3,zx,gkp,idW,dSW,MB,Kw,pw,tj,cPo,s3W,APS,BC,NB,vC,j3a,Y$v,fw,XPd,xSq,I4,Fco,Gx,bq,wf,Db,yW,km,hj,R4,Sx,Lw,EL,PC,HC,uq,Zda,okS,qB,mf,lq,Csv,nw,USg,WC,Jj,zPq,gf,df,sL,K$I,cC,Aj,jx,Ym,$Pa,Fv,MXS,pRW,tXq,rf,OL,BlT,Nlg,v58,Zb,G9u,VW,IEp,bpp,o4,eP8,Cw,wRp,Tx,DPT, yES,k9d,hPI,aEu,UL,SGT,RPd,zp,fb,u25,MZ,L$S,pb,E5q,PzS,tQ,Hpd,QVg,qGq,mPS,Bp,lEo,NZ,n5I,I$,Gp,JEo,W$I,g5g,ipa,dP8,e7,wi,DM,cEa,sV5,AE8,jVT,YGS,XRS,xPS,F$8,Op8,rES,kq,hQ,ZpW,o5u,a$,R$,Cz5,S7,ub,ES,Tld,Pp,Hp,Qk,UP5,qZ,zfd,m3,Kkd,lb,$dS,flI,Vk,Mhv,pY5,thp,nb,Wp,JQ,gi,ib,Bzd,Nza,di,cp,sS,vHo,AQ,j7,Yq,X0,xq,IlI,Gvq,F0,OS,bIq,ri,ZM,o$,Cb,BM5,efd,wY5,Tp,DdS,y0g,kvp,US,zc,KU,$P,fU,Mv,pU,tv,BI,Nv,vI,hfv,al8,y3,kP,Rfv,hv,nU,Q3,gb,HIS,Vhq,QU5,nH8,J0v,gHW,WkW,iIW,ddS,c0o,rb,jUq,xdg,XYg,OII,r0S,ZI5,Tc,UF,CfT, Tza,$AW,z6,fRS,Udv,K9,$c,f9,MG,p_a,NQd,tvd,GLW,h68,kLv,bf8,aRS,tk,w_p,e68,uSW,PRo,E8o,mAS,Hf8,Ba,NG,JMS,G6,g8q,YIT,j7I,AM8,s7a,dAg,FKv,xAd,cMT,CRd,o88,TQp,yE,Kev,UAg,zoq,ifv,$38,f2I,bk,wU,rMT,OfW,Zfu,MQu,eb,X_S,tQd,NwI,I25,buI,D3T,yhd,hoo,a2S,Sjq,RoS,Huo,Leq,uM5,QDS,l2I,VQ5,n9u,WeT,QE,ox,iuo,Jha,lk,sDd,Wa,jDS,Yj5,AhI,Jk,XTS,gU,ik,L6,dU,A0I,ca,sl,Ak,x3o,Fe8,jb,Oua,rhp,ZuW,Yc,Xl,xc,Fl,Ol,rU,ZX,od,C9,o9I,C5a,T6,Tw8,Ul,$q,zI,Kg,zHd,U3W,$$,K0a,$aa,fxg,fg,Mf,Mi8,pg,pdu,tiS,FkI,chd,B38,t3,E4,p6,kc,N3v,vz8, Nf,WKu,va,IxS,qG,mo,ad,hk,p9,Sb,eoT,kjp,Rd,lRv,qjg,Gnu,R68,DAT,vl,d3I,CU,eHg,bhT,MvS,wT8,wdT,m3u,Pa,VvW,n8S,LKq,GjT,v9S,IRT,BQu,KKW,z6u,oH5,pTg,yMS,E9o,Q7S,qIu,L9,El,uk,P58,Bwv,yKv,Daa,Ie,GI,bV,eR,w8,Dw,kna,h3,ae,Re,uV,Lg,hHS,SR,Eo,Pl,axI,Hl,Qm,qf,lV,S5S,uev,Vm,ng,Wl,J3,g8,iV,d8,cl,Hhu,A3,QfT,so,q5T,Ezd,PYq,maq,jR,Y$,lxI,Vio,X9,nzo,eO,JKI,W0T,ihv,cKp,sfS,daW,Y55,XdS,F0p,oe,Cg,Oha,rKa,TI,Uo,ZhW,ozp,CYd,T3g,KX,Uag,fX,Mo,K78,$Ip,ptS,BEo,NEa,tNI,BN,vN,No,vRu,IUu,b65,Gwq,pX,eDo,wto,DIT,yAT,tH,RDI,S4v, uJa,aUp,hDT,kwu,L7d,ERS,fUo,PSS,MN8,H6W,QIS,VN5,q4a,mIo,lUa,JAu,nRW,W7q,gRo,i6g,GF,sIp,dI8,AAS,cAq,jII,Y4v,Xtq,xI5,F78,O68,rAo,Z6I,oRW,CSI,TES,UI5,bH,KEg,$To,f8v,zG5,Mau,pfv,NII,wp,k6,aR,vIo,RR,SA,uH,eG8,DTS,wfS,k55,Hna,a8S,lH,Ee,yqT,bnS,G5g,I8I,m2,PN,qo,gp,iH,mTv,dp,cN,JH,WE8,l8W,Va8,Jq5,se,AH,inu,Y6,XG,x6,FG,Oe,rp,ZJ,dT8,cq8,oR,CX,Ue,AqT,jAS,TF,YqI,FE5,OnW,zk,rq5,fN,Zn8,M6,tL,oI8,pN,Be,CBS,ve,UTu,zV8,Gk,br,kb,$hg,wP,hL,Ra,f0p,ur,yM,aa,Mlg,LN,pAW,Ed,tlT,eK,D1,K1q,SK,Pe,BnS,Nnd,He,vrS,QM,q6,mA,lr, I0q,nN,VM,We,JL,GrT,bZu,gP,ir,dP,ce,sd,eVq,AL,jK,wA8,yna,Yb,Xk,xb,hVv,kr5,Fk,a0u,RVS,S3T,Od,ubd,L1o,Erd,PhI,HZg,rP,Z1,oa,CN,QC8,q35,Ud,mhu,zO,Kx,l0g,Vlq,$y,nrv,W1d,dh5,cnS,JnS,grv,iZ8,Mp,px,t5,Br,sCg,AnI,jCg,Y3v,vr,F1u,I6,rnu,ora,ZZa,DH,wN,Tn8,UhI,zad,Kfp,y6,$Bd,h5,a6,fbu,pCo,txI,Sn,Pr,IbW,EIu,HN,bwv,eaq,wCd,DB8,yjI,LX,uj,qp,mj,abS,RaS,SLI,lj,Pqg,uvp,Lf8,Q4a,qLu,V6,mBo,Hwo,lbS,nx,Wr,J5,Vxo,nmg,gN,ij,WfS,dN,JjS,cr,Hr,Yy,gmS,PBS,hGu,X7,F7,rN,ZH,o6,Cx,TO,OQ,KO,dBg,fO,s4W,Mw,j45,Ajp,cj8,YLI,XCS,xBg,Nw, Ffv,Owa,Zwo,vZ,qq5,IQ,Cqg,UBo,VO,zSS,K3q,QO,RGq,uIg,LEa,omp,bI,$Zp,fMT,eo,M7W,D5,yT,kv,hw,aQ,ppS,RQ,So,t7S,Bia,uI,LO,Ei,PZ,HZ,QT,vqW,NiS,qw,IMS,bb5,mF,eSI,Gpo,Z5,Oi,oQ,T0,Ui,wpT,SSg,g3,r7,fa,Pbq,Q$S,iI,BG,g7,NR,Gt,Ff,b1,nqp,e1,wA,W35,JQT,gq5,ibq,DY,dZT,cQg,yJ,s$S,xZI,Xpg,AQd,YSo,j$8,kt,F3o,hX,ObT,rQq,oqT,CbW,TiS,UZv,Meq,La,EN,Bbg,PG,HG,Nbo,Gcv,bUq,eiW,wIT,QJ,Dvd,kcg,hia,sN,Qxp,ud5,Lsg,mvI,AX,lIo,nPq,Veu,WsS,Yt,Fq,Jv5,j1,ON,rA,gP8,dv8,AvI,Tt,$3,Bw,Ip,zBW,Koq,DA,wH,k3,hf,$GT,pap,Mbq,tb5,Rp,ap,BUa,vcS, IXT,b9S,L5,G6S,eBW,waS,Pw,Hw,yka,Ca,uv,Fsg,iUW,oPI,n5,y_,NUq,sM,NE,ju,Y3,qlg,lXa,mG5,vw,GP,x3,F6,ncI,OM,rH,Wog,bv,ZA,fXS,C5,Slp,TP,Jkv,YFq,jxS,cvg,UM,i98,$O,Fo8,xGI,rkI,Z9S,IN,bD,ez,GG,Do,yp,ocq,kO,TUq,hT,z1W,Sz,UGv,uD,Lq,MRW,Eh,B88,N85,Qp,v$g,bg8,sh,jz,YO,Fm,e1v,Oh,rq,TG,Uh,zD,KE,wlp,$M,fE,h18,M$,pE,awS,R15,t1,SoS,u9q,LGT,E$p,B1,N$,PVu,Qe8,qoS,GD,b4,DS,kM,mfS,lw5,h1,a0,R0,S9,VRI,n$p,u4,WGd,J3d,LE,igW,g$S,dfS,E7,seT,c3g,A3I,P1,H1,je8,Xlu,xfS,Qt,q$,mI,FG8,r35,l4,Zgp,nE,o$q,CV5,Vt,W1,J1,gK,zI8,$oW, T8g,K2q,fJq,Uf5,MAp,pNW,i4,tAv,NpI,GFv,eIW,bXW,xM,Xx,rK,DoS,ZS,o0,CE,kFu,TD,hI8,yHa,U7,SeT,ze,K0,uGo,$C,L2p,SFT,HUd,PHI,E6d,QRp,HXS,qe8,f0,ML,p0,tp,mov,n6g,vB,IS,Ge,JHa,W2u,BB,g6q,iXS,doo,sRq,bW,ZXg,kC,hp,$6g,c1,MKI,peq,tKp,BPS,NPS,RS,vbd,SW,uW,L0,I1d,HB,Gk8,bNq,Qv,qL,etS,weq,D68,yLT,kku,mz,PB,htd,a1q,lW,Sda,ukg,LA5,Vv,EbS,Prd,HN5,Qa8,qdv,m6u,l1S,VKa,nb8,WAo,n0,gbq,WB,d6a,iN8,sad,cL8,jaT,d_,JLu,Jp,cB,sK,Ap,jW,YC,X1,xC,Ydu,F1,XeI,r_,ZNq,TPq,U6v,zZI,Kj8,C0,$p8,Cro,rLu,fHo,Z$,Mng,tna,OK,oS,FAu,ONq,Te, BNo,NNu,ob8,x6u,vyp,zV,IHd,KM,$Y,GOo,fM,wrS,bxS,eZW,M4,Dpo,pM,tI,Bz,N4,y5W,kO8,hZa,vz,RZg,SQp,IM,u7W,GV,bU,Ljq,EyS,Pjq,Hxa,Q6S,qQI,Wj5,lHg,v6S,wG,gyT,ixa,Vn8,nyu,mpI,kY,j68,yB,Dc,J5o,Xrv,A58,s6S,c55,dpI,aM,xpu,dK,RM,Sw,uU,FjI,LM,Oxo,Ey,r58,O7,ZxI,Pz,A1,YM,BpW,q4,lU,TNv,Up5,VB,Wz,mR,QB,JI,Hz,oyg,CjS,gG,zMS,KFa,iW,ALv,s7,iU,$wI,nM,f58,Mop,pZu,to5,dG,cz,B7o,N7S,vvd,I5S,G0I,prq,yv,AI,jw,sy,eMa,aJu,RIp,YY,wZv,Dwq,ywS,k0I,XF,hM8,xY,a5a,ufp,FF,LF8,PIv,Evv,qi8,Oy,oM,l5q,mwa,Jw8,nvS,gvu,iOT,VoS,WFS,dwW,CM, cw5,Awq,sQp,TV,Rtg,jQo,YiI,XZ8,xwS,FF8,OOW,rwv,ZOT,ovW,CI5,T7o,Uwo,zNo,z2,Kro,Ko,$Rd,$e,fo,fYg,M7,M1o,pGT,po,t1q,BAq,NAS,vtv,tr,VAS,B0,baS,N7,Gt8,eNW,wGT,lJS,NL,DR5,yXp,ktq,IF,aY8,hNW,Ha8,P18,DL,QBa,EtI,lYg,yi,V1q,ntS,Wrg,iaa,dRI,JXS,sB8,AX8,jBd,YN5,XGq,Frp,OaW,rXv,xRS,hr,v0,otW,cXv,C15,gtI,aF,UR5,Zaa,ke,zgS,KUv,Muv,BHg,pwv,SF,NHv,uT,$EW,RF,jF,fAW,xe,GPp,egT,b5W,wwS,IAg,DE8,yfW,Ye,kPa,hgS,aAu,Rgq,LUa,u6S,SMS,Fy,E3W,H58,Qpq,qMp,mEu,lAW,Vuo,g_,n3S,WU5,g3q,Jfo,i5g,cfv,spq,dES,Xy,HOa,jpd,YM8,Xwq,Cv8, O5W,rf8,Z5v,THT,z$S,YQI,Og,FUI,xEu,UEu,Fx,o3o,ew,j9,tuT,pDI,Mzd,tzW,Bqa,GG8,bqq,Pvp,Zc,rG,$sv,e$8,fod,wD8,Sig,DsI,RMo,v3d,K8u,QQd,Co,T2,kGg,Ug,h$S,aoq,R$v,Shq,umW,EOg,PD8,Vwp,Hqg,qhS,nYv,KH,iM8,JIo,gY5,sMS,AIp,jMg,$x,Yy8,zS,Xzg,cII,WR8,fH,x4I,QNv,FR8,Mj,rIT,OMI,oYp,CUS,TGg,ZMI,pH,Kbu,zla,MF8,fLp,$78,p0o,tF8,tx,BXW,NXg,IL8,G2T,ve8,bog,k2u,w0o,D78,yrg,hld,aLS,Rld,uy8,SgS,Lbu,Eed,B3,HoS,QFu,m7v,qgu,lLg,PT8,VFS,Wbp,Jru,iop,crg,geg,sFp,Aro,jFp,neS,YgI,d78,v3,X0W,x7W,Fbo,Oov,rr5,Zog,oeW,TXp,zOu,KO5,$j5, ft5,Mf8,Ic,p3p,GS,BvW,NvT,Dt,It8,yn,bHd,eOa,w38,DjS,kSI,yxg,vOS,ROT,Nqv,kx,ac,hOW,atW,Stp,Sf,LOq,u4o,Exd,PG8,HHo,mjW,Qco,nx8,uG,qto,WOp,LH,cxp,Jxo,P3,H3,scI,Et,Axq,Qn,X3S,Yta,iHd,dja,xjI,FOW,OHu,gxW,rxS,qj,ZHo,jcd,GSu,Rc,lG,Vn,CGo,Tv8,Uju,zL5,KY8,$9I,fNS,MdI,p8u,nH,tdI,N9v,vwp,INS,B9o,GTS,bzW,eLg,w8v,D9u,yWp,aN5,hL5,kTo,RLW,Jx,rPg,SRW,uBd,gv,LYS,Ewo,dv,Qyq,qRa,c3,lN8,VdW,m98,Hzd,Ax,iG,PPT,X4,Yx,nwa,xx,jf,izS,sya,jyo,YRu,x9I,JW8,AWg,FYv,gwq,Ozd,rWS,oc,F4,CPu,T9u,Zz8,rv,zhd,Kg8,cWI,d9W,U9S,$NI,X8S, owI,WYg,CH,TS,Ut,fdo,zT,vWT,tE8,IdS,B1S,puI,G8g,MEu,wu8,bK5,Kz,DNT,k88,adT,Rhp,Swg,EW5,pz,P$v,uaq,Zt,qwW,mNa,Iy,TAT,$w,ldo,VES,WgS,nWS,Ji5,Q5a,B8,gWW,iKq,dNg,s5q,ciq,AfS,tW,Aia,Yw8,j58,xNW,XuI,hho,OKW,Fgo,N9,fz,rio,bP,ZK5,oWS,C$u,T15,UNg,GT,Lgu,yTS,Ot,zAS,ed,Kv8,$ko,fnI,MYp,pqW,w9,DN,B2I,N2S,vJv,tYd,Inv,yo,wq8,by5,eA5,Dk5,kw,ys8,kqp,hA8,hW,an8,SXu,u_W,Lvp,ay,RAS,Ry,Sd,EJp,PQa,ER,uP,Lz,Hyq,P8,Q_T,qXS,mkg,VY8,lnW,Vo,Wva,JsI,nJd,gJT,nz,iy8,W8,dkW,JW,csa,s_S,XqS,YXp,Oy5,Asq,xkW,g9,j_q,Fv8,rsu,ZyS,oJq, CQv,d9,T2a,AW,c8,Uka,jd,Yw,KL5,$Cd,xw,FB,fGS,XB,M0T,OR,t0S,pEv,ZN,oy,Cz,v2v,BR8,NRT,TT,IGu,wEp,bYa,GBo,ecI,UR,yzo,Rcd,S1p,KK,uz8,z8,kBg,hco,Pog,$W,fK,HY8,QJu,q1q,mC8,lGu,ti,WLa,Jzv,g2I,Bu,n2u,dCv,pK,NN,vu,V0q,I5,cz8,b$,sJg,G8,eE,AzS,jJ5,w1,Y1q,XEo,xC8,Dd,yu,FLq,OYI,rzu,ZYv,o2I,Cod,TRW,KDT,UCW,$yS,fg5,NdS,vUT,BdW,IgT,G3v,bSS,edS,Hu,Dyd,yJS,LD5,mg,HSv,myp,qru,QK8,SrS,u5W,k3a,agS,EUS,l$,Vu,V6a,nq,KGW,nUu,Wu,g1,WDv,JJT,hdT,PCS,iSd,dy8,cJ5,i$,xW,AJd,jKT,Yra,xyv,XSg,FDo,Fa,Ow,OSu,oUI,CCp,o5,ZSo,TdI,Uyo, rJo,Uw,z08,KPu,T8,$HW,fku,MH5,p$q,BL5,tHg,IkS,GZ8,NLW,e0v,w$o,vXI,$J,fy,DHW,h05,Mk,kZI,yZg,aka,SbT,R08,uLS,py,LP5,EXg,Pyv,H7I,Qhu,qbv,mHT,VH8,lkS,nXv,WPv,JZa,gXq,i7v,cZS,Bq,ts,Nk,sh5,AZ5,dHI,FP5,O7T,rZg,Cy5,oXg,Z7q,TLu,UHp,vq,I_,zKo,KnW,$2d,f3u,pQI,tZp,bQ,B6g,Gq,w2,MZT,N6u,vdo,I3a,GXq,biq,eKp,yX,wQa,D25,hKa,kJ,a3u,kX5,hs,a_,R_,Sv5,uD8,Ln8,RKu,P9q,Edd,Hiu,Qbu,qvv,l3S,Wnu,m28,VZd,uQ,JN8,ii8,d2g,sba,ANv,Ly,EX,jbS,gdW,x2u,XQ8,YvW,Pq,Hq,Oi8,Fn5,QX,qk,mv,rN8,lQ,Zi8,od5,C98,T6T,VX,U28,ny,zRS,Wq,Js,g2,K5q, $_p,fCu,iQ,d2,pn8,NCW,vAI,MVg,ICg,eR5,wnS,D_u,bTu,GyW,kyq,yDW,hRI,SOS,As,L5S,uKd,aCI,RRa,EAv,Pw8,jY,YJ,HT5,QXS,qO8,m_d,lCq,VVg,W5T,JDq,YO8,d_p,cDu,gA8,x_v,Zn,Cy,oAW,Cwq,zB,KY,TCa,F5d,r2,MC,fY,Tq,zsT,KBp,pY,frv,phW,MtT,tz,UX,OX,$O5,$2,OTo,U_8,B$8,X_,BE,N$u,v1S,o_,rD5,NC,vE,Iro,IJ,GB,bo,GKW,bkd,whq,DO8,esI,e0,y9W,wR,DG,kK8,hsu,ar8,Rs8,SCq,uwp,E1I,LBq,k2,yC,PtS,QHg,Hkv,hz,aJ,qCa,lrS,Vt8,RJ,mOW,n15,WBI,J9o,g1T,ik5,dOI,c9p,uo,LY,A9S,sHg,jHd,E1,PE,XhS,YCu,xOd,Okq,FBq,r9S,QC,Zko,o1I,mL,CtI,T$o,lo,UOd,zCu, KJ8,$Vp,f78,pHa,tBa,BuI,MBu,Nuv,vup,I7S,GYT,b4W,eCq,wHv,DV8,gR,yF5,kYI,hC8,RCq,EuW,uo5,a7W,cE,S6q,dR,LJp,s1,H4W,PXu,Az,q68,mVS,l7a,elI,x2,GIv,Y2,Fz,Xz,rR,VBI,nuT,dVS,cF5,sm8,ZG,AF5,jmg,Y6S,ouS,z3,CXg,Z48,TuT,KS,fS,My,zjT,UVv,XHu,pS,$lI,f_8,Kqa,pVp,tJ,tMg,BY8,NYS,$U,I_u,v_T,BS,Ny,O4v,TB,Gaq,bAv,eju,wV5,xVd,FJu,U1,Dlq,yed,kad,hjW,a_I,vS,S_5,P7u,G3,HAW,Qg8,Lqv,e6,q_S,ml8,Rjq,l_5,E_q,VM8,wd,bC,n_I,JeT,Wq8,IK,iAu,Dg,HKd,dl5,AeW,sgu,Y_a,XVT,jgg,kU,y$,Fqp,OAI,reS,ZAg,MCo,z2p,KX5,TYd,tCg,C7p,RK,vsI,BmI,Iuv, G_a,aK,uC,LS,DKI,wUp,e28,PS,fuS,mD,k_d,qy,Er,auq,R2u,SVT,pUI,nS,JJ,unq,$KS,y_a,HS,LXa,S6,Es5,POW,H$g,dd,cS,h2S,Qqp,qV5,sr,AJ,mKp,Q$,NmW,luT,VCS,nso,WS,WXg,lC,J_S,V$,RN,gsS,dKo,j6,YU,c_5,sqq,A_a,iC,gd,jq5,ceo,YVS,Ulv,XUS,xKT,FXS,O$8,X5,xU,osd,UK8,K_S,Z$d,vQv,IaS,GRv,b2d,e_u,wbS,DUd,kRS,yBI,F5,Or,rd,h_8,aa8,R_p,Kb,SYu,Zg,uEu,oK,L_8,CS,T3,EQp,VR,Ur,MI,P3T,VE,g9d,H2a,Id,Q1u,Xv,xm,qYS,Bl,mUu,laS,n9,YB8,VcT,nQu,zZ,JBW,gQu,K7,f7,MH,i2g,s1a,ABo,p7,j1d,dUa,Xbg,cB8,YYa,xUI,F_q,O2W,rBa,tZ,oQS,JtI,lS,vp,C3a, Ttd,bb,Z2u,dE,UUo,zJo,KCT,B$,QW,fm8,MDI,NH,v$,pyW,Ih,tDp,$X,BOa,NOS,fES,GZ,by,vGq,eH,wL,Im8,Dk,Gbd,yH,kX,bB8,eJg,VXS,hZ,wyg,y7d,DF8,ah,Rh,kbW,SH,hJW,ama,RJv,SkW,uhg,LCu,P0W,L7,EGv,HBu,QLd,qka,mFa,WCT,lmq,VDp,nGS,gGa,dFI,c7a,sLo,iBS,Eb,A78,jLI,YkS,Xyq,xF8,H$,FC8,QH,qH,mP,OBp,r7g,oGu,C08,TOu,UFg,KS4,zp2,$8_,ly,VH,p59,fT1,Mq7,n7,tq1,Ba5,W$,JZ,NaH,gL,vS1,iy,IT1,dL,c$,Go7,sb,AZ,bWo,epo,jH,YX,w5p,XL,D8f,ydH,rL,Zk,koZ,hpp,aTf,ug7,Su_,oh,LS4,ESQ,P89,sUS,RpS,Qv2,quQ,lTQ,zpd,v5; zo=function(z){return function(){return zpd[z].apply(this,arguments)}}; g.pW=function(z,K){return zpd[z]=K}; KST=function(z){var K=0;return function(){return K=this.length))return this[z]}; Fg=function(z){return z?z:xS}; ep5=function(z,K,f){z instanceof String&&(z=String(z));for(var M=z.length-1;M>=0;M--){var p=z[M];if(K.call(f,p,M,z))return{VT:M,YC:p}}return{VT:-1,YC:void 0}}; Ou=function(z){return z?z:function(K,f){return ep5(this,K,f).VT}}; g.ov=function(z,K,f){z=z.split(".");f=f||g.ZT;for(var M;z.length&&(M=z.shift());)z.length||K===void 0?f[M]&&f[M]!==Object.prototype[M]?f=f[M]:f=f[M]={}:f[M]=K}; Uu=function(z,K){var f=g.CW("CLOSURE_FLAGS");z=f&&f[z];return z!=null?z:K}; g.CW=function(z,K){z=z.split(".");K=K||g.ZT;for(var f=0;f2){var M=Array.prototype.slice.call(arguments,2);return function(){var p=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(p,M);return z.apply(K,p)}}return function(){return z.apply(K,arguments)}}; g.p1=function(z,K,f){g.p1=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?D8S:ydo;return g.p1.apply(null,arguments)}; g.Bo=function(z,K){var f=Array.prototype.slice.call(arguments,1);return function(){var M=f.slice();M.push.apply(M,arguments);return z.apply(this,M)}}; g.N5=function(){return Date.now()}; vo=function(z){return z}; g.GH=function(z,K){function f(){} f.prototype=K.prototype;z.Y9=K.prototype;z.prototype=new f;z.prototype.constructor=z;z.gS=function(M,p,t){for(var B=Array(arguments.length-2),v=2;v=0;--f)f in M&&K.call(void 0,M[f],f,z)}; g.yQ=function(z,K,f){K=D4(z,K,f);return K<0?null:typeof z==="string"?z.charAt(K):z[K]}; D4=function(z,K,f){for(var M=z.length,p=typeof z==="string"?z.split(""):z,t=0;t=0;M--)if(M in p&&K.call(f,p[M],M,z))return M;return-1}; g.h2=function(z,K){return Su8(z,K)>=0}; ugp=function(z){if(!Array.isArray(z))for(var K=z.length-1;K>=0;K--)delete z[K];z.length=0}; g.R8=function(z,K){K=Su8(z,K);var f;(f=K>=0)&&g.a8(z,K);return f}; g.a8=function(z,K){return Array.prototype.splice.call(z,K,1).length==1}; g.SS=function(z,K){K=D4(z,K);K>=0&&g.a8(z,K)}; LST=function(z,K){var f=0;Rpq(z,function(M,p){K.call(void 0,M,p,z)&&g.a8(z,p)&&f++})}; g.u_=function(z){return Array.prototype.concat.apply([],arguments)}; g.L1=function(z){var K=z.length;if(K>0){for(var f=Array(K),M=0;M>>1),I=void 0;f?I=K.call(void 0,z[v],v,z):I=K(M,z[v]);I>0?p=v+1:(t=v,B=!I)}return B?p:-p-1}; g.J2=function(z,K){z.sort(K||mp)}; HWW=function(z,K){var f=mp;g.J2(z,function(M,p){return f(K(M),K(p))})}; g.gZ=function(z,K,f){if(!g.K1(z)||!g.K1(K)||z.length!=K.length)return!1;var M=z.length;f=f||Qvd;for(var p=0;pK?1:z0&&(K[p]=M)},z); return K}; d8d=function(z){z=wr(z);var K=[];g.jS(z,function(f,M){M in Object.prototype||typeof f!="undefined"&&K.push([M,":",f].join(""))}); return K}; svS=function(z){Gl(z,"od",cd8);Gl(z,"opac",DK).S=!0;Gl(z,"sbeos",DK).S=!0;Gl(z,"prf",DK).S=!0;Gl(z,"mwt",DK).S=!0;Gl(z,"iogeo",DK)}; yA=function(z,K){return z.lastIndexOf(K,0)==0}; Adq=function(z,K){var f=z.length-K.length;return f>=0&&z.indexOf(K,f)==f}; g.h6=function(z){return/^[\s\xa0]*$/.test(z)}; g.a9=function(z,K){return z.indexOf(K)!=-1}; R9=function(z,K){return g.a9(z.toLowerCase(),K.toLowerCase())}; g.P4=function(z,K){var f=0;z=Sm(String(z)).split(".");K=Sm(String(K)).split(".");for(var M=Math.max(z.length,K.length),p=0;f==0&&pK?1:0}; g.H4=function(){var z=g.ZT.navigator;return z&&(z=z.userAgent)?z:""}; lE=function(z){if(!QA&&!qn||!my)return!1;for(var K=0;K0:!1}; W4=function(){return nL()?!1:VA("Opera")}; jvp=function(){return nL()?!1:VA("Trident")||VA("MSIE")}; Yug=function(){return nL()?lE("Microsoft Edge"):VA("Edg/")}; J6=function(){return VA("Firefox")||VA("FxiOS")}; dr=function(){return VA("Safari")&&!(iE()||(nL()?0:VA("Coast"))||W4()||(nL()?0:VA("Edge"))||Yug()||(nL()?lE("Opera"):VA("OPR"))||J6()||VA("Silk")||VA("Android"))}; iE=function(){return nL()?lE("Chromium"):(VA("Chrome")||VA("CriOS"))&&!(nL()?0:VA("Edge"))||VA("Silk")}; X5g=function(){return VA("Android")&&!(iE()||J6()||W4()||VA("Silk"))}; x8I=function(z){var K={};z.forEach(function(f){K[f[0]]=f[1]}); return function(f){return K[f.find(function(M){return M in K})]||""}}; FSS=function(z){var K=g.H4();if(z==="Internet Explorer"){if(jvp())if((z=/rv: *([\d\.]*)/.exec(K))&&z[1])K=z[1];else{z="";var f=/MSIE +([\d\.]+)/.exec(K);if(f&&f[1])if(K=/Trident\/(\d.\d)/.exec(K),f[1]=="7.0")if(K&&K[1])switch(K[1]){case "4.0":z="8.0";break;case "5.0":z="9.0";break;case "6.0":z="10.0";break;case "7.0":z="11.0"}else z="7.0";else z=f[1];K=z}else K="";return K}var M=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");f=[];for(var p;p=M.exec(K);)f.push([p[1],p[2],p[3]||void 0]); K=x8I(f);switch(z){case "Opera":if(W4())return K(["Version","Opera"]);if(nL()?lE("Opera"):VA("OPR"))return K(["OPR"]);break;case "Microsoft Edge":if(nL()?0:VA("Edge"))return K(["Edge"]);if(Yug())return K(["Edg"]);break;case "Chromium":if(iE())return K(["Chrome","CriOS","HeadlessChrome"])}return z==="Firefox"&&J6()||z==="Safari"&&dr()||z==="Android Browser"&&X5g()||z==="Silk"&&VA("Silk")?(K=f[2])&&K[1]||"":""}; OWW=function(z){if(nL()&&z!=="Silk"){var K=my.brands.find(function(f){return f.brand===z}); if(!K||!K.version)return NaN;K=K.version.split(".")}else{K=FSS(z);if(K==="")return NaN;K=K.split(".")}return K.length===0?NaN:Number(K[0])}; ZWS=function(){var z=null;if(!rda)return z;try{var K=function(f){return f}; z=rda.createPolicy("goog#html",{createHTML:K,createScript:K,createScriptURL:K})}catch(f){}return z}; sP=function(){c4===void 0&&(c4=ZWS());return c4}; A6=function(z){this.S=z}; jm=function(z){var K=sP();z=K?K.createScriptURL(z):z;return new A6(z)}; Yo=function(z){if(z instanceof A6)return z.S;throw Error("");}; XV=function(z){this.S=z}; g.xo=function(z){if(z instanceof XV)return z.S;throw Error("");}; FV=function(z){this.bl=z}; OP=function(z){return new FV(function(K){return K.substr(0,z.length+1).toLowerCase()===z+":"})}; g.rr=function(z,K){K=K===void 0?oSg:K;a:if(K=K===void 0?oSg:K,!(z instanceof XV)){for(var f=0;f4);p++)K[e8(z[p])]||(f+="\nInner error "+M++ +": ",z[p].stack&&z[p].stack.indexOf(z[p].toString())==0||(f+=typeof z[p]==="string"?z[p]:z[p].message+"\n"),f+=Gm(z[p],K));p")!=-1&&(z=z.replace(NZd,">")),z.indexOf('"')!=-1&&(z=z.replace(vfW,""")),z.indexOf("'")!=-1&&(z=z.replace(I4S,"'")),z.indexOf("\x00")!=-1&&(z=z.replace(GHW,"�")));return z}; g.hR=function(z){return z==null?"":String(z)}; az=function(z){for(var K=0,f=0;f>>0;return K}; S8=function(z){var K=Number(z);return K==0&&g.h6(z)?NaN:K}; b1o=function(z){return String(z).replace(/\-([a-z])/g,function(K,f){return f.toUpperCase()})}; e7o=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; woa=function(z){return z.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(K,f,M){return f+M.toUpperCase()})}; D5q=function(z){var K=1;z=z.split(":");for(var f=[];K>0&&z.length;)f.push(z.shift()),K--;z.length&&f.push(z.join(":"));return f}; ue=function(){return QA||qn?!!my&&!!my.platform:!1}; y2o=function(){return ue()?my.platform==="Android":VA("Android")}; Lm=function(){return VA("iPhone")&&!VA("iPod")&&!VA("iPad")}; Es=function(){return Lm()||VA("iPad")||VA("iPod")}; P9=function(){return ue()?my.platform==="macOS":VA("Macintosh")}; kHa=function(){return ue()?my.platform==="Windows":VA("Windows")}; H9=function(z){H9[" "](z);return z}; h7S=function(z,K){try{return H9(z[K]),!0}catch(f){}return!1}; R7q=function(z,K){var f=a4I;return Object.prototype.hasOwnProperty.call(f,z)?f[z]:f[z]=K(z)}; g.Qw=function(z){return R7q(z,function(){return g.P4(S9o,z)>=0})}; g.qt=function(z,K,f){return Math.min(Math.max(z,K),f)}; g.mM=function(z,K){z%=K;return z*K<0?z+K:z}; le=function(z,K,f){return z+f*(K-z)}; g.Vw=function(z,K){this.x=z!==void 0?z:0;this.y=K!==void 0?K:0}; nm=function(z,K){return z==K?!0:z&&K?z.x==K.x&&z.y==K.y:!1}; g.W9=function(z,K){this.width=z;this.height=K}; g.JR=function(z,K){return z==K?!0:z&&K?z.width==K.width&&z.height==K.height:!1}; gT=function(z){return z.width*z.height}; dT=function(z,K){this.S=z===ie&&K||""}; c9=function(z){if(z instanceof UP)return z;z=String(z).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return zm(z)}; LpI=function(z){return uTd(z)}; uTd=function(z){var K=c9("");return zm(z.map(function(f){return Km(c9(f))}).join(Km(K).toString()))}; q9T=function(z){var K;if(!Efu.test("div"))throw Error("");if(P_d.indexOf("DIV")!==-1)throw Error("");var f="":(z=LpI(K.map(function(M){return M instanceof UP?M:c9(String(M))})),f+=">"+z.toString()+""); return zm(f)}; H1v=function(z){for(var K="",f=Object.keys(z),M=0;M2&&i1d(p,B,M,2);return B}; i1d=function(z,K,f,M){function p(v){v&&K.appendChild(typeof v==="string"?z.createTextNode(v):v)} for(;M0)p(t);else{a:{if(t&&typeof t.length=="number"){if(g.$f(t)){var B=typeof t.item=="function"||typeof t.item=="string";break a}if(typeof t==="function"){B=typeof t.item=="function";break a}}B=!1}g.co(B?g.L1(t):t,p)}}}; g.zi=function(z){return Tm(document,z)}; Tm=function(z,K){K=String(K);z.contentType==="application/xhtml+xml"&&(K=K.toLowerCase());return z.createElement(K)}; g.Ks=function(z){return document.createTextNode(String(z))}; g.$0=function(z,K){z.appendChild(K)}; g.fs=function(z){for(var K;K=z.firstChild;)z.removeChild(K)}; M0=function(z,K,f){z.insertBefore(K,z.childNodes[f]||null)}; g.ps=function(z){return z&&z.parentNode?z.parentNode.removeChild(z):null}; g.t$=function(z,K){if(!z||!K)return!1;if(z.contains&&K.nodeType==1)return z==K||z.contains(K);if(typeof z.compareDocumentPosition!="undefined")return z==K||!!(z.compareDocumentPosition(K)&16);for(;K&&z!=K;)K=K.parentNode;return K==z}; j8=function(z){return z.nodeType==9?z:z.ownerDocument||z.document}; g.B6=function(z,K){if("textContent"in z)z.textContent=K;else if(z.nodeType==3)z.data=String(K);else if(z.firstChild&&z.firstChild.nodeType==3){for(;z.lastChild!=z.firstChild;)z.removeChild(z.lastChild);z.firstChild.data=String(K)}else g.fs(z),z.appendChild(j8(z).createTextNode(String(K)))}; c2q=function(z){return z.tagName=="A"&&z.hasAttribute("href")||z.tagName=="INPUT"||z.tagName=="TEXTAREA"||z.tagName=="SELECT"||z.tagName=="BUTTON"?!z.disabled&&(!z.hasAttribute("tabindex")||d5u(z)):z.hasAttribute("tabindex")&&d5u(z)}; d5u=function(z){z=z.tabIndex;return typeof z==="number"&&z>=0&&z<32768}; v6=function(z,K,f){if(!K&&!f)return null;var M=K?String(K).toUpperCase():null;return N0(z,function(p){return(!M||p.nodeName==M)&&(!f||typeof p.className==="string"&&g.h2(p.className.split(/\s+/),f))},!0)}; N0=function(z,K,f){z&&!f&&(z=z.parentNode);for(f=0;z;){if(K(z))return z;z=z.parentNode;f++}return null}; AR=function(z){this.S=z||g.ZT.document||document}; s8a=function(){this.S=this.wZ=null}; Io=function(){}; bp=function(){if(!Gi())throw Error();}; Gi=function(){return!(!eT||!eT.performance)}; A2a=function(z){return g.oz?"webkit"+z:z.toLowerCase()}; wW=function(z){return function(){return z}}; g.DZ=function(){}; j8S=function(z){var K=K||0;return function(){return z.apply(this,Array.prototype.slice.call(arguments,0,K))}}; ye=function(z){var K=!1,f;return function(){K||(f=z(),K=!0);return f}}; k0=function(z){var K=z;return function(){if(K){var f=K;K=null;f()}}}; h$=function(z,K,f){var M=0;return function(p){g.ZT.clearTimeout(M);var t=arguments;M=g.ZT.setTimeout(function(){z.apply(f,t)},K)}}; ao=function(z,K,f,M){this.top=z;this.right=K;this.bottom=f;this.left=M}; Ro=function(z){return z.right-z.left}; ST=function(z,K){return z==K?!0:z&&K?z.top==K.top&&z.right==K.right&&z.bottom==K.bottom&&z.left==K.left:!1}; up=function(z,K,f){K instanceof g.Vw?(z.left+=K.x,z.right+=K.x,z.top+=K.y,z.bottom+=K.y):(z.left+=K,z.right+=K,typeof f==="number"&&(z.top+=f,z.bottom+=f));return z}; g.Ls=function(z,K,f,M){this.left=z;this.top=K;this.width=f;this.height=M}; EZ=function(z,K){return z==K?!0:z&&K?z.left==K.left&&z.width==K.width&&z.top==K.top&&z.height==K.height:!1}; g.H6=function(z,K,f){if(typeof K==="string")(K=P6(z,K))&&(z.style[K]=f);else for(var M in K){f=z;var p=K[M],t=P6(f,M);t&&(f.style[t]=p)}}; P6=function(z,K){var f=Y9S[K];if(!f){var M=b1o(K);f=M;z.style[M]===void 0&&(M=(g.oz?"Webkit":Qe?"Moz":null)+woa(M),z.style[M]!==void 0&&(f=M));Y9S[K]=f}return f}; g.q0=function(z,K){var f=z.style[b1o(K)];return typeof f!=="undefined"?f:z.style[P6(z,K)]||""}; mN=function(z,K){var f=j8(z);return f.defaultView&&f.defaultView.getComputedStyle&&(z=f.defaultView.getComputedStyle(z,null))?z[K]||z.getPropertyValue(K)||"":""}; lp=function(z,K){return mN(z,K)||(z.currentStyle?z.currentStyle[K]:null)||z.style&&z.style[K]}; g.ns=function(z,K,f){if(K instanceof g.Vw){var M=K.x;K=K.y}else M=K,K=f;z.style.left=g.Ve(M,!1);z.style.top=g.Ve(K,!1)}; W6=function(z){try{return z.getBoundingClientRect()}catch(K){return{left:0,top:0,right:0,bottom:0}}}; Xoo=function(z){var K=j8(z),f=lp(z,"position"),M=f=="fixed"||f=="absolute";for(z=z.parentNode;z&&z!=K;z=z.parentNode)if(z.nodeType==11&&z.host&&(z=z.host),f=lp(z,"position"),M=M&&f=="static"&&z!=K.documentElement&&z!=K.body,!M&&(z.scrollWidth>z.clientWidth||z.scrollHeight>z.clientHeight||f=="fixed"||f=="absolute"||f=="relative"))return z;return null}; g.J$=function(z){var K=j8(z),f=new g.Vw(0,0);if(z==(K?j8(K):document).documentElement)return f;z=W6(z);K=Y7(K);K=gf5(K.S);f.x=z.left+K.x;f.y=z.top+K.y;return f}; Fpg=function(z,K){var f=new g.Vw(0,0),M=Cm(j8(z));if(!h7S(M,"parent"))return f;do{var p=M==K?g.J$(z):x5a(z);f.x+=p.x;f.y+=p.y}while(M&&M!=K&&M!=M.parent&&(z=M.frameElement)&&(M=M.parent));return f}; g.gW=function(z,K){z=O1d(z);K=O1d(K);return new g.Vw(z.x-K.x,z.y-K.y)}; x5a=function(z){z=W6(z);return new g.Vw(z.left,z.top)}; O1d=function(z){if(z.nodeType==1)return x5a(z);z=z.changedTouches?z.changedTouches[0]:z;return new g.Vw(z.clientX,z.clientY)}; g.ip=function(z,K,f){if(K instanceof g.W9)f=K.height,K=K.width;else if(f==void 0)throw Error("missing height argument");z.style.width=g.Ve(K,!0);z.style.height=g.Ve(f,!0)}; g.Ve=function(z,K){typeof z=="number"&&(z=(K?Math.round(z):z)+"px");return z}; g.dW=function(z){var K=r28;if(lp(z,"display")!="none")return K(z);var f=z.style,M=f.display,p=f.visibility,t=f.position;f.visibility="hidden";f.position="absolute";f.display="inline";z=K(z);f.display=M;f.position=t;f.visibility=p;return z}; r28=function(z){var K=z.offsetWidth,f=z.offsetHeight,M=g.oz&&!K&&!f;return(K===void 0||M)&&z.getBoundingClientRect?(z=W6(z),new g.W9(z.right-z.left,z.bottom-z.top)):new g.W9(K,f)}; g.c6=function(z,K){z.style.display=K?"":"none"}; sZ=function(z){return z?z.passive&&Z1I()?z:z.capture||!1:!1}; A$=function(z,K,f,M){return typeof z.addEventListener==="function"?(z.addEventListener(K,f,sZ(M)),!0):!1}; Y0=function(z){if(z.prerendering)return 3;var K;return(K={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[z.visibilityState||z.webkitVisibilityState||z.mozVisibilityState||""])!=null?K:0}; ofS=function(){}; Xj=function(z){z.sbE=!0;return z}; C_T=function(){return(QA||qn)&&my?my.mobile:!x0()&&(VA("iPod")||VA("iPhone")||VA("Android")||VA("IEMobile"))}; x0=function(){return(QA||qn)&&my?!my.mobile&&(VA("iPad")||VA("Android")||VA("Silk")):VA("iPad")||VA("Android")&&!VA("Mobile")||VA("Silk")}; Fj=function(z){try{return!!z&&z.location.href!=null&&h7S(z,"foo")}catch(K){return!1}}; OZ=function(z,K){if(z)for(var f in z)Object.prototype.hasOwnProperty.call(z,f)&&K(z[f],f,z)}; U55=function(){var z=[];OZ(TZI,function(K){z.push(K)}); return z}; zwp=function(z){var K,f;return(f=(K=/https?:\/\/[^\/]+/.exec(z))==null?void 0:K[0])!=null?f:""}; fK8=function(){var z=Kya("IFRAME"),K={};g.co($no(),function(f){z.sandbox&&z.sandbox.supports&&z.sandbox.supports(f)&&(K[f]=!0)}); return K}; Kya=function(z,K){K=K===void 0?document:K;return K.createElement(String(z).toLowerCase())}; Mmv=function(z){for(var K=z;z&&z!=z.parent;)z=z.parent,Fj(z)&&(K=z);return K}; Nrg=function(z){z=z||rW();for(var K=new p4d(g.ZT.location.href,!1),f=null,M=z.length-1,p=M;p>=0;--p){var t=z[p];!f&&tmp.test(t.url)&&(f=t);if(t.url&&!t.S){K=t;break}}p=null;t=z.length&&z[M].url;K.depth!==0&&t&&(p=z[M]);return new Brg(K,p,f)}; rW=function(){var z=g.ZT,K=[],f=null;do{var M=z;if(Fj(M)){var p=M.location.href;f=M.document&&M.document.referrer||null}else p=f,f=null;K.push(new p4d(p||""));try{z=M.parent}catch(t){z=null}}while(z&&M!==z);M=0;for(z=K.length-1;M<=z;++M)K[M].depth=z-M;M=g.ZT;if(M.location&&M.location.ancestorOrigins&&M.location.ancestorOrigins.length===K.length-1)for(z=1;zK&&(K=f.length);return 3997-K-z.T.length-1}; Ti=function(z,K){this.S=z;this.depth=K}; bLS=function(){function z(v,I){return v==null?I:v} var K=rW(),f=Math.max(K.length-1,0),M=Nrg(K);K=M.S;var p=M.Y,t=M.T,B=[];t&&B.push(new Ti([t.url,t.S?2:0],z(t.depth,1)));p&&p!=t&&B.push(new Ti([p.url,2],0));K.url&&K!=t&&B.push(new Ti([K.url,0],z(K.depth,f)));M=g.UZ(B,function(v,I){return B.slice(0,B.length-I)}); !K.url||(t||p)&&K!=t||(p=zwp(K.url))&&M.push([new Ti([p,1],z(K.depth,f))]);M.push([]);return g.UZ(M,function(v){return GlW(f,v)})}; GlW=function(z,K){g.zd(K,function(p){return p.depth>=0}); var f=KC(K,function(p,t){return Math.max(p,t.depth)},-1),M=quI(f+2); M[0]=z;g.co(K,function(p){return M[p.depth+1]=p.S}); return M}; ewW=function(){var z=z===void 0?bLS():z;return z.map(function(K){return Cs(K)})}; w4a=function(z){var K=!1;K=K===void 0?!1:K;eT.google_image_requests||(eT.google_image_requests=[]);var f=Kya("IMG",eT.document);K&&(f.attributionSrc="");f.src=z;eT.google_image_requests.push(f)}; $N=function(z){var K="z8";if(z.z8&&z.hasOwnProperty(K))return z.z8;var f=new z;z.z8=f;z.hasOwnProperty(K);return f}; fC=function(){this.Y=new ofS;this.S=Gi()?new bp:new Io}; Dnp=function(){MW();var z=eT.document;return!!(z&&z.body&&z.body.getBoundingClientRect&&typeof eT.setInterval==="function"&&typeof eT.clearInterval==="function"&&typeof eT.setTimeout==="function"&&typeof eT.clearTimeout==="function")}; y65=function(){MW();return ewW()}; klo=function(){}; MW=function(){var z=$N(klo);if(!z.S){if(!eT)throw Error("Context has not been set and window is undefined.");z.S=$N(fC)}return z.S}; pC=function(){throw Error("Invalid UTF8");}; hwu=function(z,K){K=String.fromCharCode.apply(null,K);return z==null?K:z+K}; uVa=function(z){var K=!1;K=K===void 0?!1:K;if(aKq){if(K&&(Rw8?!z.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(z)))throw Error("Found an unpaired surrogate");z=(SPp||(SPp=new TextEncoder)).encode(z)}else{for(var f=0,M=new Uint8Array(3*z.length),p=0;p>6|192;else{if(t>=55296&&t<=57343){if(t<=56319&&p=56320&&B<=57343){t=(t-55296)*1024+ B-56320+65536;M[f++]=t>>18|240;M[f++]=t>>12&63|128;M[f++]=t>>6&63|128;M[f++]=t&63|128;continue}else p--}if(K)throw Error("Found an unpaired surrogate");t=65533}M[f++]=t>>12|224;M[f++]=t>>6&63|128}M[f++]=t&63|128}}z=f===M.length?M:M.subarray(0,f)}return z}; t4=function(z){g.ZT.setTimeout(function(){throw z;},0)}; Lyd=function(z){return Array.prototype.map.call(z,function(K){K=K.toString(16);return K.length>1?K:"0"+K}).join("")}; Eo8=function(z){for(var K=[],f=0;f>6|192:((p&64512)==55296&&M+1>18|240,K[f++]=p>>12&63|128):K[f++]=p>>12|224,K[f++]=p>>6&63|128),K[f++]=p&63|128)}return K}; g.NW=function(z,K){K===void 0&&(K=0);PEW();K=HLu[K];for(var f=Array(Math.floor(z.length/3)),M=K[64]||"",p=0,t=0;p>2];B=K[(B&3)<<4|v>>4];v=K[(v&15)<<2|I>>6];I=K[I&63];f[t++]=""+G+B+v+I}G=0;I=M;switch(z.length-p){case 2:G=z[p+1],I=K[(G&15)<<2]||M;case 1:z=z[p],f[t]=""+K[z>>2]+K[(z&3)<<4|G>>4]+I+M}return f.join("")}; g.vi=function(z,K){if(Q9o&&!K)z=g.ZT.btoa(z);else{for(var f=[],M=0,p=0;p255&&(f[M++]=t&255,t>>=8);f[M++]=t}z=g.NW(f,K)}return z}; mng=function(z){var K=[];qP8(z,function(f){K.push(f)}); return K}; Ij=function(z){var K=z.length,f=K*3/4;f%3?f=Math.floor(f):g.a9("=.",z[K-1])&&(f=g.a9("=.",z[K-2])?f-2:f-1);var M=new Uint8Array(f),p=0;qP8(z,function(t){M[p++]=t}); return p!==f?M.subarray(0,p):M}; qP8=function(z,K){function f(I){for(;M>4);B!=64&&(K(t<<4&240|B>>2),v!=64&&K(B<<6&192|v))}}; PEW=function(){if(!Gd){Gd={};for(var z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),K=["+/=","+/","-_=","-_.","-_"],f=0;f<5;f++){var M=z.concat(K[f].split(""));HLu[f]=M;for(var p=0;p=K||(M[z]=f+1,z=Error(),f4S(z,"incident"),t4(z))}}; aj=function(z,K,f){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(f===void 0?0:f)&&Symbol.for&&z?Symbol.for(z):z!=null?Symbol(z):Symbol():K}; ug=function(z,K){Rj||SG in z||s9v(z,A6I);z[SG]|=K}; LC=function(z,K){Rj||SG in z||s9v(z,A6I);z[SG]=K}; EH=function(){return typeof BigInt==="function"}; Hi=function(z,K){return K===void 0?z.S!==Pi&&!!(2&(z.Yi[SG]|0)):!!(2&K)&&z.S!==Pi}; j9v=function(z,K){if(z!=null)if(typeof z==="string")z=z?new bg(z,eG):wk();else if(z.constructor!==bg)if(dnS&&z!=null&&z instanceof Uint8Array)z=z.length?new bg(new Uint8Array(z),eG):wk();else{if(!K)throw Error();z=void 0}return z}; Qd=function(z,K){if(typeof K!=="number"||K<0||K>=z.length)throw Error();}; YPp=function(z,K,f){K=K&128?0:-1;var M=z.length,p;if(p=!!M)p=z[M-1],p=p!=null&&typeof p==="object"&&p.constructor===Object;for(var t=M+(p?-1:0),B=0;BK.length)return!1;if(z.lengthp)return!1;if(M>>0;nC=K;Wi=(z-K)/4294967296>>>0}; ig=function(z){if(z<0){J4(0-z);var K=g.a(gk(nC,Wi));z=K.next().value;K=K.next().value;nC=z>>>0;Wi=K>>>0}else J4(z)}; ci=function(z,K){var f=K*4294967296+(z>>>0);return Number.isSafeInteger(f)?f:dk(z,K)}; r6u=function(z,K){var f=K&2147483648;f&&(z=~z+1>>>0,K=~K>>>0,z==0&&(K=K+1>>>0));z=ci(z,K);return typeof z==="number"?f?-z:z:f?"-"+z:z}; dk=function(z,K){K>>>=0;z>>>=0;if(K<=2097151)var f=""+(4294967296*K+z);else EH()?f=""+(BigInt(K)<>>24|K<<8)&16777215,K=K>>16&65535,z=(z&16777215)+f*6777216+K*6710656,f+=K*8147497,K*=2,z>=1E7&&(f+=z/1E7>>>0,z%=1E7),f>=1E7&&(K+=f/1E7>>>0,f%=1E7),f=K+ZLa(f)+ZLa(z));return f}; ZLa=function(z){z=String(z);return"0000000".slice(z.length)+z}; oo8=function(){var z=nC,K=Wi;K&2147483648?EH()?z=""+(BigInt(K|0)<>>0)):(K=g.a(gk(z,K)),z=K.next().value,K=K.next().value,z="-"+dk(z,K)):z=dk(z,K);return z}; sH=function(z){if(z.length<16)ig(Number(z));else if(EH())z=BigInt(z),nC=Number(z&BigInt(4294967295))>>>0,Wi=Number(z>>BigInt(32)&BigInt(4294967295));else{var K=+(z[0]==="-");Wi=nC=0;for(var f=z.length,M=0+K,p=(f-K)%6+K;p<=f;M=p,p+=6)M=Number(z.slice(M,p)),Wi*=1E6,nC=nC*1E6+M,nC>=4294967296&&(Wi+=Math.trunc(nC/4294967296),Wi>>>=0,nC>>>=0);K&&(K=g.a(gk(nC,Wi)),z=K.next().value,K=K.next().value,nC=z,Wi=K)}}; gk=function(z,K){K=~K;z?z=~z+1:K+=1;return[z,K]}; A4=function(z){return Array.prototype.slice.call(z)}; jG=function(z){if(z!=null&&typeof z!=="number")throw Error("Value of float/double field must be a number, found "+typeof z+": "+z);return z}; CEp=function(z){return z.displayName||z.name||"unknown type name"}; YN=function(z){if(z!=null&&typeof z!=="boolean")throw Error("Expected boolean but got "+zH(z)+": "+z);return z}; xN=function(z){switch(typeof z){case "bigint":return!0;case "number":return XY(z);case "string":return Tru.test(z);default:return!1}}; Ung=function(z){if(typeof z!=="number")throw kN("int32");if(!XY(z))throw kN("int32");return z|0}; FY=function(z){return z==null?z:Ung(z)}; OH=function(z){if(z==null)return z;if(typeof z==="string"&&z)z=+z;else if(typeof z!=="number")return;return XY(z)?z|0:void 0}; rk=function(z){if(z==null)return z;if(typeof z==="string"&&z)z=+z;else if(typeof z!=="number")return;return XY(z)?z>>>0:void 0}; $tp=function(z){var K=0;K=K===void 0?0:K;if(!xN(z))throw kN("int64");var f=typeof z;switch(K){case 512:switch(f){case "string":return Zj(z);case "bigint":return String(oj(64,z));default:return CC(z)}case 1024:switch(f){case "string":return zFd(z);case "bigint":return Vd(oj(64,z));default:return KMu(z)}case 0:switch(f){case "string":return Zj(z);case "bigint":return Vd(oj(64,z));default:return Td(z)}default:return Tl(K,"Unknown format requested type for int64")}}; UH=function(z){return z==null?z:$tp(z)}; fyq=function(z){if(z[0]==="-")return!1;var K=z.length;return K<20?!0:K===20&&Number(z.substring(0,6))<184467}; M8u=function(z){var K=z.length;return z[0]==="-"?K<20?!0:K===20&&Number(z.substring(0,7))>-922337:K<19?!0:K===19&&Number(z.substring(0,6))<922337}; p98=function(z){if(z<0){ig(z);var K=dk(nC,Wi);z=Number(K);return zg(z)?z:K}K=String(z);if(fyq(K))return K;ig(z);return ci(nC,Wi)}; t8g=function(z){if(M8u(z))return z;sH(z);return oo8()}; Td=function(z){xN(z);z=KP(z);zg(z)||(ig(z),z=r6u(nC,Wi));return z}; CC=function(z){xN(z);z=KP(z);if(zg(z))z=String(z);else{var K=String(z);M8u(K)?z=K:(ig(z),z=oo8())}return z}; Zj=function(z){xN(z);var K=KP(Number(z));if(zg(K))return String(K);K=z.indexOf(".");K!==-1&&(z=z.substring(0,K));return t8g(z)}; zFd=function(z){var K=KP(Number(z));if(zg(K))return Vd(K);K=z.indexOf(".");K!==-1&&(z=z.substring(0,K));return EH()?Vd(oj(64,BigInt(z))):Vd(t8g(z))}; KMu=function(z){return zg(z)?Vd(Td(z)):Vd(CC(z))}; BTW=function(z){if(z==null)return z;var K=typeof z;if(K==="bigint")return String(oj(64,z));if(xN(z)){if(K==="string")return Zj(z);if(K==="number")return Td(z)}}; v7q=function(z){if(z==null)return z;var K=typeof z;if(K==="bigint")return String(NTW(64,z));if(xN(z)){if(K==="string")return xN(z),K=KP(Number(z)),zg(K)&&K>=0?z=String(K):(K=z.indexOf("."),K!==-1&&(z=z.substring(0,K)),fyq(z)||(sH(z),z=dk(nC,Wi))),z;if(K==="number")return xN(z),z=KP(z),z>=0&&zg(z)?z:p98(z)}}; Iyu=function(z){if(z==null||typeof z=="string"||z instanceof bg)return z}; GmI=function(z){if(typeof z!=="string")throw Error();return z}; $g=function(z){if(z!=null&&typeof z!=="string")throw Error();return z}; fP=function(z){return z==null||typeof z==="string"?z:void 0}; MQ=function(z,K){if(!(z instanceof K))throw Error("Expected instanceof "+CEp(K)+" but got "+(z&&CEp(z.constructor)));return z}; bmg=function(z,K,f){if(z!=null&&z[pP]===tG)return z;if(Array.isArray(z)){var M=z[SG]|0;f=M|f&32|f&2;f!==M&&LC(z,f);return new K(z)}}; B7=function(z){return z}; v7=function(z){var K=vo(NQ);return K?z[K]:void 0}; Ir=function(){}; Gg=function(z,K){for(var f in z)!isNaN(f)&&K(z,+f,z[f])}; eFq=function(z){var K=new Ir;Gg(z,function(f,M,p){K[M]=A4(p)}); K.BQ=z.BQ;return K}; Dtv=function(z,K){K<100||h4(w9I,1)}; e2=function(z,K,f,M){var p=M!==void 0;M=!!M;var t=vo(NQ),B;!p&&Rj&&t&&(B=z[t])&&Gg(B,Dtv);t=[];var v=z.length;B=4294967295;var I=!1,G=!!(K&64),b=G?K&128?0:-1:void 0;if(!(K&1)){var e=v&&z[v-1];e!=null&&typeof e==="object"&&e.constructor===Object?(v--,B=v):e=void 0;if(G&&!(K&128)&&!p){I=!0;var w;B=((w=bF)!=null?w:B7)(B-b,b,z,e)+b}}K=void 0;for(w=0;w=B){var y=w-b,R=void 0;((R=K)!=null?R:K={})[y]=D}else t[w]=D}if(e)for(var S in e)v=e[S],v!=null&& (v=f(v,M))!=null&&(w=+S,D=void 0,G&&!Number.isNaN(w)&&(D=w+b)0?void 0:z===0?RFp||(RFp=[0,void 0]):[-z,void 0];case "string":return[0,z];case "object":return z}}; ar=function(z,K,f){return z=g.hG(z,K[0],K[1],f?1:2)}; g.hG=function(z,K,f,M){M=M===void 0?0:M;if(z==null){var p=32;f?(z=[f],p|=128):z=[];K&&(p=p&-8380417|(K&1023)<<13)}else{if(!Array.isArray(z))throw Error("narr");p=z[SG]|0;2048&p&&!(2&p)&&u38();if(p&256)throw Error("farr");if(p&64)return M!==0||p&2048||LC(z,p|2048),z;if(f&&(p|=128,f!==z[0]))throw Error("mid");a:{f=z;p|=64;var t=f.length;if(t){var B=t-1,v=f[B];if(v!=null&&typeof v==="object"&&v.constructor===Object){K=p&128?0:-1;B-=K;if(B>=1024)throw Error("pvtlmt");for(var I in v)t=+I,t1024)throw Error("spvt");p=p&-8380417|(I&1023)<<13}}}p|=64;M===0&&(p|=2048);LC(z,p);return z}; u38=function(){h4(LMu,5)}; E7v=function(z,K){if(typeof z!=="object")return z;if(Array.isArray(z)){var f=z[SG]|0;z.length===0&&f&1?z=void 0:f&2||(!K||4096&f||16&f?z=Rr(z,f,!1,K&&!(f&16)):(ug(z,34),f&4&&Object.freeze(z)));return z}if(z!=null&&z[pP]===tG)return K=z.Yi,f=K[SG]|0,Hi(z,f)?z:S2(z,K,f)?uF(z,K):Rr(K,f);if(z instanceof bg)return z}; uF=function(z,K,f){z=new z.constructor(K);f&&(z.S=Pi);z.Y=Pi;return z}; Rr=function(z,K,f,M){M!=null||(M=!!(34&K));z=e2(z,K,E7v,M);M=32;f&&(M|=2);K=K&8380609|M;LC(z,K);return z}; Pep=function(z){var K=z.Yi,f=K[SG]|0;return Hi(z,f)?S2(z,K,f)?uF(z,K,!0):new z.constructor(Rr(K,f,!1)):z}; LP=function(z){if(z.S!==Pi)return!1;var K=z.Yi;K=Rr(K,K[SG]|0);ug(K,2048);z.Yi=K;z.S=void 0;z.Y=void 0;return!0}; Ec=function(z){if(!LP(z)&&Hi(z,z.Yi[SG]|0))throw Error();}; P7=function(z,K){K===void 0&&(K=z[SG]|0);K&32&&!(K&4096)&&LC(z,K|4096)}; S2=function(z,K,f){return f&2?!0:f&32&&!(f&4096)?(LC(K,f|2),z.S=Pi,!0):!1}; QV=function(z,K,f,M,p){Object.isExtensible(z);K=H7(z.Yi,K,f,p);if(K!==null||M&&z.Y!==Pi)return K}; H7=function(z,K,f,M){if(K===-1)return null;var p=K+(f?0:-1),t=z.length-1;if(!(t<1+(f?0:-1))){if(p>=t){var B=z[t];if(B!=null&&typeof B==="object"&&B.constructor===Object){f=B[K];var v=!0}else if(p===t)f=B;else return}else f=z[p];if(M&&f!=null){M=M(f);if(M==null)return M;if(!Object.is(M,f))return v?B[K]=M:z[p]=M,M}return f}}; mu=function(z,K,f,M){Ec(z);var p=z.Yi;qQ(p,p[SG]|0,K,f,M);return z}; qQ=function(z,K,f,M,p){var t=f+(p?0:-1),B=z.length-1;if(B>=1+(p?0:-1)&&t>=B){var v=z[B];if(v!=null&&typeof v==="object"&&v.constructor===Object)return v[f]=M,K}if(t<=B)return z[t]=M,K;if(M!==void 0){var I;B=((I=K)!=null?I:K=z[SG]|0)>>13&1023||536870912;f>=B?M!=null&&(t={},z[B+(p?0:-1)]=(t[f]=M,t)):z[t]=M}return K}; JG=function(z,K,f,M,p){var t=z.Yi,B=t[SG]|0;M=Hi(z,B)?1:M;p=!!p||M===3;M===2&&LP(z)&&(t=z.Yi,B=t[SG]|0);z=lF(t,K);var v=z===VV?7:z[SG]|0,I=nP(v,B);var G=4&I?!1:!0;if(G){4&I&&(z=A4(z),v=0,I=W7(I,B),B=qQ(t,B,K,z));for(var b=0,e=0;b "+z)}; GA=function(z,K,f){this.buffer=z;if(f&&!K)throw Error();this.S=K}; bM=function(z,K){if(typeof z==="string")return new GA(J6a(z),K);if(Array.isArray(z))return new GA(new Uint8Array(z),K);if(z.constructor===Uint8Array)return new GA(z,!1);if(z.constructor===ArrayBuffer)return z=new Uint8Array(z),new GA(z,!1);if(z.constructor===bg)return K=Dj(z)||new Uint8Array(0),new GA(K,!0,z);if(z instanceof Uint8Array)return z=z.constructor===Uint8Array?z:new Uint8Array(z.buffer,z.byteOffset,z.byteLength),new GA(z,!1);throw Error();}; e5=function(z,K,f,M){this.Y=null;this.C=!1;this.S=this.T=this.J=0;this.init(z,K,f,M)}; Di=function(z){var K=0,f=0,M=0,p=z.Y,t=z.S;do{var B=p[t++];K|=(B&127)<32&&(f|=(B&127)>>4);for(M=3;M<32&&B&128;M+=7)B=p[t++],f|=(B&127)<>>0,f>>>0);throw In();}; w5=function(z,K){z.S=K;if(K>z.T)throw ima(z.T,K);}; yq=function(z){var K=z.Y,f=z.S,M=K[f++],p=M&127;if(M&128&&(M=K[f++],p|=(M&127)<<7,M&128&&(M=K[f++],p|=(M&127)<<14,M&128&&(M=K[f++],p|=(M&127)<<21,M&128&&(M=K[f++],p|=M<<28,M&128&&K[f++]&128&&K[f++]&128&&K[f++]&128&&K[f++]&128&&K[f++]&128)))))throw In();w5(z,f);return p}; kD=function(z){var K=z.Y,f=z.S,M=K[f+0],p=K[f+1],t=K[f+2];K=K[f+3];w5(z,z.S+4);return(M<<0|p<<8|t<<16|K<<24)>>>0}; hC=function(z){var K=kD(z);z=kD(z);return ci(K,z)}; an=function(z){var K=kD(z),f=kD(z);z=(f>>31)*2+1;var M=f>>>20&2047;K=4294967296*(f&1048575)+K;return M==2047?K?NaN:z*Infinity:M==0?z*4.9E-324*K:z*Math.pow(2,M-1075)*(K+4503599627370496)}; Rn=function(z){for(var K=0,f=z.S,M=f+10,p=z.Y;fz.T)throw ima(K,z.T-f);z.S=M;return f}; szS=function(z,K){if(K==0)return wk();var f=dtT(z,K);z.Vl&&z.C?f=z.Y.subarray(f,f+K):(z=z.Y,K=f+K,f=f===K?new Uint8Array(0):cRo?z.slice(f,K):new Uint8Array(z.subarray(f,K)));return f.length==0?wk():new bg(f,eG)}; uM=function(z,K,f,M){if(S5.length){var p=S5.pop();p.init(z,K,f,M);z=p}else z=new e5(z,K,f,M);this.S=z;this.T=this.S.S;this.Y=this.J=-1;ARp(this,M)}; ARp=function(z,K){K=K===void 0?{}:K;z.EE=K.EE===void 0?!1:K.EE}; jz5=function(z,K,f,M){if(LF.length){var p=LF.pop();ARp(p,M);p.S.init(z,K,f,M);return p}return new uM(z,K,f,M)}; Ysp=function(z){var K=z.S;if(K.S==K.T)return!1;z.T=z.S.S;var f=yq(z.S)>>>0;K=f>>>3;f&=7;if(!(f>=0&&f<=5))throw g78(f,z.T);if(K<1)throw Error("Invalid field number: "+K+" (at position "+z.T+")");z.J=K;z.Y=f;return!0}; PX=function(z){switch(z.Y){case 0:z.Y!=0?PX(z):Rn(z.S);break;case 1:z=z.S;w5(z,z.S+8);break;case 2:if(z.Y!=2)PX(z);else{var K=yq(z.S)>>>0;z=z.S;w5(z,z.S+K)}break;case 5:z=z.S;w5(z,z.S+4);break;case 3:K=z.J;do{if(!Ysp(z))throw Error("Unmatched start-group tag: stream EOF");if(z.Y==4){if(z.J!=K)throw Error("Unmatched end-group tag");break}PX(z)}while(1);break;default:throw g78(z.Y,z.T);}}; HX=function(z,K,f){var M=z.S.T,p=yq(z.S)>>>0,t=z.S.S+p,B=t-M;B<=0&&(z.S.T=t,f(K,z,void 0,void 0,void 0),B=t-z.S.S);if(B)throw Error("Message parsing ended unexpectedly. Expected to read "+(p+" bytes, instead read "+(p-B)+" bytes, either the data ended unexpectedly or the message misreported its own length"));z.S.S=t;z.S.T=M}; mt=function(z){var K=yq(z.S)>>>0;z=z.S;var f=dtT(z,K);z=z.Y;if(X9q){var M=z,p;(p=Qq)||(p=Qq=new TextDecoder("utf-8",{fatal:!0}));K=f+K;M=f===0&&K===M.length?M:M.subarray(f,K);try{var t=p.decode(M)}catch(G){if(qM===void 0){try{p.decode(new Uint8Array([128]))}catch(b){}try{p.decode(new Uint8Array([97])),qM=!0}catch(b){qM=!1}}!qM&&(Qq=void 0);throw G;}}else{t=f;K=t+K;f=[];for(var B=null,v,I;t=K?pC():(I=z[t++],v<194||(I&192)!==128?(t--,pC()):f.push((v&31)<<6|I&63)): v<240?t>=K-1?pC():(I=z[t++],(I&192)!==128||v===224&&I<160||v===237&&I>=160||((p=z[t++])&192)!==128?(t--,pC()):f.push((v&15)<<12|(I&63)<<6|p&63)):v<=244?t>=K-2?pC():(I=z[t++],(I&192)!==128||(v<<28)+(I-144)>>30!==0||((p=z[t++])&192)!==128||((M=z[t++])&192)!==128?(t--,pC()):(v=(v&7)<<18|(I&63)<<12|(p&63)<<6|M&63,v-=65536,f.push((v>>10&1023)+55296,(v&1023)+56320))):pC(),f.length>=8192&&(B=hwu(B,f),f.length=0);t=hwu(B,f)}return t}; xtp=function(z){var K=yq(z.S)>>>0;return szS(z.S,K)}; lM=function(z,K){this.Y=z>>>0;this.S=K>>>0}; OmS=function(z){if(!z)return FMu||(FMu=new lM(0,0));if(!/^\d+$/.test(z))return null;sH(z);return new lM(nC,Wi)}; Vq=function(z,K){this.Y=z>>>0;this.S=K>>>0}; Zmg=function(z){if(!z)return rRd||(rRd=new Vq(0,0));if(!/^-?\d+$/.test(z))return null;sH(z);return new Vq(nC,Wi)}; nF=function(){this.S=[]}; WX=function(z,K,f){for(;f>0||K>127;)z.S.push(K&127|128),K=(K>>>7|f<<25)>>>0,f>>>=7;z.S.push(K)}; JC=function(z,K){for(;K>127;)z.S.push(K&127|128),K>>>=7;z.S.push(K)}; o7g=function(z,K){if(K>=0)JC(z,K);else{for(var f=0;f<9;f++)z.S.push(K&127|128),K>>=7;z.S.push(1)}}; g5=function(z,K){z.S.push(K>>>0&255);z.S.push(K>>>8&255);z.S.push(K>>>16&255);z.S.push(K>>>24&255)}; Ceq=function(){this.T=[];this.Y=0;this.S=new nF}; iM=function(z,K){K.length!==0&&(z.T.push(K),z.Y+=K.length)}; TTa=function(z,K){d5(z,K,2);K=z.S.end();iM(z,K);K.push(z.Y);return K}; Utp=function(z,K){var f=K.pop();for(f=z.Y+z.S.length()-f;f>127;)K.push(f&127|128),f>>>=7,z.Y++;K.push(f);z.Y++}; d5=function(z,K,f){JC(z.S,K*8+f)}; zTI=function(z,K,f){if(f!=null){switch(typeof f){case "string":OmS(f)}d5(z,K,1);switch(typeof f){case "number":z=z.S;J4(f);g5(z,nC);g5(z,Wi);break;case "bigint":f=BigInt.asUintN(64,f);f=new lM(Number(f&BigInt(4294967295)),Number(f>>BigInt(32)));z=z.S;K=f.S;g5(z,f.Y);g5(z,K);break;default:f=OmS(f),z=z.S,K=f.S,g5(z,f.Y),g5(z,K)}}}; cX=function(z,K,f){d5(z,K,2);JC(z.S,f.length);iM(z,z.S.end());iM(z,f)}; sU=function(){function z(){throw Error();} Object.setPrototypeOf(z,z.prototype);return z}; g.AC=function(z,K,f){this.Yi=g.hG(z,K,f)}; KNW=function(z,K){if(K==null||K=="")return new z;K=JSON.parse(K);if(!Array.isArray(K))throw Error("dnarr");ug(K,32);return new z(K)}; YD=function(z,K,f){this.En=z;this.z_=K;z=vo(j5);this.S=!!z&&f===z||!1}; XC=function(z,K){var f=f===void 0?j5:f;return new YD(z,K,f)}; fZo=function(z,K,f,M,p){K=$0o(K,M);K!=null&&(f=TTa(z,f),p(K,z),Utp(z,f))}; OU=function(z,K,f,M){var p=M[z];if(p)return p;p={};p.xY=M;p.Oh=Ss5(M[0]);var t=M[1],B=1;t&&t.constructor===Object&&(p.extensions=t,t=M[++B],typeof t==="function"&&(p.Ob=!0,xD!=null||(xD=t),FC!=null||(FC=M[B+1]),t=M[B+=2]));for(var v={};t&&Array.isArray(t)&&t.length&&typeof t[0]==="number"&&t[0]>0;){for(var I=0;I>BigInt(32)));WX(z.S,f.Y,f.S);break;default:f=Zmg(K),WX(z.S,f.Y,f.S)}}}; b6=function(z,K,f){K=OH(K);K!=null&&K!=null&&(d5(z,f,0),o7g(z.S,K))}; y$I=function(z,K,f){K=K==null||typeof K==="boolean"?K:typeof K==="number"?!!K:void 0;K!=null&&(d5(z,f,0),z.S.S.push(K?1:0))}; kiu=function(z,K,f){K=fP(K);K!=null&&cX(z,f,uVa(K))}; hTS=function(z,K,f,M,p){K=$0o(K,M);K!=null&&(f=TTa(z,f),p(K,z),Utp(z,f))}; RTg=function(){var z=eU;this.S=aZ8;this.isRepeated=0;this.Y=Ze;this.defaultValue=void 0;this.T=z.messageId!=null?qW:void 0}; SZu=function(z){return function(){var K=new Ceq;bsW(this.Yi,K,OU(fe,UU,Mr,z));iM(K,K.S.end());for(var f=new Uint8Array(K.Y),M=K.T,p=M.length,t=0,B=0;B-1)return K.apply(null,g.P(f));try{return z.S=z.T.S.now(),K.apply(null,g.P(f))}finally{z.J+=z.T.S.now()-z.S,z.S=-1,z.Y+=1}}}; LNv=function(z,K){this.Y=z;this.T=K;this.S=new uj8(z)}; E0g=function(){this.S={}}; Hsg=function(){var z=kp().flags,K=PpT;z=z.S[K.key];if(K.valueType==="proto"){try{var f=JSON.parse(z);if(Array.isArray(f))return f}catch(M){}return K.defaultValue}return typeof z===typeof K.defaultValue?z:K.defaultValue}; lZd=function(){this.T=void 0;this.Y=this.W=0;this.C=-1;this.U0=new I9;Gl(this.U0,"mv",Qop).S=!0;Gl(this.U0,"omid",DK);Gl(this.U0,"epoh",DK).S=!0;Gl(this.U0,"epph",DK).S=!0;Gl(this.U0,"umt",DK).S=!0;Gl(this.U0,"phel",DK).S=!0;Gl(this.U0,"phell",DK).S=!0;Gl(this.U0,"oseid",qZW).S=!0;var z=this.U0;z.S.sloi||(z.S.sloi=new B4);z.S.sloi.S=!0;Gl(this.U0,"mm",ho);Gl(this.U0,"ovms",m0p).S=!0;Gl(this.U0,"xdi",DK).S=!0;Gl(this.U0,"amp",DK).S=!0;Gl(this.U0,"prf",DK).S=!0;Gl(this.U0,"gtx",DK).S=!0;Gl(this.U0, "mvp_lv",DK).S=!0;Gl(this.U0,"ssmol",DK).S=!0;Gl(this.U0,"fmd",DK).S=!0;Gl(this.U0,"gen204simple",DK);this.S=new LNv(MW(),this.U0);this.J=!1;this.flags=new E0g}; kp=function(){return $N(lZd)}; VTv=function(z,K,f,M){if(Math.random()<(M||z.S))try{if(f instanceof ZZ)var p=f;else p=new ZZ,OZ(f,function(B,v){var I=p,G=I.J++;B=oo(v,B);I.S.push(G);I.Y[G]=B}); var t=p.Ic(z.Y,"pagead2.googlesyndication.com","/pagead/gen_204?id="+K+"&");t&&(MW(),w4a(t))}catch(B){}}; n08=function(z,K,f){f=f===void 0?{}:f;this.error=z;this.meta=f;this.context=K.context;this.msg=K.message||"";this.id=K.id||"jserror"}; WNq=function(){var z=z===void 0?g.ZT:z;return(z=z.performance)&&z.now&&z.timing?Math.floor(z.now()+z.timing.navigationStart):g.N5()}; J$q=function(){var z=z===void 0?g.ZT:z;return(z=z.performance)&&z.now?z.now():null}; g0g=function(z,K,f){this.label=z;this.type=K;this.value=f;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; RW=function(){var z=window;this.events=[];this.Y=z||g.ZT;var K=null;z&&(z.google_js_reporting_queue=z.google_js_reporting_queue||[],this.events=z.google_js_reporting_queue,K=z.google_measure_js_timing);this.S=aW()||(K!=null?K:Math.random()<1)}; is5=function(z){z&&SU&&aW()&&(SU.clearMarks("goog_"+z.label+"_"+z.uniqueId+"_start"),SU.clearMarks("goog_"+z.label+"_"+z.uniqueId+"_end"))}; u6=function(z,K,f,M,p,t,B){var v="";z&&(v+=z+":");f&&(v+="//",K&&(v+=K+"@"),v+=f,M&&(v+=":"+M));p&&(v+=p);t&&(v+="?"+t);B&&(v+="#"+B);return v}; g.Le=function(z){return z.match(d0o)}; c$W=function(z){return z?decodeURI(z):z}; g.EW=function(z){return c$W(g.Le(z)[3]||null)}; Pv=function(z){return c$W(g.Le(z)[5]||null)}; g.soo=function(z){z=g.Le(z);return u6(z[1],z[2],z[3],z[4])}; Hv=function(z){z=g.Le(z);return u6(null,null,null,null,z[5],z[6],z[7])}; A$8=function(z){var K=z.indexOf("#");return K<0?z:z.slice(0,K)}; Q8=function(z,K){if(z){z=z.split("&");for(var f=0;f=0){var t=z[f].substring(0,M);p=z[f].substring(M+1)}else t=z[f];K(t,p?yw(p):"")}}}; qr=function(z,K){if(!K)return z;var f=z.indexOf("#");f<0&&(f=z.length);var M=z.indexOf("?");if(M<0||M>f){M=f;var p=""}else p=z.substring(M+1,f);z=[z.slice(0,M),p,z.slice(f)];f=z[1];z[1]=K?f?f+"&"+K:K:f;return z[0]+(z[1]?"?"+z[1]:"")+z[2]}; mm=function(z,K,f){if(Array.isArray(K))for(var M=0;M=0&&Kf)p=f;M+=K.length+1;return yw(z.slice(M,p!==-1?p:0))}; Jo=function(z,K){for(var f=z.search(x0v),M=0,p,t=[];(p=X6p(z,M,K,f))>=0;)t.push(z.substring(M,p)),M=Math.min(z.indexOf("&",p)+1||f,f);t.push(z.slice(M));return t.join("").replace(FN8,"$1")}; Osd=function(z,K,f){return ne(Jo(z,K),K,f)}; r$8=function(){var z=g4;this.S=cv;this.wk="jserror";this.qk=!0;this.Es=null;this.Y=this.Gy;this.gO=z===void 0?null:z}; Zsa=function(z,K,f){var M=sW;return y8(kp().S.S,function(){try{if(M.gO&&M.gO.S){var p=M.gO.start(z.toString(),3);var t=K();M.gO.end(p)}else t=K()}catch(v){var B=M.qk;try{is5(p),B=M.Y(z,new Ao(jU(v)),void 0,f)}catch(I){M.Gy(217,I)}if(!B)throw v;}return t})()}; Yp=function(z,K,f,M){return y8(kp().S.S,function(){var p=g.i8.apply(0,arguments);return Zsa(z,function(){return K.apply(f,p)},M)})}; jU=function(z){var K=z.toString();z.name&&K.indexOf(z.name)==-1&&(K+=": "+z.name);z.message&&K.indexOf(z.message)==-1&&(K+=": "+z.message);if(z.stack)a:{z=z.stack;var f=K;try{z.indexOf(f)==-1&&(z=f+"\n"+z);for(var M;z!=M;)M=z,z=z.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");K=z.replace(/\n */g,"\n");break a}catch(p){K=f;break a}K=void 0}return K}; Ao=function(z){n08.call(this,Error(z),{message:z})}; o0d=function(){eT&&typeof eT.google_measure_js_timing!="undefined"&&(eT.google_measure_js_timing||g4.disable())}; Cpp=function(z){sW.Es=function(K){g.co(z,function(f){f(K)})}}; TWS=function(z,K){return Zsa(z,K)}; XO=function(z,K){return Yp(z,K)}; xp=function(z,K,f,M){sW.Gy(z,K,f,M)}; FO=function(){return Date.now()-U05}; zYd=function(){var z=kp().T,K=OW>=0?FO()-OW:-1,f=r4?FO()-ZD:-1,M=oW>=0?FO()-oW:-1;if(z==947190542)return 100;if(z==79463069)return 200;z=[2E3,4E3];var p=[250,500,1E3];xp(637,Error(),.001);var t=K;f!=-1&&f1500&&M<4E3?500:B}; Ce=function(z,K,f){var M=new ao(0,0,0,0);this.time=z;this.volume=null;this.T=K;this.S=M;this.Y=f}; Tz=function(z,K,f,M,p,t,B,v){this.J=z;this.G=K;this.T=f;this.W=M;this.S=p;this.C=t;this.Y=B;this.D=v}; $WT=function(z){var K=z!==z.top,f=z.top===Mmv(z),M=-1,p=0;if(K&&f&&z.top.mraid){M=3;var t=z.top.mraid}else M=(t=z.mraid)?K?f?2:1:0:-1;t&&(t.IS_GMA_SDK||(p=2),Vqp(KdS,function(B){return typeof t[B]==="function"})||(p=1)); return{Nt:t,compatibility:p,zYL:M}}; fjg=function(){var z=window.document;return z&&typeof z.elementFromPoint==="function"}; MGS=function(z,K,f){if(z&&K!==null&&K!=K.top){if(!K.top)return new g.W9(-12245933,-12245933);K=K.top}try{return(f===void 0?0:f)?(new g.W9(K.innerWidth,K.innerHeight)).round():Wp8(K||window).round()}catch(M){return new g.W9(-12245933,-12245933)}}; UW=function(z,K,f){try{if(z){if(!K.top)return new ao(-12245933,-12245933,-12245933,-12245933);K=K.top}var M=MGS(z,K,f),p=M.height,t=M.width;if(t===-12245933)return new ao(t,t,t,t);var B=Y7(K.document);var v=gf5(B.S);var I=v.x,G=v.y;return new ao(G,I+t,G+p,I)}catch(b){return new ao(-12245933,-12245933,-12245933,-12245933)}}; zQ=function(z,K){K=Math.pow(10,K);return Math.floor(z*K)/K}; pi5=function(z){return new ao(z.top,z.right,z.bottom,z.left)}; tGW=function(z){var K=z.top||0,f=z.left||0;return new ao(K,f+(z.width||0),K+(z.height||0),f)}; Kj=function(z){return z!=null&&z>=0&&z<=1}; Bku=function(){var z=g.H4();return z?$E("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;WebOS".split(";"),function(K){return R9(z,K)})||R9(z,"OMI/")&&!R9(z,"XiaoMi/")?!0:R9(z,"Presto")&&R9(z,"Linux")&&!R9(z,"X11")&&!R9(z,"Android")&&!R9(z,"Mobi"):!1}; NkS=function(){this.T=!Fj(eT.top);this.isMobileDevice=x0()||C_T();var z=rW();this.domain=z.length>0&&z[z.length-1]!=null&&z[z.length-1].url!=null?g.EW(z[z.length-1].url)||"":"";this.S=new ao(0,0,0,0);this.J=new g.W9(0,0);this.C=new g.W9(0,0);this.G=new ao(0,0,0,0);this.frameOffset=new g.Vw(0,0);this.W=0;this.D=!1;this.Y=!(!eT||!$WT(eT).Nt);this.update(eT)}; vNW=function(z,K){K&&K.screen&&(z.J=new g.W9(K.screen.width,K.screen.height))}; Ijd=function(z,K){a:{var f=z.S?new g.W9(Ro(z.S),z.S.getHeight()):new g.W9(0,0);K=K===void 0?eT:K;K!==null&&K!=K.top&&(K=K.top);var M=0,p=0;try{var t=K.document,B=t.body,v=t.documentElement;if(t.compatMode=="CSS1Compat"&&v.scrollHeight)M=v.scrollHeight!=f.height?v.scrollHeight:v.offsetHeight,p=v.scrollWidth!=f.width?v.scrollWidth:v.offsetWidth;else{var I=v.scrollHeight,G=v.scrollWidth,b=v.offsetHeight,e=v.offsetWidth;v.clientHeight!=b&&(I=B.scrollHeight,G=B.scrollWidth,b=B.offsetHeight,e=B.offsetWidth); I>f.height?I>b?(M=I,p=G):(M=b,p=e):I0||z.D)return!0;z=MW().Y.isVisible();var K=Y0(MD)===0;return z||K}; fj=function(){return $N(NkS)}; tu=function(z){this.T=z;this.Y=0;this.S=null}; B2=function(z,K,f){this.T=z;this.Px=f===void 0?"na":f;this.C=[];this.isInitialized=!1;this.J=new Ce(-1,!0,this);this.S=this;this.D=K;this.Y1=this.N=!1;this.eV="uk";this.Hx=!1;this.W=!0}; ND=function(z,K){g.h2(z.C,K)||(z.C.push(K),K.g5(z.S),K.Gb(z.J),K.F9()&&(z.N=!0))}; Gd5=function(z){z=z.S;z.Jy();z.qQ();var K=fj();K.G=UW(!1,z.T,K.isMobileDevice);Ijd(fj(),z.T);z.J.S=z.Oi()}; bC8=function(z){z.N=z.C.length?$E(z.C,function(K){return K.F9()}):!1}; eY8=function(z){var K=g.L1(z.C);g.co(K,function(f){f.Gb(z.J)})}; v2=function(z){var K=g.L1(z.C);g.co(K,function(f){f.g5(z.S)}); z.S!=z||eY8(z)}; It=function(z,K,f,M){this.element=z;this.S=new ao(0,0,0,0);this.T=null;this.W=new ao(0,0,0,0);this.Y=K;this.U0=f;this.Hx=M;this.nH=!1;this.timestamp=-1;this.N=new Tz(K.J,this.element,this.S,new ao(0,0,0,0),0,0,FO(),0);this.C=void 0}; wiS=function(z,K){return z.C?new ao(Math.max(K.top+z.C.top,K.top),Math.min(K.left+z.C.right,K.right),Math.min(K.top+z.C.bottom,K.bottom),Math.max(K.left+z.C.left,K.left)):K.clone()}; GQ=function(z){this.C=!1;this.S=z;this.J=function(){}}; DWo=function(z,K,f){this.T=f===void 0?0:f;this.Y=z;this.S=K==null?"":K}; y4S=function(z){switch(Math.trunc(z.T)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; kdq=function(z,K){return z.TK.T?!1:z.YK.Y?!1:typeof z.Stypeof K.S?!1:z.S0?M[f]-M[f-1]:M[f]})}; Ef=function(){this.Y=new hu;this.Px=this.vx=0;this.QE=new kE;this.l_=this.G=-1;this.rE=1E3;this.oa=new hu([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.eV=this.nH=-1}; P2=function(z,K){return PFg(z.Y,K===void 0?!0:K)}; H2=function(z,K,f,M){var p=p===void 0?!1:p;f=Yp(M,f);A$(z,K,f,{capture:p})}; qD=function(z,K){K=Qj(K);return K===0?0:Qj(z)/K}; Qj=function(z){return Math.max(z.bottom-z.top,0)*Math.max(z.right-z.left,0)}; qcq=function(z,K){if(!z||!K)return!1;for(var f=0;z!==null&&f++<100;){if(z===K)return!0;try{if(z=z.parentElement||z){var M=j8(z),p=M&&Cm(M),t=p&&p.frameElement;t&&(z=t)}}catch(B){break}}return!1}; mQS=function(z,K,f){if(!z||!K)return!1;K=up(z.clone(),-K.left,-K.top);z=(K.left+K.right)/2;K=(K.top+K.bottom)/2;Fj(window.top)&&window.top&&window.top.document&&(window=window.top);if(!fjg())return!1;z=window.document.elementFromPoint(z,K);if(!z)return!1;K=(K=(K=j8(f))&&K.defaultView&&K.defaultView.frameElement)&&qcq(K,z);var M=z===f;z=!M&&z&&N0(z,function(p){return p===f}); return!(K||M||z)}; leS=function(z,K,f,M){return fj().T?!1:Ro(z)<=0||z.getHeight()<=0?!0:f&&M?TWS(208,function(){return mQS(z,K,f)}):!1}; mH=function(z,K,f){g.J.call(this);this.position=V28.clone();this.jB=this.Yl();this.IS=-2;this.timeCreated=Date.now();this.iV=-1;this.pN=K;this.Nn=null;this.JT=!1;this.Z4=null;this.opacity=-1;this.requestSource=f;this.Q5E=!1;this.Pp=function(){}; this.y9=function(){}; this.qD=new s8a;this.qD.wZ=z;this.qD.S=z;this.u0=!1;this.Lk={OQ:null,ZA:null};this.sR=!0;this.xA=null;this.r5=this.uG=!1;kp().W++;this.lj=this.SJ();this.I4=-1;this.ul=null;this.hasCompleted=this.Fy=!1;this.U0=new I9;svS(this.U0);ngg(this);this.requestSource==1?bE(this.U0,"od",1):bE(this.U0,"od",0)}; ngg=function(z){z=z.qD.wZ;var K;if(K=z&&z.getAttribute)K=/-[a-z]/.test("googleAvInapp")?!1:Wu5&&z.dataset?"googleAvInapp"in z.dataset:z.hasAttribute?z.hasAttribute("data-"+e7o()):!!z.getAttribute("data-"+e7o());K&&(fj().Y=!0)}; Vj=function(z,K){K!=z.r5&&(z.r5=K,z=fj(),K?z.W++:z.W>0&&z.W--)}; JG8=function(z,K){if(z.ul){if(K.getName()===z.ul.getName())return;z.ul.dispose();z.ul=null}K=K.create(z.qD.S,z.U0,z.F9());if(K=K!=null&&K.observe()?K:null)z.ul=K}; ggT=function(z,K,f){if(!z.Nn||z.pN==-1||K.Y===-1||z.Nn.Y===-1)return 0;z=K.Y-z.Nn.Y;return z>f?0:z}; iPS=function(z,K,f){if(z.ul){z.ul.yH();var M=z.ul.N,p=M.J,t=p.S;if(M.W!=null){var B=M.T;z.Z4=new g.Vw(B.left-t.left,B.top-t.top)}t=z.CB()?Math.max(M.S,M.C):M.S;B={};p.volume!==null&&(B.volume=p.volume);p=z.I$(M);z.Nn=M;z.Dq(t,K,f,!1,B,p,M.D)}}; dQ5=function(z){if(z.JT&&z.xA){var K=em(z.U0,"od")==1,f=fj().S,M=z.xA,p=z.ul?z.ul.getName():"ns",t=z.Z4,B=new g.W9(Ro(f),f.getHeight());f=z.CB();z={Waf:p,Z4:t,n31:B,CB:f,il:z.lj.il,T$h:K};if(K=M.Y){K.yH();p=K.N;t=p.J.S;var v=B=null;p.W!=null&&t&&(B=p.T,B=new g.Vw(B.left-t.left,B.top-t.top),v=new g.W9(t.right-t.left,t.bottom-t.top));p=f?Math.max(p.S,p.C):p.S;f={Waf:K.getName(),Z4:B,n31:v,CB:f,T$h:!1,il:p}}else f=null;f&&upS(M,z,f)}}; cGp=function(z,K,f){K&&(z.Pp=K);f&&(z.y9=f)}; g.nj=function(){}; g.W2=function(z){return{value:z,done:!1}}; srS=function(){this.J=this.S=this.T=this.Y=this.C=0}; AGg=function(z){var K={};var f=g.N5()-z.C;K=(K.ptlt=f,K);(f=z.Y)&&(K.pnk=f);(f=z.T)&&(K.pnc=f);(f=z.J)&&(K.pnmm=f);(z=z.S)&&(K.pns=z);return K}; jrS=function(){A2.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; Ju=function(z){return Kj(z.volume)&&z.volume>0}; gs=function(z,K,f,M){f=f===void 0?!0:f;M=M===void 0?function(){return!0}:M; return function(p){var t=p[z];if(Array.isArray(t)&&M(p))return YcT(t,K,f)}}; id=function(z,K){return function(f){return K(f)?f[z]:void 0}}; X7S=function(z){return function(K){for(var f=0;f0?t[p-1]+1:0,M+1).reduce(function(B,v){return B+v},0)})}; xQu=function(){this.Y=this.S=""}; Fup=function(){}; c2=function(z,K){var f={};if(z!==void 0)if(K!=null)for(var M in K){var p=K[M];M in Object.prototype||p!=null&&(f[M]=typeof p==="function"?p(z):z[p])}else g.Mn(f,z);return ws(eJ(new bd,f))}; OPS=function(){var z={};this.Y=(z.vs=[1,0],z.vw=[0,1],z.am=[2,2],z.a=[4,4],z.f=[8,8],z.bm=[16,16],z.b=[32,32],z.avw=[0,64],z.avs=[64,0],z.pv=[256,256],z.gdr=[0,512],z.p=[0,1024],z.r=[0,2048],z.m=[0,4096],z.um=[0,8192],z.ef=[0,16384],z.s=[0,32768],z.pmx=[0,16777216],z.mut=[33554432,33554432],z.umutb=[67108864,67108864],z.tvoff=[134217728,134217728],z);this.S={};for(var K in this.Y)this.Y[K][1]>0&&(this.S[K]=0);this.T=0}; sf=function(z,K){var f=z.Y[K],M=f[1];z.T+=f[0];M>0&&z.S[K]==0&&(z.S[K]=1)}; rGS=function(z){var K=g.Z4(z.Y),f=0,M;for(M in z.S)g.h2(K,M)&&z.S[M]==1&&(f+=z.Y[M][1],z.S[M]=2);return f}; ZPI=function(z){var K=0,f;for(f in z.S){var M=z.S[f];if(M==1||M==2)K+=z.Y[f][1]}return K}; Au=function(){this.S=this.Y=0}; jJ=function(){Ef.call(this);this.T=new kE;this.Xc=this.N=this.Hx=0;this.D=-1;this.SE=new kE;this.C=new kE;this.S=new hu;this.W=this.J=-1;this.Y1=new kE;this.rE=2E3;this.Bx=new Au;this.VE=new Au;this.b_=new Au}; YE=function(z,K,f){var M=z.Xc;r4||f||z.D==-1||(M+=K-z.D);return M}; ogS=function(){this.T=!1}; XA=function(z,K){this.T=!1;this.J=z;this.N=K;this.C=0}; xE=function(z,K){XA.call(this,z,K);this.G=[]}; CF5=function(){}; FA=function(){}; Of=function(z,K,f,M){It.call(this,z,K,f,M)}; ZO=function(z,K,f){It.call(this,null,z,K,f);this.D=z.isActive();this.G=0}; ot=function(z){return[z.top,z.left,z.bottom,z.right]}; Cj=function(z,K,f,M,p,t){t=t===void 0?new FA:t;mH.call(this,K,f,M);this.Mx=p;this.Tx=0;this.jY={};this.Qv=new OPS;this.eR={};this.R1="";this.b_=null;this.nI=!1;this.S=[];this.LD=t.Y();this.W=t.T();this.J=null;this.T=-1;this.Px=this.N=void 0;this.l_=this.Y1=0;this.eV=-1;this.rE=this.VE=!1;this.Hx=this.D=this.Y=this.lC=this.TP=0;new hu;this.Bx=this.Xc=0;this.QE=-1;this.GU=0;this.G=g.DZ;this.nH=[this.Yl()];this.LI=2;this.j8={};this.j8.pause="p";this.j8.resume="r";this.j8.skip="s";this.j8.mute="m";this.j8.unmute= "um";this.j8.exitfullscreen="ef";this.C=null;this.oa=this.SE=!1;this.W1=Math.floor(Date.now()/1E3-1704067200);this.vx=0}; TQ=function(z){z.hasCompleted=!0;z.GU!=0&&(z.GU=3)}; Uf=function(z){return z===void 0?z:Number(z)?zQ(z,3):0}; z7=function(z,K){return z.nH[K!=null&&KMath.max(1E4,z.T/3)?0:K);var f=z.G(z)||{};f=f.currentTime!==void 0?f.currentTime:z.Y1;var M=f-z.Y1,p=0;M>=0?(z.l_+=K,z.Bx+=Math.max(K-M,0),p=Math.min(M,z.l_)):z.Xc+=Math.abs(M);M!=0&&(z.l_=0);z.QE==-1&&M>0&&(z.QE=oW>=0?FO()-oW:-1);z.Y1=f;return p}; zu8=function(z,K){$E(z.W,function(f){return f.J==K.J})||z.W.push(K)}; Kt8=function(z){var K=SJ(z.ek().S,1);return KD(z,K)}; KD=function(z,K,f){return K>=15E3?!0:z.VE?(f===void 0?0:f)?!0:z.T>0?K>=z.T/2:z.eV>0?K>=z.eV:!1:!1}; $Mo=function(z){var K=zQ(z.lj.il,2),f=z.Qv.T,M=z.lj,p=z7(z),t=Uf(p.J),B=Uf(p.W),v=Uf(M.volume),I=zQ(p.G,2),G=zQ(p.l_,2),b=zQ(M.il,2),e=zQ(p.nH,2),w=zQ(p.eV,2);M=zQ(M.QL,2);var D=z.hV().clone().round();z=z.ul&&z.ul.T?(z.ul?z.ul.T:null).clone().round():null;p=P2(p,!1);return{zu_:K,A7:f,hZ:t,JZ:B,K5:v,cL:I,Ed:G,il:b,WL:e,zg:w,QL:M,position:D,L5:z,Cc:p}}; M58=function(z,K){fi8(z.S,K,function(){return{zu_:0,A7:void 0,hZ:-1,JZ:-1,K5:-1,cL:-1,Ed:-1,il:-1,WL:-1,zg:-1,QL:-1,position:void 0,L5:void 0,Cc:[]}}); z.S[K]=$Mo(z)}; fi8=function(z,K,f){for(var M=z.length;M0?1:0;e.atos= at(G.S);e.ssb=at(G.oa,!1);e.amtos=PFg(G.S,!1);e.uac=z.TP;e.vpt=G.T.S;b=="nio"&&(e.nio=1,e.avms="nio");e.gmm="4";e.gdr=KD(z,G.T.S,!0)?1:0;e.efpf=z.LI;if(b=="gsv"||b=="nis")b=z.ul,b.G>0&&(e.nnut=b.G);e.tcm=Tjv(z);e.nmt=z.Xc;e.bt=z.Bx;e.pst=z.QE;e.vpaid=z.N;e.dur=z.T;e.vmtime=z.Y1;e.is=z.Qv.T;z.S.length>=1&&(e.i0=z.S[0].A7,e.a0=[z.S[0].K5],e.c0=[z.S[0].il],e.ss0=[z.S[0].QL],b=z.S[0].position,t=z.S[0].L5,e.p0=b?ot(b):void 0,b&&t&&!ST(t,b)&&(e.cp0=ot(t)));z.S.length>=2&&(e.i1=z.S[1].A7,e.a1=Mx(z.S[1].hZ, z.S[1].K5,z.S[1].JZ),e.c1=Mx(z.S[1].cL,z.S[1].il,z.S[1].Ed),e.ss1=Mx(z.S[1].WL,z.S[1].QL,z.S[1].zg),b=z.S[1].position,t=z.S[1].L5,e.p1=b?ot(b):void 0,b&&t&&!ST(t,b)&&(e.cp1=ot(t)),e.mtos1=z.S[1].Cc);z.S.length>=3&&(e.i2=z.S[2].A7,e.a2=Mx(z.S[2].hZ,z.S[2].K5,z.S[2].JZ),e.c2=Mx(z.S[2].cL,z.S[2].il,z.S[2].Ed),e.ss2=Mx(z.S[2].WL,z.S[2].QL,z.S[2].zg),b=z.S[2].position,t=z.S[2].L5,e.p2=b?ot(b):void 0,b&&t&&!ST(t,b)&&(e.cp2=ot(t)),e.mtos2=z.S[2].Cc);z.S.length>=4&&(e.i3=z.S[3].A7,e.a3=Mx(z.S[3].hZ,z.S[3].K5, z.S[3].JZ),e.c3=Mx(z.S[3].cL,z.S[3].il,z.S[3].Ed),e.ss3=Mx(z.S[3].WL,z.S[3].QL,z.S[3].zg),b=z.S[3].position,t=z.S[3].L5,e.p3=b?ot(b):void 0,b&&t&&!ST(t,b)&&(e.cp3=ot(t)),e.mtos3=z.S[3].Cc);e.cs=ZPI(z.Qv);K&&(e.ic=rGS(z.Qv),e.dvpt=G.T.Y,e.dvs=Lj(G.Y,.5),e.dfvs=Lj(G.Y,1),e.davs=Lj(G.S,.5),e.dafvs=Lj(G.S,1),f&&(G.T.Y=0,HPo(G.Y),HPo(G.S)),z.kX()&&(e.dtos=G.Hx,e.dav=G.N,e.dtoss=z.Tx+1,f&&(G.Hx=0,G.N=0,z.Tx++)),e.dat=G.C.Y,e.dft=G.Y1.Y,f&&(G.C.Y=0,G.Y1.Y=0));e.ps=[v.C.width,v.C.height];e.bs=[Ro(v.S),v.S.getHeight()]; e.scs=[v.J.width,v.J.height];e.dom=v.domain;z.lC&&(e.vds=z.lC);if(z.W.length>0||z.LD)K=g.L1(z.W),z.LD&&K.push(z.LD),e.pings=g.UZ(K,function(w){return w.toString()}); K=g.UZ(g.ds(z.W,function(w){return w.W()}),function(w){return w.getId()}); ESI(K);e.ces=K;z.Y&&(e.vmer=z.Y);z.D&&(e.vmmk=z.D);z.Hx&&(e.vmiec=z.Hx);e.avms=z.ul?z.ul.getName():"ns";z.ul&&g.Mn(e,z.ul.eQ());M?(e.c=zQ(z.lj.il,2),e.ss=zQ(z.lj.QL,2)):e.tth=FO()-N5v;e.mc=zQ(G.l_,2);e.nc=zQ(G.G,2);e.mv=Uf(G.W);e.nv=Uf(G.J);e.lte=zQ(z.IS,2);M=z7(z,p);P2(G);e.qmtos=P2(M);e.qnc=zQ(M.G,2);e.qmv=Uf(M.W);e.qnv=Uf(M.J);e.qas=M.J>0?1:0;e.qi=z.R1;e.avms||(e.avms="geo");e.psm=G.Bx.S;e.psv=G.Bx.getValue();e.psfv=G.VE.getValue();e.psa=G.b_.getValue();I=d8d(I.U0);I.length&&(e.veid=I);z.C&&g.Mn(e, AGg(z.C));e.avas=z.k0();e.vs=z.M6();e.co=vDT(z);e.tm=G.vx;e.tu=G.Px;return e}; pXa=function(z,K){if(g.h2(Iio,K))return!0;var f=z.jY[K];return f!==void 0?(z.jY[K]=!0,!f):!1}; vDT=function(z){var K=z.vx.toString(10).padStart(2,"0");K=""+z.W1+K;z.vx<99&&z.vx++;return K}; bFI=function(){this.S={};var z=Cm();pD(this,z,document);var K=GAS();try{if("1"==K){for(var f=z.parent;f!=z.top;f=f.parent)pD(this,f,f.document);pD(this,z.top,z.top.document)}}catch(M){}}; GAS=function(){var z=document.documentElement;try{if(!Fj(Cm().top))return"2";var K=[],f=Cm(z.ownerDocument);for(z=f;z!=f.top;z=z.parent)if(z.frameElement)K.push(z.frameElement);else break;return K&&K.length!=0?"1":"0"}catch(M){return"2"}}; pD=function(z,K,f){H2(f,"mousedown",function(){return euS(z)},301); H2(K,"scroll",function(){return wXp(z)},302); H2(f,"touchmove",function(){return DMa(z)},303); H2(f,"mousemove",function(){return yCg(z)},304); H2(f,"keydown",function(){return kAa(z)},305)}; euS=function(z){g.jS(z.S,function(K){K.T>1E5||++K.T})}; wXp=function(z){g.jS(z.S,function(K){K.S>1E5||++K.S})}; DMa=function(z){g.jS(z.S,function(K){K.S>1E5||++K.S})}; kAa=function(z){g.jS(z.S,function(K){K.Y>1E5||++K.Y})}; yCg=function(z){g.jS(z.S,function(K){K.J>1E5||++K.J})}; huu=function(){this.S=[];this.Y=[]}; tg=function(z,K){return g.yQ(z.S,function(f){return f.R1==K})}; aip=function(z,K){return K?g.yQ(z.S,function(f){return f.qD.wZ==K}):null}; RuW=function(z,K){return g.yQ(z.Y,function(f){return f.N8()==2&&f.R1==K})}; Nx=function(){var z=Bj;return z.S.length==0?z.Y:z.Y.length==0?z.S:g.u_(z.Y,z.S)}; SUv=function(z,K){z=K.N8()==1?z.S:z.Y;var f=D4(z,function(M){return M==K}); return f!=-1?(z.splice(f,1),K.ul&&K.ul.unobserve(),K.dispose(),!0):!1}; uCS=function(z){var K=Bj;if(SUv(K,z)){switch(z.N8()){case 0:var f=function(){return null}; case 2:f=function(){return RuW(K,z.R1)}; break;case 1:f=function(){return tg(K,z.R1)}}for(var M=f();M;M=f())SUv(K,M)}}; Ltu=function(z){var K=Bj;z=g.ds(z,function(f){return!aip(K,f.qD.wZ)}); K.S.push.apply(K.S,g.P(z))}; EDI=function(z){var K=[];g.co(z,function(f){$E(Bj.S,function(M){return M.qD.wZ===f.qD.wZ&&M.R1===f.R1})||(Bj.S.push(f),K.push(f))})}; vj=function(){this.S=this.Y=null}; PMI=function(z,K){function f(M,p){K(M,p)} if(z.Y==null)return!1;z.S=g.yQ(z.Y,function(M){return M!=null&&M.Ev()}); z.S&&(z.S.init(f)?Gd5(z.S.S):K(z.S.S.Iy(),z.S));return z.S!=null}; Iu=function(z){z=HF5(z);GQ.call(this,z.length?z[z.length-1]:new B2(eT,0));this.T=z;this.Y=null}; HF5=function(z){if(!z.length)return[];z=(0,g.ds)(z,function(f){return f!=null&&f.kW()}); for(var K=1;Kf.time?K:f},z[0])}; wF=function(z){z=z===void 0?eT:z;GQ.call(this,new B2(z,2))}; D9=function(){var z=li5();B2.call(this,eT.top,z,"geo")}; li5=function(){kp();var z=fj();return z.T||z.Y?0:2}; V5g=function(){}; ya=function(){this.done=!1;this.S={a8:0,Cy:0,VDd:0,QD:0,VZ:-1,QN:0,OG:0,VN:0,c_x:0};this.C=null;this.W=!1;this.T=null;this.G=0;this.Y=new tu(this)}; hg=function(){var z=kF;z.W||(z.W=!0,nDI(z,function(){return z.J.apply(z,g.P(g.i8.apply(0,arguments)))}),z.J())}; Wta=function(){$N(V5g);var z=$N(vj);z.S!=null&&z.S.S?Gd5(z.S.S):fj().update(eT)}; au=function(z,K,f){if(!z.done&&(z.Y.cancel(),K.length!=0)){z.T=null;try{Wta();var M=FO();kp().C=M;if($N(vj).S!=null)for(var p=0;p=0?FO()-OW:-1,v=FO();p.S.VZ==-1&&(B=v);var I=fj(),G=kp(),b=wr(G.U0),e=Nx();try{if(e.length>0){var w=I.S;w&&(b.bs=[Ro(w),w.getHeight()]);var D=I.C;D&&(b.ps=[D.width,D.height]);eT.screen&&(b.scs=[eT.screen.width,eT.screen.height])}else b.url=encodeURIComponent(eT.location.href.substring(0,512)),t.referrer&&(b.referrer=encodeURIComponent(t.referrer.substring(0,512))); b.tt=B;b.pt=OW;b.bin=G.Y;eT.google_osd_load_pub_page_exp!==void 0&&(b.olpp=eT.google_osd_load_pub_page_exp);b.deb=[1,p.S.a8,p.S.Cy,p.S.QD,p.S.VZ,0,p.Y.Y,p.S.QN,p.S.OG,p.S.VN,p.S.c_x,-1].join(";");b.tvt=gD8(p,v);I.Y&&(b.inapp=1);if(eT!==null&&eT!=eT.top){e.length>0&&(b.iframe_loc=encodeURIComponent(eT.location.href.substring(0,512)));var y=I.G;b.is=[Ro(y),y.getHeight()]}}catch(R){b.error=1}kF.T=b}w=g.$o(kF.T);D=kp().S;em(D.T,"prf")==1?(y=new DD,p=D.S,t=0,p.S>-1&&(t=p.T.S.now()-p.S),y=dj(y,1,jG(p.J+ t),0),p=D.S,y=dj(y,5,FY(p.S>-1?p.Y+1:p.Y),0),y=dj(y,2,UH(D.Y.S.T()),"0"),y=dj(y,3,UH(D.Y.S.Y()),"0"),D=dj(y,4,UH(D.Y.S.S()),"0"),y={},D=(y.pf=g.NW(D.T()),y)):D={};g.Mn(w,D);g.Mn(K,M,f,w,z())}])}; cCS=function(){var z=dMW||eT;if(!z)return"";var K=[];if(!z.location||!z.location.href)return"";K.push("url="+encodeURIComponent(z.location.href.substring(0,512)));z.document&&z.document.referrer&&K.push("referrer="+encodeURIComponent(z.document.referrer.substring(0,512)));return K.join("&")}; Ru=function(){var z="youtube.player.web_20250528_22_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250528_22_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250528_22_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250528_22_RC00".match(/_(\d{8})_\d+_RC\d+$/),K;if(((K=z)==null?void 0:K.length)==2)return z[1];z="youtube.player.web_20250528_22_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var f;return((f=z)==null?void 0:f.length)==3?"20"+z[1]+z[2]:null}; snv=function(){return"av.default_js".includes("ima_html5_sdk")?{OD:"ima",QB:null}:"av.default_js".includes("ima_native_sdk")?{OD:"nima",QB:null}:"av.default_js".includes("admob-native-video-javascript")?{OD:"an",QB:null}:"youtube.player.web_20250528_22_RC00".includes("cast_js_sdk")?{OD:"cast",QB:Ru()}:"youtube.player.web_20250528_22_RC00".includes("youtube.player.web")?{OD:"yw",QB:Ru()}:"youtube.player.web_20250528_22_RC00".includes("outstream_web_client")?{OD:"out",QB:Ru()}:"youtube.player.web_20250528_22_RC00".includes("drx_rewarded_web")? {OD:"r",QB:Ru()}:"youtube.player.web_20250528_22_RC00".includes("gam_native_web_video")?{OD:"n",QB:Ru()}:"youtube.player.web_20250528_22_RC00".includes("admob_interstitial_video")?{OD:"int",QB:Ru()}:{OD:"j",QB:null}}; LD=function(z,K){var f={sv:"967"};Sr!==null&&(f.v=Sr);f.cb=ACq;f.nas=Bj.S.length;f.msg=z;K!==void 0&&(z=jna(K))&&(f.e=uK[z]);return f}; Ez=function(z){return yA(z,"custom_metric_viewable")}; jna=function(z){var K=Ez(z)?"custom_metric_viewable":z.toLowerCase();return TH($F,function(f){return f==K})}; YUI=function(){this.S=void 0;this.Y=!1;this.T=0;this.J=-1;this.C="tos"}; Ftg=function(z){try{var K=z.split(",");return K.length>g.Z4(XXg).length?null:KC(K,function(f,M){M=M.toLowerCase().split("=");if(M.length!=2||xMq[M[0]]===void 0||!xMq[M[0]](M[1]))throw Error("Entry ("+M[0]+", "+M[1]+") is invalid.");f[M[0]]=M[1];return f},{})}catch(f){return null}}; OFv=function(z,K){if(z.S==void 0)return 0;switch(z.C){case "mtos":return z.Y?ud(K.S,z.S):ud(K.Y,z.S);case "tos":return z.Y?SJ(K.S,z.S):SJ(K.Y,z.S)}return 0}; Pj=function(z,K,f,M){XA.call(this,K,M);this.G=z;this.D=f}; Hj=function(){}; Qa=function(z){XA.call(this,"fully_viewable_audible_half_duration_impression",z)}; qx=function(z){this.S=z}; mT=function(z,K){XA.call(this,z,K)}; lK=function(z){xE.call(this,"measurable_impression",z)}; Va=function(){qx.apply(this,arguments)}; nD=function(z,K,f){ZO.call(this,z,K,f)}; Wj=function(z){z=z===void 0?eT:z;GQ.call(this,new B2(z,2))}; Jg=function(z,K,f){ZO.call(this,z,K,f)}; gF=function(z){z=z===void 0?eT:z;GQ.call(this,new B2(z,2))}; iK=function(){B2.call(this,eT,2,"mraid");this.Bx=0;this.l_=this.nH=!1;this.G=null;this.Y=$WT(this.T);this.J.S=new ao(0,0,0,0);this.vx=!1}; dF=function(z,K,f){z.CK("addEventListener",K,f)}; CM8=function(z){kp().J=!!z.CK("isViewable");dF(z,"viewableChange",rCS);z.CK("getState")==="loading"?dF(z,"ready",ZFW):oDo(z)}; oDo=function(z){typeof z.Y.Nt.AFMA_LIDAR==="string"?(z.nH=!0,T5I(z)):(z.Y.compatibility=3,z.G="nc",z.Qa("w"))}; T5I=function(z){z.l_=!1;var K=em(kp().U0,"rmmt")==1,f=!!z.CK("isViewable");(K?!f:1)&&MW().setTimeout(XO(524,function(){z.l_||(UMu(z),xp(540,Error()),z.G="mt",z.Qa("w"))}),500); zXg(z);dF(z,z.Y.Nt.AFMA_LIDAR,KmT)}; zXg=function(z){var K=em(kp().U0,"sneio")==1,f=z.Y.Nt.AFMA_LIDAR_EXP_1!==void 0,M=z.Y.Nt.AFMA_LIDAR_EXP_2!==void 0;(K=K&&M)&&(z.Y.Nt.AFMA_LIDAR_EXP_2=!0);f&&(z.Y.Nt.AFMA_LIDAR_EXP_1=!K)}; UMu=function(z){z.CK("removeEventListener",z.Y.Nt.AFMA_LIDAR,KmT);z.nH=!1}; $rp=function(z,K){if(z.CK("getState")==="loading")return new g.W9(-1,-1);K=z.CK(K);if(!K)return new g.W9(-1,-1);z=parseInt(K.width,10);K=parseInt(K.height,10);return isNaN(z)||isNaN(K)?new g.W9(-1,-1):new g.W9(z,K)}; ZFW=function(){try{var z=$N(iK);z.CK("removeEventListener","ready",ZFW);oDo(z)}catch(K){xp(541,K)}}; KmT=function(z,K){try{var f=$N(iK);f.l_=!0;var M=z?new ao(z.y,z.x+z.width,z.y+z.height,z.x):new ao(0,0,0,0);var p=FO(),t=pj();var B=new Ce(p,t,f);B.S=M;B.volume=K;f.Gb(B)}catch(v){xp(542,v)}}; rCS=function(z){var K=kp(),f=$N(iK);z&&!K.J&&(K.J=!0,f.vx=!0,f.G&&f.Qa("w",!0))}; cj=function(){this.isInitialized=!1;this.S=this.Y=null;var z={};this.G=(z.start=this.Ja,z.firstquartile=this.Aa,z.midpoint=this.lG,z.thirdquartile=this.Ez,z.complete=this.al,z.error=this.ol,z.pause=this.VA,z.resume=this.WK,z.skip=this.qH,z.viewable_impression=this.yB,z.mute=this.SK,z.unmute=this.SK,z.fullscreen=this.Yy,z.exitfullscreen=this.S6,z.fully_viewable_audible_half_duration_impression=this.yB,z.measurable_impression=this.yB,z.abandon=this.VA,z.engagedview=this.yB,z.impression=this.yB,z.creativeview= this.yB,z.progress=this.SK,z.custom_metric_viewable=this.yB,z.bufferstart=this.VA,z.bufferfinish=this.WK,z.audio_measurable=this.yB,z.audio_audible=this.yB,z);z={};this.D=(z.overlay_resize=this.TO,z.abandon=this.P3,z.close=this.P3,z.collapse=this.P3,z.overlay_unmeasurable_impression=function(K){return fD(K,"overlay_unmeasurable_impression",pj())},z.overlay_viewable_immediate_impression=function(K){return fD(K,"overlay_viewable_immediate_impression",pj())},z.overlay_unviewable_impression=function(K){return fD(K, "overlay_unviewable_impression",pj())},z.overlay_viewable_end_of_session_impression=function(K){return fD(K,"overlay_viewable_end_of_session_impression",pj())},z); kp().Y=3;fDu(this);this.T=null}; sz=function(z,K,f,M){z=z.XO(null,M,!0,K);z.J=f;Ltu([z]);return z}; MU8=function(z,K,f){lTI(K);var M=z.S;g.co(K,function(p){var t=g.UZ(p.criteria,function(B){var v=Ftg(B);if(v==null)B=null;else if(B=new YUI,v.visible!=null&&(B.S=v.visible/100),v.audible!=null&&(B.Y=v.audible==1),v.time!=null){var I=v.timetype=="mtos"?"mtos":"tos",G=Adq(v.time,"%")?"%":"ms";v=parseInt(v.time,10);G=="%"&&(v/=100);B.setTime(v,G,I)}return B}); $E(t,function(B){return B==null})||zu8(f,new Pj(p.id,p.event,t,M))})}; pv8=function(){var z=[],K=kp();z.push($N(D9));em(K.U0,"mvp_lv")&&z.push($N(iK));K=[new Wj,new gF];K.push(new Iu(z));K.push(new wF(eT));return K}; tUg=function(z){if(!z.isInitialized){z.isInitialized=!0;try{var K=FO(),f=kp(),M=fj();OW=K;f.T=79463069;z.Y!=="o"&&(dMW=Mmv(eT));if(Dnp()){kF.S.Cy=0;kF.S.VZ=FO()-K;var p=pv8(),t=$N(vj);t.Y=p;PMI(t,function(){Ag()})?kF.done||(JCg(),ND(t.S.S,z),hg()):M.T?Ag():hg()}else jr=!0}catch(B){throw Bj.reset(),B; }}}; XZ=function(z){kF.Y.cancel();YF=z;kF.done=!0}; xF=function(z){if(z.Y)return z.Y;var K=$N(vj).S;if(K)switch(K.getName()){case "nis":z.Y="n";break;case "gsv":z.Y="m"}z.Y||(z.Y="h");return z.Y}; FZ=function(z,K,f){if(z.S==null)return K.lC|=4,!1;z=B4q(z.S,f,K);K.lC|=z;return z==0}; Ag=function(){var z=[new wF(eT)],K=$N(vj);K.Y=z;PMI(K,function(){XZ("i")})?kF.done||(JCg(),hg()):XZ("i")}; N4g=function(z,K){if(!z.nI){var f=fD(z,"start",pj());f=z.Mx.S(f).S;var M={id:"lidarv"};M.r=K;M.sv="967";Sr!==null&&(M.v=Sr);Q8(f,function(p,t){return M[p]=p=="mtos"||p=="tos"?t:encodeURIComponent(t)}); K=cCS();Q8(K,function(p,t){return M[p]=encodeURIComponent(t)}); K="//pagead2.googlesyndication.com/pagead/gen_204?"+ws(eJ(new bd,M));Rrd(K);z.nI=!0}}; Oz=function(z,K,f){au(kF,[z],!pj());M58(z,f);f!=4&&fi8(z.nH,f,z.Yl);return fD(z,K,pj())}; fDu=function(z){iFq(function(){var K=vpI();z.Y!=null&&(K.sdk=z.Y);var f=$N(vj);f.S!=null&&(K.avms=f.S.getName());return K})}; IDg=function(z,K,f,M){var p=aip(Bj,f);p!==null&&p.R1!==K&&(z.Wv(p),p=null);p||(K=z.XO(f,FO(),!1,K),Bj.Y.length==0&&(kp().T=79463069),EDI([K]),p=K,p.J=xF(z),M&&(p.b_=M));return p}; Gzg=function(z,K){var f=z[K];f!==void 0&&f>0&&(z[K]=Math.floor(f*1E3))}; vpI=function(){var z=fj(),K={},f={},M={};return Object.assign({},(K.sv="967",K),Sr!==null&&(f.v=Sr,f),(M["if"]=z.T?"1":"0",M.nas=String(Bj.S.length),M))}; rF=function(z){XA.call(this,"audio_audible",z)}; Uz=function(z){xE.call(this,"audio_measurable",z)}; z1=function(){qx.apply(this,arguments)}; K_=function(){}; bea=function(z){this.S=z}; B4q=function(z,K,f){z=z.Y();if(typeof z==="function"){var M={};var p={};M=Object.assign({},Sr!==null&&(M.v=Sr,M),(p.sv="967",p.cb=ACq,p.e=eX5(K),p));p=fD(f,K,pj());g.Mn(M,p);f.eR[K]=p;M=f.N8()==2?aeg(M).join("&"):f.Mx.S(M).S;try{return z(f.R1,M,K),0}catch(t){return 2}}else return 1}; eX5=function(z){var K=Ez(z)?"custom_metric_viewable":z;z=TH($F,function(f){return f==K}); return uK[z]}; f_=function(){cj.call(this);this.W=null;this.C=!1;this.J="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; wvg=function(z,K,f){f=f.opt_configurable_tracking_events;z.S!=null&&Array.isArray(f)&&MU8(z,f,K)}; Dr5=function(z,K,f){var M=tg(Bj,K);M||(M=f.opt_nativeTime||-1,M=sz(z,K,xF(z),M),f.opt_osdId&&(M.b_=f.opt_osdId));return M}; yoW=function(z,K,f){var M=tg(Bj,K);M||(M=sz(z,K,"n",f.opt_nativeTime||-1));return M}; kzd=function(z,K){var f=tg(Bj,K);f||(f=sz(z,K,"h",-1));return f}; hXu=function(z){kp();switch(xF(z)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; SWg=function(z,K,f,M){f=f===void 0?{}:f;var p={};g.Mn(p,{opt_adElement:void 0,opt_fullscreen:void 0},f);var t=z.ej(K,f);f=t?t.Mx:z.NN();if(p.opt_bounds)return f.S(LD("ol",M));if(M!==void 0)if(jna(M)!==void 0)if(jr)z=LD("ue",M);else if(tUg(z),YF=="i")z=LD("i",M),z["if"]=0;else if(K=z.ej(K,p)){b:{YF=="i"&&(K.u0=!0);t=p.opt_fullscreen;t!==void 0&&Vj(K,!!t);var B;if(t=!fj().Y)(t=R9(g.H4(),"CrKey")&&!(R9(g.H4(),"CrKey")&&R9(g.H4(),"SmartSpeaker"))||R9(g.H4(),"PlayStation")||R9(g.H4(),"Roku")||Bku()||R9(g.H4(), "Xbox"))||(t=g.H4(),t=R9(t,"AppleTV")||R9(t,"Apple TV")||R9(t,"CFNetwork")||R9(t,"tvOS")),t||(t=g.H4(),t=R9(t,"sdk_google_atv_x86")||R9(t,"Android TV")),t=!t;t&&(MW(),t=Y0(MD)===0);if(B=t){switch(K.N8()){case 1:N4g(K,"pv");break;case 2:z.nC(K)}XZ("pv")}t=M.toLowerCase();if(B=!B)B=em(kp().U0,"ssmol")&&t==="loaded"?!1:g.h2(aDq,t);if(B&&K.GU==0){YF!="i"&&(kF.done=!1);B=p!==void 0?p.opt_nativeTime:void 0;oW=B=typeof B==="number"?B:FO();K.JT=!0;var v=pj();K.GU=1;K.jY={};K.jY.start=!1;K.jY.firstquartile= !1;K.jY.midpoint=!1;K.jY.thirdquartile=!1;K.jY.complete=!1;K.jY.resume=!1;K.jY.pause=!1;K.jY.skip=!1;K.jY.mute=!1;K.jY.unmute=!1;K.jY.viewable_impression=!1;K.jY.measurable_impression=!1;K.jY.fully_viewable_audible_half_duration_impression=!1;K.jY.fullscreen=!1;K.jY.exitfullscreen=!1;K.Tx=0;v||(K.ek().D=B);au(kF,[K],!v)}(B=K.j8[t])&&sf(K.Qv,B);em(kp().U0,"fmd")||g.h2(RXa,t)&&K.LD&&K.LD.Y(K,null);switch(K.N8()){case 1:var I=Ez(t)?z.G.custom_metric_viewable:z.G[t];break;case 2:I=z.D[t]}if(I&&(M=I.call(z, K,p,M),em(kp().U0,"fmd")&&g.h2(RXa,t)&&K.LD&&K.LD.Y(K,null),M!==void 0)){p=LD(void 0,t);g.Mn(p,M);M=p;break b}M=void 0}K.GU==3&&z.Wv(K);z=M}else z=LD("nf",M);else z=void 0;else jr?z=LD("ue"):t?(z=LD(),g.Mn(z,t58(t,!0,!1,!1))):z=LD("nf");return typeof z==="string"?f.S():f.S(z)}; uOS=function(z,K){K&&(z.J=K)}; Lmp=function(z){var K={};return K.viewability=z.S,K.googleViewability=z.Y,K}; Epp=function(z,K,f){f=f===void 0?{}:f;z=SWg($N(f_),K,f,z);return Lmp(z)}; Mq=function(z){return new RegExp("[^#]*[?&]"+z+"=([^&#]*)")}; p_=function(z,K){return(z=K.exec(z))?z[1]:null}; tb=function(z){var K=g.i8.apply(1,arguments).filter(Boolean).join("&");if(!K)return z;var f=z.match(/[?&]adurl=/);return f?z.slice(0,f.index+1)+K+"&"+z.slice(f.index+1):z+(z.indexOf("?")<0?"?":"&")+K}; BF=function(z,K){return K?"&"+z+"="+encodeURIComponent(K):""}; P6S=function(z){var K=z.url;z=z.cVE;this.S=K;this.T=z;this.Y=(new Date).getTime()-17040672E5}; Heq=function(z){z=z.T;if(!z)return"";var K=BF("uap",z.platform)+BF("uapv",z.platformVersion)+BF("uafv",z.uaFullVersion)+BF("uaa",z.architecture)+BF("uam",z.model)+BF("uab",z.bitness);z.fullVersionList&&(K+="&uafvl="+encodeURIComponent(z.fullVersionList.map(function(f){return encodeURIComponent(f.brand)+";"+encodeURIComponent(f.version)}).join("|"))); z.wow64!=null&&(K+="&uaw="+Number(z.wow64));return K.slice(1)}; mrI=function(z,K,f,M,p){var t=window;var B=B===void 0?!1:B;var v;f?v=(B===void 0?0:B)?"//ep1.adtrafficquality.google/bg/"+k7(f)+".js":"//pagead2.googlesyndication.com/bg/"+k7(f)+".js":v="";B=B===void 0?!1:B;f=t.document;var I={};K&&(I._scs_=K);I._bgu_=v;I._bgp_=M;I._li_="v_h.3.0.0.0";p&&(I._upb_=p);(K=t.GoogleTyFxhY)&&typeof K.push=="function"||(K=t.GoogleTyFxhY=[]);K.push(I);K=Y7(f).createElement("SCRIPT");K.type="text/javascript";K.async=!0;z=(B===void 0?0:B)?l4I(QWp,k7(z)+".js"):l4I(qWq,k7(z)+ ".js");g.v9(K,z);(t=(t.GoogleTyFxhYEET||{})[K.src])?t():f.getElementsByTagName("head")[0].appendChild(K)}; lD8=function(){try{var z,K;return!!((z=window)==null?0:(K=z.top)==null?0:K.location.href)&&!1}catch(f){return!0}}; Nq=function(z,K,f){f=f===void 0?Error():f;var M=Error.call(this);this.message=M.message;"stack"in M&&(this.stack=M.stack);this.code=z;K+=":";f instanceof Error?(this.message=K+f.message,this.stack=f.stack||""):(this.message=K+String(f),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; IE=function(){var z=VUS();z=z===void 0?"bevasrsg":z;return new Promise(function(K){var f=window===window.top?window:lD8()?window:window.top,M=f[z],p;((p=M)==null?0:p.bevasrs)?K(new vF(M.bevasrs)):(M||(M={},M=(M.nqfbel=[],M),f[z]=M),M.nqfbel.push(function(t){K(new vF(t))}))})}; npS=function(z){var K={c:z.HV,e:z.dw,mc:z.uH,me:z.gm};z.N0&&(K.co={c:z.N0.WS,a:z.N0.uR,s:z.N0.zd});return K}; G1=function(z){g.J.call(this);this.wpc=z}; vF=function(z){g.J.call(this);var K=this;this.r3=z;this.T="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.Y=void 0;this.Jq=this.r3.p;this.J=this.xV.bind(this);this.addOnDisposeCallback(function(){return void WmS(K)})}; JoT=function(z){var K;return g.n(function(f){if(f.Y==1){if(!z.r3.wpc)throw new Nq(30,"NWA");return z.S?f.return(z.S):g.l(f,z.r3.wpc(),2)}K=f.S;z.S=new G1(K);return f.return(z.S)})}; WmS=function(z){z.Y!==void 0&&(z.T.forEach(function(K){var f;(f=z.Y)==null||f.removeEventListener(K,z.J)}),z.Y=void 0)}; gpu=function(z){var K=K===void 0?49:K;var f=[];or(z,bZ,6).forEach(function(M){zA(M,2)<=K&&f.push(zA(M,1))}); return f}; ie8=function(z){var K=K===void 0?49:K;var f=[];or(z,bZ,6).forEach(function(M){zA(M,2)>K&&f.push(zA(M,1))}); return f}; drp=function(z){z.then(function(){},function(){})}; e_=function(){g.J.apply(this,arguments);this.J=1;this[co5]=this.dispose}; wo=function(z){return{fieldType:2,fieldName:z}}; g.Dq=function(z){return{fieldType:3,fieldName:z}}; sWo=function(z){this.S=z;z.J6("/client_streamz/bg/frs",g.Dq("mk"))}; AoW=function(z){this.S=z;z.J6("/client_streamz/bg/wrl",g.Dq("mn"),wo("ac"),wo("sc"),g.Dq("rk"),g.Dq("mk"))}; jWS=function(z){this.S=z;z.T7("/client_streamz/bg/ec",g.Dq("en"),g.Dq("mk"))}; YWv=function(z){this.S=z;z.J6("/client_streamz/bg/el",g.Dq("en"),g.Dq("mk"))}; Xvp=function(z){this.S=z;z.T7("/client_streamz/bg/cec",wo("ec"),g.Dq("mk"))}; xrW=function(z){this.S=z;z.T7("/client_streamz/bg/po/csc",wo("cs"),g.Dq("mk"))}; FmS=function(z){this.S=z;z.T7("/client_streamz/bg/po/ctav",g.Dq("av"),g.Dq("mk"))}; Oe8=function(z){this.S=z;z.T7("/client_streamz/bg/po/cwsc",g.Dq("su"),g.Dq("mk"))}; roa=function(z){this.Yi=g.hG(z)}; Zeu=function(z,K){return qsq(z,K,Ung)}; y0=function(z){this.Yi=g.hG(z)}; kj=function(z){this.Yi=g.hG(z)}; aE=function(z){this.Yi=g.hG(z)}; RE=function(z){this.Yi=g.hG(z)}; opq=function(z){this.Yi=g.hG(z)}; g.Uru=function(z){var K=new RE;K=BX(K,1,z.Y);var f=C6q(z);K=qsq(K,f,GmI);f=[];for(var M=[],p=g.a(z.S.keys()),t=p.next();!t.done;t=p.next())M.push(t.value.split(","));for(p=0;p>>31)&4294967295;e=p[0];var y=p[1],R=p[2],S=p[3],E=p[4];for(D=0;D<80;D++){if(D<40)if(D<20){var L=S^y&(R^S);var q=1518500249}else L=y^R^S,q=1859775393;else D<60?(L=y&R|S&(y|R),q=2400959708):(L=y^R^S,q=3395469782);L=((e<<5|e>>>27)&4294967295)+L+E+q+w[D]&4294967295;E=S;S=R;R=(y<<30|y>>>2)&4294967295;y=e;e=L}p[0]=p[0]+e&4294967295;p[1]=p[1]+y&4294967295;p[2]= p[2]+R&4294967295;p[3]=p[3]+S&4294967295;p[4]=p[4]+E&4294967295} function f(e,w){if(typeof e==="string"){e=unescape(encodeURIComponent(e));for(var D=[],y=0,R=e.length;y=56;D--)t[D]=w&255,w>>>=8;K(t);for(D=w=0;D<5;D++)for(var y=24;y>=0;y-=8)e[w++]=p[D]>>y&255;return e} for(var p=[],t=[],B=[],v=[128],I=1;I<64;++I)v[I]=0;var G,b;z();return{reset:z,update:f,digest:M,lm:function(){for(var e=M(),w="",D=0;D1)));B=B.next)p||(t=B);p&&(f.S==0&&M==1?oEd(f,K):(t?(M=t,M.next==f.J&&(f.J=M),M.next=M.next.next):CdI(f),TsW(f,p,3,K)))}z.T=null}else lL(z,3,K)}; sA=function(z,K){z.Y||z.S!=2&&z.S!=3||UDS(z);z.J?z.J.next=K:z.Y=K;z.J=K}; z5S=function(z,K,f,M){var p=nr(null,null,null);p.S=new g.Vh(function(t,B){p.T=K?function(v){try{var I=K.call(M,v);t(I)}catch(G){B(G)}}:t; p.Y=f?function(v){try{var I=f.call(M,v);I===void 0&&v instanceof jk?B(v):t(I)}catch(G){B(G)}}:B}); p.S.T=z;sA(z,p);return p.S}; lL=function(z,K,f){z.S==0&&(z===f&&(K=3,f=new TypeError("Promise cannot resolve to itself")),z.S=1,FHu(f,z.La_,z.r_E,z)||(z.G=f,z.S=K,z.T=null,UDS(z),K!=3||f instanceof jk||KT8(z,f)))}; FHu=function(z,K,f,M){if(z instanceof g.Vh)return Zjg(z,K,f,M),!0;if(z)try{var p=!!z.$goog_Thenable}catch(B){p=!1}else p=!1;if(p)return z.then(K,f,M),!0;if(g.$f(z))try{var t=z.then;if(typeof t==="function")return $xg(z,t,K,f,M),!0}catch(B){return f.call(M,B),!0}return!1}; $xg=function(z,K,f,M,p){function t(I){v||(v=!0,M.call(p,I))} function B(I){v||(v=!0,f.call(p,I))} var v=!1;try{K.call(z,B,t)}catch(I){t(I)}}; UDS=function(z){z.W||(z.W=!0,g.mZ(z.Kp,z))}; CdI=function(z){var K=null;z.Y&&(K=z.Y,z.Y=K.next,K.next=null);z.Y||(z.J=null);return K}; TsW=function(z,K,f,M){if(f==3&&K.Y&&!K.J)for(;z&&z.C;z=z.T)z.C=!1;if(K.S)K.S.T=null,f9d(K,f,M);else try{K.J?K.T.call(K.context):f9d(K,f,M)}catch(p){Mr8.call(null,p)}dDo(xD5,K)}; f9d=function(z,K,f){K==2?z.T.call(z.context,f):z.Y&&z.Y.call(z.context,f)}; KT8=function(z,K){z.C=!0;g.mZ(function(){z.C&&Mr8.call(null,K)})}; jk=function(z){b_.call(this,z)}; g.YZ=function(z,K){g.kZ.call(this);this.MM=z||1;this.Pa=K||g.ZT;this.NS=(0,g.p1)(this.XmH,this);this.NK=g.N5()}; g.Xu=function(z,K,f){if(typeof z==="function")f&&(z=(0,g.p1)(z,f));else if(z&&typeof z.handleEvent=="function")z=(0,g.p1)(z.handleEvent,z);else throw Error("Invalid listener argument");return Number(K)>2147483647?-1:g.ZT.setTimeout(z,K||0)}; xZ=function(z,K){var f=null;return(new g.Vh(function(M,p){f=g.Xu(function(){M(K)},z); f==-1&&p(Error("Failed to schedule timer."))})).Qf(function(M){g.ZT.clearTimeout(f); throw M;})}; g.Fu=function(z){g.J.call(this);this.G=z;this.J=0;this.T=100;this.C=!1;this.Y=new Map;this.W=new Set;this.flushInterval=3E4;this.S=new g.YZ(this.flushInterval);this.S.listen("tick",this.Ha,!1,this);g.d(this,this.S)}; pj5=function(z){z.S.enabled||z.S.start();z.J++;z.J>=z.T&&z.Ha()}; trv=function(z,K){return z.W.has(K)?void 0:z.Y.get(K)}; BFW=function(z){for(var K=0;K2?z.S.statusText:""}catch(f){K=""}z.J=K+" ["+z.getStatus()+"]";h5I(z)}}finally{Tf(z)}}}; Tf=function(z,K){if(z.S){z.W&&(clearTimeout(z.W),z.W=null);var f=z.S;z.S=null;K||z.dispatchEvent("ready");try{f.onreadystatechange=null}catch(M){}}}; KV=function(z){var K=z.getStatus();a:switch(K){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var f=!0;break a;default:f=!1}if(!f){if(K=K===0)z=g.Le(String(z.D))[1]||null,!z&&g.ZT.self&&g.ZT.self.location&&(z=g.ZT.self.location.protocol.slice(0,-1)),K=!Szp.test(z?z.toLowerCase():"");f=K}return f}; g.zh=function(z){return z.S?z.S.readyState:0}; g.$V=function(z){try{return z.S?z.S.responseText:""}catch(K){return""}}; g.fV=function(z){try{if(!z.S)return null;if("response"in z.S)return z.S.response;switch(z.Hx){case "":case "text":return z.S.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in z.S)return z.S.mozResponseArrayBuffer}return null}catch(K){return null}}; g.uZo=function(z){var K={};z=(z.S&&g.zh(z)>=2?z.S.getAllResponseHeaders()||"":"").split("\r\n");for(var f=0;f>1,K),mV(z,z.length>>1)]}; fqu=function(z){var K=g.a($qq(z,lA));z=K.next().value;K=K.next().value;return z.toString(16)+K.toString(16)}; M_u=function(z,K){var f=$qq(K);z=new Uint32Array(z.buffer);K=z[0];var M=g.a(f);f=M.next().value;M=M.next().value;for(var p=1;p>>8|B<<24,B+=t|0,B^=v+38293,t=t<<3|t>>>29,t^=B,I=I>>>8|I<<24,I+=v|0,I^=G+38293,v=v<<3|v>>>29,v^=I;t=[t,B];z[p]^=t[0];p+1=f?(globalThis.sessionStorage.removeItem(z),["e"]):["a",new Uint8Array(M.buffer,K+4)]}; V2=function(z,K,f){f=f===void 0?[]:f;this.maxItems=z;this.S=K===void 0?0:K;this.Y=f}; BoW=function(z){var K=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!K)return new V2(z);var f=K.split(",");if(f.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new V2(z);K=f.slice(1);K.length===1&&K[0]===""&&(K=[]);f=Number(f[0]);return isNaN(f)||f<0||f>K.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new V2(z)):new V2(z,f,K)}; Nov=function(z,K){this.logger=K;try{var f=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(M){f=!1}f&&(this.index=BoW(z))}; vju=function(z,K,f,M,p){var t=z.index?vc(z.logger,function(){return pFd(z.index,fqu(K),f,M,p)},"W"):"u"; z.logger.lE(t)}; IqI=function(z,K,f){var M=g.a(z.index?vc(z.logger,function(){return t_g(fqu(K),f)},"R"):["u"]),p=M.next().value; M=M.next().value;z.logger.SB(p);return M}; emS=function(z){function K(){f-=M;f-=p;f^=p>>>13;M-=p;M-=f;M^=f<<8;p-=f;p-=M;p^=M>>>13;f-=M;f-=p;f^=p>>>12;M-=p;M-=f;M^=f<<16;p-=f;p-=M;p^=M>>>5;f-=M;f-=p;f^=p>>>3;M-=p;M-=f;M^=f<<10;p-=f;p-=M;p^=M>>>15} z=G1S(z);for(var f=2654435769,M=2654435769,p=314159265,t=z.length,B=t,v=0;B>=12;B-=12,v+=12)f+=nV(z,v),M+=nV(z,v+4),p+=nV(z,v+8),K();p+=t;switch(B){case 11:p+=z[v+10]<<24;case 10:p+=z[v+9]<<16;case 9:p+=z[v+8]<<8;case 8:M+=z[v+7]<<24;case 7:M+=z[v+6]<<16;case 6:M+=z[v+5]<<8;case 5:M+=z[v+4];case 4:f+=z[v+3]<<24;case 3:f+=z[v+2]<<16;case 2:f+=z[v+1]<<8;case 1:f+=z[v+0]}K();return b_v.toString(p)}; G1S=function(z){for(var K=[],f=0;f>7,z.error.code]);M.set(f,4);return M}; jI=function(z,K,f){Wc.call(this,z);this.J=K;this.clientState=f;this.S="S";this.Y="q"}; Am=function(z){return globalThis.TextEncoder?(new TextEncoder).encode(z):g.Bi(z)}; ybu=function(z,K,f){return z instanceof Pc?Yz8(z,f,K,1):z.In(f)}; XW=function(z){g.J.call(this);var K=this;this.T=new g.ai;this.J=0;this.Y=void 0;this.state=2;this.r3=z.r3;this.o9=z.o9;this.Kx=Object.assign({},k1d,z.Kx||{});this.logger=z.r3.W_();var f;this.onError=(f=z.onError)!=null?f:function(){}; this.iU=z.iU||!1;if(hmS(z)){var M=this.r3;this.C=function(){return rgq(M).catch(function(B){B=K.reportError(new Nq(K.S?20:32,"TRG:Disposed",B));K.Y=B;var v;(v=K.S)==null||v.dispose();K.S=void 0;K.T.reject(B)})}; ZDp(M,function(){return void YV(K)}); M.D===2&&YV(this)}else this.C=z.WDa,YV(this);var p=this.logger.share();p.H9("o");var t=new Bc(p,"o");this.T.promise.then(function(){t.done();p.pE();p.dispose()},function(){return void p.dispose()}); this.addOnDisposeCallback(function(){K.S?(K.S.dispose(),K.S=void 0):K.Y?K.logger.pE():(K.Y=K.reportError(new Nq(32,"TNP:Disposed")),K.logger.pE(),K.T.reject(K.Y))}); g.d(this,this.logger)}; aqS=function(z,K){if(!(K instanceof Nq))if(K instanceof OA){var f=Error(K.toString());f.stack=K.stack;K=new Nq(11,"EBH:Error",f)}else K=new Nq(12,"BSO:Unknown",K);return z.reportError(K)}; YV=function(z){var K,f,M,p,t,B,v,I,G,b,e,w,D,y,R;return g.n(function(S){switch(S.Y){case 1:K=void 0;z.J++;f=new g.ai;z.r3 instanceof Hc&&z.r3.J.push(f.promise);if(!z.iU){S.jV(2);break}M=new g.ai;setTimeout(function(){return void M.resolve()}); return g.l(S,M.promise,2);case 2:return p=z.logger.share(),g.Sq(S,4,5),z.state=5,t={},B=[],g.l(S,qY(z.r3.snapshot({HV:t,m$:B}),z.Kx.dVe,function(){return Promise.reject(new Nq(15,"MDA:Timeout"))}),7); case 7:v=S.S;if(z.CH())throw new Nq(z.S?20:32,"MDA:Disposed");I=B[0];z.state=6;return g.l(S,qY(ybu(z.o9,p,v),z.Kx.Zl,function(){return Promise.reject(new Nq(10,"BWB:Timeout"))}),8); case 8:G=S.S;if(z.CH())throw new Nq(z.S?20:32,"BWB:Disposed");z.state=7;K=vc(p,function(){var L=RmI(z,G,f,I);L.T.promise.then(function(){return void z.C()}); return L},"i"); case 5:g.mS(S);p.dispose();g.VI(S,6);break;case 4:b=g.QI(S);(e=K)==null||e.dispose();if(!z.Y){w=aqS(z,b);f.resolve();var E;if(E=z.r3 instanceof Hc&&z.J<2)a:if(b instanceof Nq)E=b.code!==32&&b.code!==20&&b.code!==10;else{if(b instanceof OA)switch(b.code){case 2:case 13:case 14:case 4:break;default:E=!1;break a}E=!0}if(E)return D=(1+Math.random()*.25)*(z.S?6E4:1E3),y=setTimeout(function(){return void z.C()},D),z.addOnDisposeCallback(function(){return void clearTimeout(y)}),S.return(); z.Y=w}p.Bc(z.S?13:14);z.T.reject(z.Y);return S.return();case 6:z.state=8,z.J=0,(R=z.S)==null||R.dispose(),z.S=K,z.T.resolve(),g.Rv(S)}})}; RmI=function(z,K,f,M){var p=KF(K,2)*1E3;if(p<=0)throw new Nq(31,"TTM:Invalid");if($D(K,4))return new cc(z.logger,$D(K,4),p);if(!KF(K,3))return new dS(z.logger,yd(iF(K,1)),p);if(!M)throw new Nq(4,"PMD:Undefined");M=M(yd(iF(K,1)));if(!(M instanceof Function))throw new Nq(16,"APF:Failed");z.W=Math.floor((Date.now()+p)/1E3);z=new iA(z.logger,M,KF(K,3),p);z.addOnDisposeCallback(function(){return void f.resolve()}); return z}; S0u=function(z,K){K=K instanceof Nq?K:new Nq(5,"TVD:error",K);return z.reportError(K)}; H_q=function(z,K,f){try{if(z.CH())throw new Nq(21,"BNT:disposed");if(!z.S&&z.Y)throw z.Y;var M,p;return(p=(M=uU8(z,K,f))!=null?M:L45(z,K,f))!=null?p:Ej5(z,K,f)}catch(t){if(!K.gm)throw S0u(z,t);return PZg(z,f,t)}}; uU8=function(z,K,f){var M;return(M=z.S)==null?void 0:gS(M,function(){return xV(z,K)},f,function(p){var t; if(z.S instanceof iA&&((t=K.N0)==null?0:t.zd))try{var B;(B=z.cache)==null||vju(B,xV(z,K),p,K.N0.WS,z.W-120)}catch(v){z.reportError(new Nq(24,"ELX:write",v))}})}; L45=function(z,K,f){var M;if((M=K.N0)!=null&&M.uR)try{var p,t=(p=z.cache)==null?void 0:IqI(p,xV(z,K),K.N0.WS);return t?f?vc(z.logger,function(){return g.NW(t,2)},"a"):t:void 0}catch(B){z.reportError(new Nq(23,"RXO:read",B))}}; Ej5=function(z,K,f){var M={stack:[],error:void 0,hasError:!1};try{if(!K.uH)throw new Nq(29,"SDF:notready");return gS(koa(M,new jI(z.logger,0,z.state)),function(){return xV(z,K)},f)}catch(p){M.error=p,M.hasError=!0}finally{hpS(M)}}; PZg=function(z,K,f){var M={stack:[],error:void 0,hasError:!1};try{var p=S0u(z,f);return gS(koa(M,new sE(z.logger,p)),function(){return[]},K)}catch(t){M.error=t,M.hasError=!0}finally{hpS(M)}}; xV=function(z,K){return K.dw?K.dw:K.HV?vc(z.logger,function(){return K.dw=Am(K.HV)},"c"):[]}; FW=function(){var z=0,K;return function(f){K||(K=new Ii);var M=new jI(K,z,1),p=gS(M,function(){return Am(f)},!0); M.dispose();z++;return p}}; OE=function(z){this.Yi=g.hG(z)}; QEu=function(z,K,f){this.xP=z;this.iH=K;this.metadata=f}; rS=function(z,K){K=K===void 0?{}:K;this.P3q=z;this.metadata=K;this.status=null}; Zf=function(z,K,f,M,p){this.name=z;this.methodType="unary";this.requestType=K;this.responseType=f;this.S=M;this.Y=p}; oi=function(z){this.Yi=g.hG(z)}; CV=function(z){this.Yi=g.hG(z)}; Th=function(z){this.Yi=g.hG(z)}; UE=function(z,K){this.G=z.Ghc;this.D=K;this.S=z.xhr;this.T=[];this.C=[];this.W=[];this.J=[];this.Y=[];this.G&&q0o(this)}; njT=function(z,K){var f=new mqS;g.Ik(z.S,"complete",function(){if(KV(z.S)){var M=g.$V(z.S);if(K&&z.S.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");M=atob(M)}try{var p=z.D(M)}catch(v){z$(z,KG(new OA(13,"Error when deserializing response data; error: "+v+(", response: "+M)),f));return}M=NFq(z.S.getStatus());$n(z,fG(z));M==0?lqW(z,p):z$(z,KG(new OA(M,"Xhr succeeded but the status code is not 200"),f))}else{M=g.$V(z.S);p=fG(z);if(M){var t=V_S(z, M);M=t.code;var B=t.details;t=t.metadata}else M=2,B="Rpc failed due to xhr error. uri: "+String(z.S.D)+", error code: "+z.S.Y+", error: "+z.S.getLastError(),t=p;$n(z,p);z$(z,KG(new OA(M,B,t),f))}})}; q0o=function(z){z.G.y_("data",function(K){if("1"in K){var f=K["1"];try{var M=z.D(f)}catch(p){z$(z,new OA(13,"Error when deserializing response data; error: "+p+(", response: "+f)))}M&&lqW(z,M)}if("2"in K)for(K=V_S(z,K["2"]),f=0;f-1&&z.splice(K,1)}; lqW=function(z,K){for(var f=0;f>4&15).toString(16)+(z&15).toString(16)}; DV=function(z,K){this.Y=this.S=null;this.T=z||null;this.J=!!K}; al=function(z){z.S||(z.S=new Map,z.Y=0,z.T&&Q8(z.T,function(K,f){z.add(yw(K),f)}))}; cb5=function(z,K){al(z);K=Rl(z,K);return z.S.has(K)}; g.sE5=function(z,K,f){z.remove(K);f.length>0&&(z.T=null,z.S.set(Rl(z,K),g.L1(f)),z.Y=z.Y+f.length)}; Rl=function(z,K){K=String(K);z.J&&(K=K.toLowerCase());return K}; gjT=function(z,K){K&&!z.J&&(al(z),z.T=null,z.S.forEach(function(f,M){var p=M.toLowerCase();M!=p&&(this.remove(M),g.sE5(this,p,f))},z)); z.J=K}; g.AbS=function(z){var K="";g.jS(z,function(f,M){K+=M;K+=":";K+=f;K+="\r\n"}); return K}; g.SP=function(z,K,f){if(g.U9(f))return z;f=g.AbS(f);if(typeof z==="string")return ne(z,g.Dy(K),f);g.kn(z,K,f);return z}; g.u2=function(z){g.J.call(this);this.Y=z;this.S={}}; jEW=function(z,K,f,M,p,t){if(Array.isArray(f))for(var B=0;B=0)return!0;try{var K=new g.vx(z)}catch(f){return g.yQ(pO8,function(M){return z.search(M)>0})!=null}return K.W.match(tkT)?!0:g.yQ(pO8,function(f){return z.match(f)!=null})!=null}; g.Jy=function(z,K){return z.replace(NBg,function(f,M){try{var p=g.zl(K,M);if(p==null||p.toString()==null)return f;p=p.toString();if(p==""||!g.h6(g.hR(p)))return encodeURIComponent(p).replace(/%2C/g,",")}catch(t){}return f})}; cx=function(z,K){return Object.is(z,K)}; Ay=function(z){var K=sD;sD=z;return K}; vZp=function(z){if(z.C7!==void 0){var K=jP;jP=!0;try{for(var f=g.a(z.C7),M=f.next();!M.done;M=f.next()){var p=M.value;p.hn||(z=void 0,p.hn=!0,vZp(p),(z=p.hK)==null||z.call(p,p))}}finally{jP=K}}}; IPS=function(){var z;return((z=sD)==null?void 0:z.Ho)!==!1}; Gfq=function(z){z&&(z.PL=0);return Ay(z)}; brp=function(z,K){Ay(K);if(z&&z.zm!==void 0&&z.B9!==void 0&&z.Uy!==void 0){if(Yn(z))for(K=z.PL;Kz.PL;)z.zm.pop(),z.Uy.pop(),z.B9.pop()}}; wO5=function(z,K,f){eyI(z);if(z.C7.length===0&&z.zm!==void 0)for(var M=0;M0}; DXS=function(z){z.zm!=null||(z.zm=[]);z.B9!=null||(z.B9=[]);z.Uy!=null||(z.Uy=[])}; eyI=function(z){z.C7!=null||(z.C7=[]);z.VU!=null||(z.VU=[])}; kfu=function(z){function K(){if(jP)throw Error("");if(sD!==null){var M=sD.PL++;DXS(sD);M0?" "+K:K))}}; g.wy=function(z,K){if(z.classList)Array.prototype.forEach.call(K,function(p){g.ey(z,p)}); else{var f={};Array.prototype.forEach.call(IG(z),function(p){f[p]=!0}); Array.prototype.forEach.call(K,function(p){f[p]=!0}); K="";for(var M in f)K+=K.length>0?" "+M:M;g.GJ(z,K)}}; g.Dz=function(z,K){z.classList?z.classList.remove(K):g.bx(z,K)&&g.GJ(z,Array.prototype.filter.call(IG(z),function(f){return f!=K}).join(" "))}; g.yf=function(z,K){z.classList?Array.prototype.forEach.call(K,function(f){g.Dz(z,f)}):g.GJ(z,Array.prototype.filter.call(IG(z),function(f){return!g.h2(K,f)}).join(" "))}; g.k4=function(z,K,f){f?g.ey(z,K):g.Dz(z,K)}; Qko=function(z,K){var f=!g.bx(z,K);g.k4(z,K,f)}; g.hU=function(){g.kZ.call(this);this.S=0;this.endTime=this.startTime=null}; qAW=function(z,K){Array.isArray(K)||(K=[K]);K=K.map(function(f){return typeof f==="string"?f:f.property+" "+f.duration+"s "+f.timing+" "+f.delay+"s"}); g.H6(z,"transition",K.join(","))}; aG=function(z,K,f,M,p){g.hU.call(this);this.Y=z;this.C=K;this.W=f;this.J=M;this.G=Array.isArray(p)?p:[p]}; mXo=function(z,K,f,M){return new aG(z,K,{opacity:f},{opacity:M},{property:"opacity",duration:K,timing:"ease-in",delay:0})}; Vku=function(z){z=Sm(z);if(z=="")return null;var K=String(z.slice(0,4)).toLowerCase();if(("url("1||z&&z.split(")"),null;if(z.indexOf("(")>0){if(/"|'/.test(z))return null;K=/([\-\w]+)\(/g;for(var f;f=K.exec(z);)if(!(f[1].toLowerCase()in lPv))return null}return z}; RG=function(z,K){z=g.ZT[z];return z&&z.prototype?(K=Object.getOwnPropertyDescriptor(z.prototype,K))&&K.get||null:null}; nZg=function(z){var K=g.ZT.CSSStyleDeclaration;return K&&K.prototype&&K.prototype[z]||null}; WZp=function(z,K,f,M){if(z)return z.apply(K,M);if(g.Sy&&document.documentMode<10){if(!K[f].call)throw Error("IE Clobbering detected");}else if(typeof K[f]!="function")throw Error("Clobbering detected");return K[f].apply(K,M)}; c8S=function(z){if(!z)return"";var K=document.createElement("div").style;J8I(z).forEach(function(f){var M=g.oz&&f in gZa?f:f.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");yA(M,"--")||yA(M,"var")||(f=WZp(irq,z,z.getPropertyValue?"getPropertyValue":"getAttribute",[f])||"",f=Vku(f),f!=null&&WZp(dXp,K,K.setProperty?"setProperty":"setAttribute",[M,f]))}); return K.cssText||""}; J8I=function(z){g.K1(z)?z=g.L1(z):(z=g.Z4(z),g.R8(z,"cssText"));return z}; g.Ll=function(z){var K,f=K=0,M=!1;z=z.split(sku);for(var p=0;p.4?-1:1;return(K==0?null:K)==-1?"rtl":"ltr"}; g.Qf=function(z){if(z instanceof E8||z instanceof Ps||z instanceof Hs)return z;if(typeof z.next=="function")return new E8(function(){return z}); if(typeof z[Symbol.iterator]=="function")return new E8(function(){return z[Symbol.iterator]()}); if(typeof z.Yq=="function")return new E8(function(){return z.Yq()}); throw Error("Not an iterator or iterable.");}; E8=function(z){this.Y=z}; Ps=function(z){this.Y=z}; Hs=function(z){E8.call(this,function(){return z}); this.T=z}; qi=function(z,K,f,M,p,t,B,v){this.S=z;this.G=K;this.T=f;this.C=M;this.J=p;this.W=t;this.Y=B;this.D=v}; mQ=function(z,K){if(K==0)return z.S;if(K==1)return z.Y;var f=le(z.S,z.T,K),M=le(z.T,z.J,K);z=le(z.J,z.Y,K);f=le(f,M,K);M=le(M,z,K);return le(f,M,K)}; XOo=function(z,K){var f=(K-z.S)/(z.Y-z.S);if(f<=0)return 0;if(f>=1)return 1;for(var M=0,p=1,t=0,B=0;B<8;B++){t=mQ(z,f);var v=(mQ(z,f+1E-6)-t)/1E-6;if(Math.abs(t-K)<1E-6)return f;if(Math.abs(v)<1E-6)break;else t1E-6&&B<8;B++)t=0}; g.Ws=function(z){g.J.call(this);this.W=1;this.T=[];this.J=0;this.S=[];this.Y={};this.G=!!z}; FZT=function(z,K,f){g.mZ(function(){z.apply(K,f)})}; g.JU=function(z){this.S=z}; gy=function(z){this.S=z}; Or8=function(z){this.data=z}; r8W=function(z){return z===void 0||z instanceof Or8?z:new Or8(z)}; ix=function(z){this.S=z}; g.ZrS=function(z){var K=z.creation;z=z.expiration;return!!z&&zg.N5()}; g.dy=function(z){this.S=z}; oZg=function(){}; cs=function(){}; s8=function(z){this.S=z;this.Y=null}; AU=function(z){if(z.S==null)throw Error("Storage mechanism: Storage unavailable");z.isAvailable()||t4(Error("Storage mechanism: Storage unavailable"))}; jy=function(){var z=null;try{z=g.ZT.localStorage||null}catch(K){}s8.call(this,z)}; CL8=function(){var z=null;try{z=g.ZT.sessionStorage||null}catch(K){}s8.call(this,z)}; Y4=function(z,K){this.Y=z;this.S=K+"::"}; g.Xi=function(z){var K=new jy;return K.isAvailable()?z?new Y4(K,z):K:null}; x4=function(z,K){this.S=z;this.Y=K}; Fi=function(z){this.S=[];if(z)a:{if(z instanceof Fi){var K=z.Kd();z=z.xq();if(this.S.length<=0){for(var f=this.S,M=0;M>>6:(t<65536?v[f++]=224|t>>>12:(v[f++]=240|t>>>18,v[f++]=128|t>>>12&63),v[f++]=128|t>>> 6&63),v[f++]=128|t&63);return v}; oG=function(z){for(var K=z.length;--K>=0;)z[K]=0}; Cl=function(z,K,f,M,p){this.q9=z;this.Xp=K;this.Fp=f;this.H5=M;this.n1x=p;this.HZ=z&&z.length}; TJ=function(z,K){this.MW=z;this.By=0;this.ZL=K}; U8=function(z,K){z.h_[z.pending++]=K&255;z.h_[z.pending++]=K>>>8&255}; zE=function(z,K,f){z.UT>16-f?(z.pW|=K<>16-z.UT,z.UT+=f-16):(z.pW|=K<>>=1,f<<=1;while(--K>0);return f>>>1}; $YI=function(z,K,f){var M=Array(16),p=0,t;for(t=1;t<=15;t++)M[t]=p=p+f[t-1]<<1;for(f=0;f<=K;f++)p=z[f*2+1],p!==0&&(z[f*2]=KVI(M[p]++,p))}; ffq=function(z){var K;for(K=0;K<286;K++)z.zU[K*2]=0;for(K=0;K<30;K++)z.yS[K*2]=0;for(K=0;K<19;K++)z.fb[K*2]=0;z.zU[512]=1;z.lO=z.Lf=0;z.vE=z.matches=0}; MI8=function(z){z.UT>8?U8(z,z.pW):z.UT>0&&(z.h_[z.pending++]=z.pW);z.pW=0;z.UT=0}; pca=function(z,K,f){MI8(z);U8(z,f);U8(z,~f);Zz.Vk(z.h_,z.window,K,f,z.pending);z.pending+=f}; tIW=function(z,K,f,M){var p=K*2,t=f*2;return z[p]>>7)];Kt(z,B,f);v=Bm[B];v!==0&&(p-=Nz[B],zE(z,p,v))}}while(M>1;B>=1;B--)$L(z,f,B);I=t;do B=z.GH[1],z.GH[1]=z.GH[z.Ds--],$L(z,f,1),M=z.GH[1],z.GH[--z.OA]=B,z.GH[--z.OA]=M,f[I*2]=f[B*2]+f[M*2],z.depth[I]=(z.depth[B]>=z.depth[M]?z.depth[B]:z.depth[M])+1,f[B*2+1]=f[M*2+1]=I,z.GH[1]=I++,$L(z,f,1);while(z.Ds>= 2);z.GH[--z.OA]=z.GH[1];B=K.MW;I=K.By;M=K.ZL.q9;p=K.ZL.HZ;t=K.ZL.Xp;var G=K.ZL.Fp,b=K.ZL.n1x,e,w=0;for(e=0;e<=15;e++)z.jq[e]=0;B[z.GH[z.OA]*2+1]=0;for(K=z.OA+1;K<573;K++){var D=z.GH[K];e=B[B[D*2+1]*2+1]+1;e>b&&(e=b,w++);B[D*2+1]=e;if(!(D>I)){z.jq[e]++;var y=0;D>=G&&(y=t[D-G]);var R=B[D*2];z.lO+=R*(e+y);p&&(z.Lf+=R*(M[D*2+1]+y))}}if(w!==0){do{for(e=b-1;z.jq[e]===0;)e--;z.jq[e]--;z.jq[e+1]+=2;z.jq[b]--;w-=2}while(w>0);for(e=b;e!==0;e--)for(D=z.jq[e];D!==0;)M=z.GH[--K],M>I||(B[M*2+1]!==e&&(z.lO+=(e- B[M*2+1])*B[M*2],B[M*2+1]=e),D--)}$YI(f,v,z.jq)}; NSp=function(z,K,f){var M,p=-1,t=K[1],B=0,v=7,I=4;t===0&&(v=138,I=3);K[(f+1)*2+1]=65535;for(M=0;M<=f;M++){var G=t;t=K[(M+1)*2+1];++B>>=1)if(K&1&&z.zU[f*2]!==0)return 0;if(z.zU[18]!==0||z.zU[20]!==0||z.zU[26]!==0)return 1;for(f=32;f<256;f++)if(z.zU[f*2]!==0)return 1;return 0}; IO=function(z,K,f){z.h_[z.oQ+z.vE*2]=K>>>8&255;z.h_[z.oQ+z.vE*2+1]=K&255;z.h_[z.pg+z.vE]=f&255;z.vE++;K===0?z.zU[f*2]++:(z.matches++,K--,z.zU[(ft[f]+256+1)*2]++,z.yS[(K<256?tS[K]:tS[256+(K>>>7)])*2]++);return z.vE===z.P2-1}; bl=function(z,K){z.msg=GE[K];return K}; e4=function(z){for(var K=z.length;--K>=0;)z[K]=0}; we=function(z){var K=z.state,f=K.pending;f>z.w3&&(f=z.w3);f!==0&&(Zz.Vk(z.output,K.h_,K.eC,f,z.Do),z.Do+=f,K.eC+=f,z.PN+=f,z.w3-=f,K.pending-=f,K.pending===0&&(K.eC=0))}; kL=function(z,K){var f=z.qC>=0?z.qC:-1,M=z.xi-z.qC,p=0;if(z.level>0){z.OW.YZ===2&&(z.OW.YZ=Ifq(z));vm(z,z.wi);vm(z,z.h5);NSp(z,z.zU,z.wi.By);NSp(z,z.yS,z.h5.By);vm(z,z.Rw);for(p=18;p>=3&&z.fb[Gh8[p]*2+1]===0;p--);z.lO+=3*(p+1)+5+5+4;var t=z.lO+3+7>>>3;var B=z.Lf+3+7>>>3;B<=t&&(t=B)}else t=B=M+5;if(M+4<=t&&f!==-1)zE(z,K?1:0,3),pca(z,f,M);else if(z.strategy===4||B===t)zE(z,2+(K?1:0),3),BST(z,DB,yY);else{zE(z,4+(K?1:0),3);f=z.wi.By+1;M=z.h5.By+1;p+=1;zE(z,f-257,5);zE(z,M-1,5);zE(z,p-4,4);for(t=0;t>>8&255;z.h_[z.pending++]=K&255}; bV8=function(z,K){var f=z.Wz,M=z.xi,p=z.XG,t=z.Md,B=z.xi>z.TN-262?z.xi-(z.TN-262):0,v=z.window,I=z.w6,G=z.CN,b=z.xi+258,e=v[M+p-1],w=v[M+p];z.XG>=z.kt&&(f>>=2);t>z.tH&&(t=z.tH);do{var D=K;if(v[D+p]===w&&v[D+p-1]===e&&v[D]===v[M]&&v[++D]===v[M+1]){M+=2;for(D++;v[++M]===v[++D]&&v[++M]===v[++D]&&v[++M]===v[++D]&&v[++M]===v[++D]&&v[++M]===v[++D]&&v[++M]===v[++D]&&v[++M]===v[++D]&&v[++M]===v[++D]&&Mp){z.Ij=K;p=D;if(D>=t)break;e=v[M+p-1];w=v[M+p]}}}while((K=G[K&I])>B&&--f!== 0);return p<=z.tH?p:z.tH}; ul=function(z){var K=z.TN,f;do{var M=z.Bb-z.tH-z.xi;if(z.xi>=K+(K-262)){Zz.Vk(z.window,z.window,K,K,0);z.Ij-=K;z.xi-=K;z.qC-=K;var p=f=z.Cs;do{var t=z.head[--p];z.head[p]=t>=K?t-K:0}while(--f);p=f=K;do t=z.CN[--p],z.CN[p]=t>=K?t-K:0;while(--f);M+=K}if(z.OW.nW===0)break;p=z.OW;f=z.window;t=z.xi+z.tH;var B=p.nW;B>M&&(B=M);B===0?f=0:(p.nW-=B,Zz.Vk(f,p.input,p.Jw,B,t),p.state.wrap===1?p.jU=RO(p.jU,f,B,t):p.state.wrap===2&&(p.jU=S4(p.jU,f,B,t)),p.Jw+=B,p.JP+=B,f=B);z.tH+=f;if(z.tH+z.iI>=3)for(M=z.xi-z.iI, z.k8=z.window[M],z.k8=(z.k8<=3&&(z.k8=(z.k8<=3)if(f=IO(z,z.xi-z.Ij,z.J$-3),z.tH-=z.J$,z.J$<=z.Bp&&z.tH>=3){z.J$--;do z.xi++,z.k8=(z.k8<=3&&(z.k8=(z.k8<4096)&&(z.J$=2));if(z.XG>=3&&z.J$<=z.XG){M=z.xi+z.tH-3;f=IO(z,z.xi-1-z.o6,z.XG-3);z.tH-=z.XG-1;z.XG-=2;do++z.xi<=M&&(z.k8=(z.k8<=3&&z.xi>0&&(M=z.xi-1,f=t[M],f===t[++M]&&f===t[++M]&&f===t[++M])){for(p=z.xi+258;f===t[++M]&&f===t[++M]&&f===t[++M]&&f===t[++M]&&f===t[++M]&&f===t[++M]&&f===t[++M]&&f===t[++M]&&Mz.tH&&(z.J$=z.tH)}z.J$>=3?(f=IO(z,1,z.J$-3),z.tH-=z.J$,z.xi+=z.J$,z.J$=0):(f=IO(z,0,z.window[z.xi]),z.tH--,z.xi++);if(f&&(kL(z,!1),z.OW.w3===0))return 1}z.iI=0;return K=== 4?(kL(z,!0),z.OW.w3===0?3:4):z.vE&&(kL(z,!1),z.OW.w3===0)?1:2}; wcv=function(z,K){for(var f;;){if(z.tH===0&&(ul(z),z.tH===0)){if(K===0)return 1;break}z.J$=0;f=IO(z,0,z.window[z.xi]);z.tH--;z.xi++;if(f&&(kL(z,!1),z.OW.w3===0))return 1}z.iI=0;return K===4?(kL(z,!0),z.OW.w3===0?3:4):z.vE&&(kL(z,!1),z.OW.w3===0)?1:2}; Pm=function(z,K,f,M,p){this.iL=z;this.zdV=K;this.BEh=f;this.E1E=M;this.func=p}; DYa=function(){this.OW=null;this.status=0;this.h_=null;this.wrap=this.pending=this.eC=this.G7=0;this.J9=null;this.gK=0;this.method=8;this.jy=-1;this.w6=this.ao=this.TN=0;this.window=null;this.Bb=0;this.head=this.CN=null;this.Md=this.kt=this.strategy=this.level=this.Bp=this.Wz=this.XG=this.tH=this.Ij=this.xi=this.tO=this.o6=this.J$=this.qC=this.X6=this.F6=this.FX=this.Cs=this.k8=0;this.zU=new Zz.oP(1146);this.yS=new Zz.oP(122);this.fb=new Zz.oP(78);e4(this.zU);e4(this.yS);e4(this.fb);this.Rw=this.h5= this.wi=null;this.jq=new Zz.oP(16);this.GH=new Zz.oP(573);e4(this.GH);this.OA=this.Ds=0;this.depth=new Zz.oP(573);e4(this.depth);this.UT=this.pW=this.iI=this.matches=this.Lf=this.lO=this.oQ=this.vE=this.P2=this.pg=0}; ym8=function(z,K){if(!z||!z.state||K>5||K<0)return z?bl(z,-2):-2;var f=z.state;if(!z.output||!z.input&&z.nW!==0||f.status===666&&K!==4)return bl(z,z.w3===0?-5:-2);f.OW=z;var M=f.jy;f.jy=K;if(f.status===42)if(f.wrap===2)z.jU=0,hS(f,31),hS(f,139),hS(f,8),f.J9?(hS(f,(f.J9.text?1:0)+(f.J9.Fx?2:0)+(f.J9.extra?4:0)+(f.J9.name?8:0)+(f.J9.comment?16:0)),hS(f,f.J9.time&255),hS(f,f.J9.time>>8&255),hS(f,f.J9.time>>16&255),hS(f,f.J9.time>>24&255),hS(f,f.level===9?2:f.strategy>=2||f.level<2?4:0),hS(f,f.J9.os& 255),f.J9.extra&&f.J9.extra.length&&(hS(f,f.J9.extra.length&255),hS(f,f.J9.extra.length>>8&255)),f.J9.Fx&&(z.jU=S4(z.jU,f.h_,f.pending,0)),f.gK=0,f.status=69):(hS(f,0),hS(f,0),hS(f,0),hS(f,0),hS(f,0),hS(f,f.level===9?2:f.strategy>=2||f.level<2?4:0),hS(f,3),f.status=113);else{var p=8+(f.ao-8<<4)<<8;p|=(f.strategy>=2||f.level<2?0:f.level<6?1:f.level===6?2:3)<<6;f.xi!==0&&(p|=32);f.status=113;aO(f,p+(31-p%31));f.xi!==0&&(aO(f,z.jU>>>16),aO(f,z.jU&65535));z.jU=1}if(f.status===69)if(f.J9.extra){for(p= f.pending;f.gK<(f.J9.extra.length&65535)&&(f.pending!==f.G7||(f.J9.Fx&&f.pending>p&&(z.jU=S4(z.jU,f.h_,f.pending-p,p)),we(z),p=f.pending,f.pending!==f.G7));)hS(f,f.J9.extra[f.gK]&255),f.gK++;f.J9.Fx&&f.pending>p&&(z.jU=S4(z.jU,f.h_,f.pending-p,p));f.gK===f.J9.extra.length&&(f.gK=0,f.status=73)}else f.status=73;if(f.status===73)if(f.J9.name){p=f.pending;do{if(f.pending===f.G7&&(f.J9.Fx&&f.pending>p&&(z.jU=S4(z.jU,f.h_,f.pending-p,p)),we(z),p=f.pending,f.pending===f.G7)){var t=1;break}t=f.gKp&&(z.jU=S4(z.jU,f.h_,f.pending-p,p));t===0&&(f.gK=0,f.status=91)}else f.status=91;if(f.status===91)if(f.J9.comment){p=f.pending;do{if(f.pending===f.G7&&(f.J9.Fx&&f.pending>p&&(z.jU=S4(z.jU,f.h_,f.pending-p,p)),we(z),p=f.pending,f.pending===f.G7)){t=1;break}t=f.gKp&&(z.jU=S4(z.jU,f.h_,f.pending-p,p));t===0&&(f.status=103)}else f.status= 103;f.status===103&&(f.J9.Fx?(f.pending+2>f.G7&&we(z),f.pending+2<=f.G7&&(hS(f,z.jU&255),hS(f,z.jU>>8&255),z.jU=0,f.status=113)):f.status=113);if(f.pending!==0){if(we(z),z.w3===0)return f.jy=-1,0}else if(z.nW===0&&(K<<1)-(K>4?9:0)<=(M<<1)-(M>4?9:0)&&K!==4)return bl(z,-5);if(f.status===666&&z.nW!==0)return bl(z,-5);if(z.nW!==0||f.tH!==0||K!==0&&f.status!==666){M=f.strategy===2?wcv(f,K):f.strategy===3?eE8(f,K):Hm[f.level].func(f,K);if(M===3||M===4)f.status=666;if(M===1||M===3)return z.w3===0&&(f.jy= -1),0;if(M===2&&(K===1?(zE(f,2,3),Kt(f,256,DB),f.UT===16?(U8(f,f.pW),f.pW=0,f.UT=0):f.UT>=8&&(f.h_[f.pending++]=f.pW&255,f.pW>>=8,f.UT-=8)):K!==5&&(zE(f,0,3),pca(f,0,0),K===3&&(e4(f.head),f.tH===0&&(f.xi=0,f.qC=0,f.iI=0))),we(z),z.w3===0))return f.jy=-1,0}if(K!==4)return 0;if(f.wrap<=0)return 1;f.wrap===2?(hS(f,z.jU&255),hS(f,z.jU>>8&255),hS(f,z.jU>>16&255),hS(f,z.jU>>24&255),hS(f,z.JP&255),hS(f,z.JP>>8&255),hS(f,z.JP>>16&255),hS(f,z.JP>>24&255)):(aO(f,z.jU>>>16),aO(f,z.jU&65535));we(z);f.wrap>0&& (f.wrap=-f.wrap);return f.pending!==0?0:1}; QY=function(z){if(!(this instanceof QY))return new QY(z);z=this.options=Zz.assign({level:-1,method:8,chunkSize:16384,RV:15,ede:8,strategy:0,to:""},z||{});z.raw&&z.RV>0?z.RV=-z.RV:z.FF&&z.RV>0&&z.RV<16&&(z.RV+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.OW=new khS;this.OW.w3=0;var K=this.OW;var f=z.level,M=z.method,p=z.RV,t=z.ede,B=z.strategy;if(K){var v=1;f===-1&&(f=6);p<0?(v=0,p=-p):p>15&&(v=2,p-=16);if(t<1||t>9||M!==8||p<8||p>15||f<0||f>9||B<0||B>4)K=bl(K,-2);else{p===8&&(p=9); var I=new DYa;K.state=I;I.OW=K;I.wrap=v;I.J9=null;I.ao=p;I.TN=1<>=7;t<30;t++)for(Nz[t]=B<<7,p=0;p<1<=G.TN&&(K===0&&(e4(G.head),G.xi=0,G.qC=0,G.iI=0),f=new Zz.W0(G.TN),Zz.Vk(f,t,B-G.TN,G.TN,0),t=f,B=G.TN);f=z.nW;M=z.Jw;p=z.input;z.nW=B;z.Jw=0;z.input=t;for(ul(G);G.tH>=3;){t=G.xi;B=G.tH-2;do G.k8=(G.k8<1?K[z[0]]=z[1]:z.length===1&&Object.assign(K,z[0])}; g.zM=function(z,K){return z in oO?oO[z]:K}; KJ=function(z){var K=oO.EXPERIMENT_FLAGS;return K?K[z]:void 0}; YEI=function(z){$B.forEach(function(K){return K(z)})}; g.Mu=function(z){return z&&window.yterr?function(){try{return z.apply(this,arguments)}catch(K){g.fJ(K)}}:z}; g.fJ=function(z){var K=g.CW("yt.logging.errors.log");K?K(z,"ERROR",void 0,void 0,void 0,void 0,void 0):(K=g.zM("ERRORS",[]),K.push([z,"ERROR",void 0,void 0,void 0,void 0,void 0]),Ct("ERRORS",K));YEI(z)}; pJ=function(z,K,f,M,p){var t=g.CW("yt.logging.errors.log");t?t(z,"WARNING",K,f,M,void 0,p):(t=g.zM("ERRORS",[]),t.push([z,"WARNING",K,f,M,void 0,p]),Ct("ERRORS",t))}; ta=function(z,K){K=z.split(K);for(var f={},M=0,p=K.length;M1?z[1]:z[0])):{}}; GM=function(z,K){return OV8(z,K||{},!0)}; bm=function(z,K){return OV8(z,K||{},!1)}; OV8=function(z,K,f){var M=z.split("#",2);z=M[0];M=M.length>1?"#"+M[1]:"";var p=z.split("?",2);z=p[0];p=Nu(p[1]||"");for(var t in K)if(f||!g.o8(p,t))p[t]=K[t];return g.V8(z,p)+M}; eg=function(z){if(!K)var K=window.location.href;var f=g.Le(z)[1]||null,M=g.EW(z);f&&M?(z=g.Le(z),K=g.Le(K),z=z[3]==K[3]&&z[1]==K[1]&&z[4]==K[4]):z=M?g.EW(K)===M&&(Number(g.Le(K)[4]||null)||null)===(Number(g.Le(z)[4]||null)||null):!0;return z}; wV=function(z){z||(z=document.location.href);z=g.Le(z)[1]||null;return z!==null&&z==="https"}; DQ=function(z){z=rmp(z);return z===null?!1:z[0]==="com"&&z[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; ZVd=function(z){z=rmp(z);return z===null?!1:z[1]==="google"?!0:z[2]==="google"?z[0]==="au"&&z[1]==="com"?!0:z[0]==="uk"&&z[1]==="co"?!0:!1:!1}; rmp=function(z){z=g.EW(z);return z!==null?z.split(".").reverse():null}; Xcp=function(z){return z&&z.match(oVS)?z:yw(z)}; ha=function(z){var K=y4;z=z===void 0?AmW():z;var f=Object,M=f.assign,p=kB(K);var t=K.S;try{var B=t.screenX;var v=t.screenY}catch(E){}try{var I=t.outerWidth;var G=t.outerHeight}catch(E){}try{var b=t.innerWidth;var e=t.innerHeight}catch(E){}try{var w=t.screenLeft;var D=t.screenTop}catch(E){}try{b=t.innerWidth,e=t.innerHeight}catch(E){}try{var y=t.screen.availWidth;var R=t.screen.availTop}catch(E){}t=[w,D,B,v,y,R,I,G,b,e];B=MGS(!1,K.S.top);v={};var S=S===void 0?g.ZT:S;I=new ZV;"SVGElement"in S&&"createElementNS"in S.document&&I.set(0);G=fK8();G["allow-top-navigation-by-user-activation"]&&I.set(1);G["allow-popups-to-escape-sandbox"]&&I.set(2);S.crypto&&S.crypto.subtle&&I.set(3);"TextDecoder"in S&&"TextEncoder"in S&&I.set(4);S=LZo(I);K=(v.bc=S,v.bih=B.height,v.biw=B.width,v.brdim=t.join(),v.vis=Y0(K.Y),v.wgl=!!eT.WebGLRenderingContext,v);f=M.call(f,p,K);f.ca_type="image";z&&(f.bid=z);return f}; kB=function(z){var K={};K.dt=CAo;K.flash="0";a:{try{var f=z.S.top.location.href}catch(b){z=2;break a}z=f?f===z.Y.location.href?0:1:2}K=(K.frm=z,K);try{K.u_tz=-(new Date).getTimezoneOffset();var M=M===void 0?eT:M;try{var p=M.history.length}catch(b){p=0}K.u_his=p;var t;K.u_h=(t=eT.screen)==null?void 0:t.height;var B;K.u_w=(B=eT.screen)==null?void 0:B.width;var v;K.u_ah=(v=eT.screen)==null?void 0:v.availHeight;var I;K.u_aw=(I=eT.screen)==null?void 0:I.availWidth;var G;K.u_cd=(G=eT.screen)==null?void 0: G.colorDepth}catch(b){}return K}; UYg=function(){if(!TSu)return null;var z=TSu();return"open"in z?z:null}; g.Rw=function(z){switch(aw(z)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; aw=function(z){return z&&"status"in z?z.status:-1}; g.Sg=function(z,K){typeof z==="function"&&(z=g.Mu(z));return window.setTimeout(z,K)}; g.um=function(z,K){typeof z==="function"&&(z=g.Mu(z));return window.setInterval(z,K)}; g.LJ=function(z){window.clearTimeout(z)}; g.EJ=function(z){window.clearInterval(z)}; g.Hg=function(z){z=Pg(z);return typeof z==="string"&&z==="false"?!1:!!z}; g.Q4=function(z,K){z=Pg(z);return z===void 0&&K!==void 0?K:Number(z||0)}; qu=function(){return g.zM("EXPERIMENTS_TOKEN","")}; Pg=function(z){return g.zM("EXPERIMENT_FLAGS",{})[z]}; mw=function(){for(var z=[],K=g.zM("EXPERIMENTS_FORCED_FLAGS",{}),f=g.a(Object.keys(K)),M=f.next();!M.done;M=f.next())M=M.value,z.push({key:M,value:String(K[M])});f=g.zM("EXPERIMENT_FLAGS",{});M=g.a(Object.keys(f));for(var p=M.next();!p.done;p=M.next())p=p.value,p.startsWith("force_")&&K[p]===void 0&&z.push({key:p,value:String(f[p])});return z}; lm=function(z,K,f,M,p,t,B,v){function I(){(G&&"readyState"in G?G.readyState:0)===4&&K&&g.Mu(K)(G)} f=f===void 0?"GET":f;M=M===void 0?"":M;v=v===void 0?!1:v;var G=UYg();if(!G)return null;"onloadend"in G?G.addEventListener("loadend",I,!1):G.onreadystatechange=I;g.Hg("debug_forward_web_query_parameters")&&(z=zba(z));G.open(f,z,!0);t&&(G.responseType=t);B&&(G.withCredentials=!0);f=f==="POST"&&(window.FormData===void 0||!(M instanceof FormData));if(p=KiI(z,p))for(var b in p)G.setRequestHeader(b,p[b]),"content-type"===b.toLowerCase()&&(f=!1);f&&G.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); if(v&&"setAttributionReporting"in XMLHttpRequest.prototype){z={eventSourceEligible:!0,triggerEligible:!1};try{G.setAttributionReporting(z)}catch(e){pJ(e)}}G.send(M);return G}; KiI=function(z,K){K=K===void 0?{}:K;var f=eg(z),M=g.zM("INNERTUBE_CLIENT_NAME"),p=g.Hg("web_ajax_ignore_global_headers_if_set"),t;for(t in $c8){var B=g.zM($c8[t]),v=t==="X-Goog-AuthUser"||t==="X-Goog-PageId";t!=="X-Goog-Visitor-Id"||B||(B=g.zM("VISITOR_DATA"));var I;if(!(I=!B)){if(!(I=f||(g.EW(z)?!1:!0))){I=z;var G;if(G=g.Hg("add_auth_headers_to_remarketing_google_dot_com_ping")&&t==="Authorization"&&(M==="TVHTML5"||M==="TVHTML5_UNPLUGGED"||M==="TVHTML5_SIMPLY")&&ZVd(I))I=Pv(I)||"",I=I.split("/"), I="/"+(I.length>1?I[1]:""),G=I==="/pagead";I=G?!0:!1}I=!I}I||p&&K[t]!==void 0||M==="TVHTML5_UNPLUGGED"&&v||(K[t]=B)}"X-Goog-EOM-Visitor-Id"in K&&"X-Goog-Visitor-Id"in K&&delete K["X-Goog-Visitor-Id"];if(f||!g.EW(z))K["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(f||!g.EW(z)){try{var b=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(e){}b&&(K["X-YouTube-Time-Zone"]=b)}document.location.hostname.endsWith("youtubeeducation.com")||!f&&g.EW(z)||(K["X-YouTube-Ad-Signals"]= Bg(ha()));return K}; nJ=function(z,K){K.method="POST";K.postParams||(K.postParams={});return g.V4(z,K)}; px8=function(z,K){if(window.fetch&&K.format!=="XML"){var f={method:K.method||"GET",credentials:"same-origin"};K.headers&&(f.headers=K.headers);K.priority&&(f.priority=K.priority);z=fVp(z,K);var M=MPu(z,K);M&&(f.body=M);K.withCredentials&&(f.credentials="include");var p=K.context||g.ZT,t=!1,B;fetch(z,f).then(function(v){if(!t){t=!0;B&&g.LJ(B);var I=v.ok,G=function(b){b=b||{};I?K.onSuccess&&K.onSuccess.call(p,b,v):K.onError&&K.onError.call(p,b,v);K.onFinish&&K.onFinish.call(p,b,v)}; (K.format||"JSON")==="JSON"&&(I||v.status>=400&&v.status<500)?v.json().then(G,function(){G(null)}):G(null)}}).catch(function(){K.onError&&K.onError.call(p,{},{})}); z=K.timeout||0;K.onFetchTimeout&&z>0&&(B=g.Sg(function(){t||(t=!0,g.LJ(B),K.onFetchTimeout.call(K.context||g.ZT))},z))}else g.V4(z,K)}; g.V4=function(z,K){var f=K.format||"JSON";z=fVp(z,K);var M=MPu(z,K),p=!1,t=tPq(z,function(I){if(!p){p=!0;v&&g.LJ(v);var G=g.Rw(I),b=null,e=400<=I.status&&I.status<500,w=500<=I.status&&I.status<600;if(G||e||w)b=Bhg(z,f,I,K.convertToSafeHtml);G&&(G=NhT(f,I,b));b=b||{};e=K.context||g.ZT;G?K.onSuccess&&K.onSuccess.call(e,I,b):K.onError&&K.onError.call(e,I,b);K.onFinish&&K.onFinish.call(e,I,b)}},K.method,M,K.headers,K.responseType,K.withCredentials); M=K.timeout||0;if(K.onTimeout&&M>0){var B=K.onTimeout;var v=g.Sg(function(){p||(p=!0,t.abort(),g.LJ(v),B.call(K.context||g.ZT,t))},M)}return t}; fVp=function(z,K){K.includeDomain&&(z=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+z);var f=g.zM("XSRF_FIELD_NAME");if(K=K.urlParams)K[f]&&delete K[f],z=GM(z,K);return z}; MPu=function(z,K){var f=g.zM("XSRF_FIELD_NAME"),M=g.zM("XSRF_TOKEN"),p=K.postBody||"",t=K.postParams,B=g.zM("XSRF_FIELD_NAME"),v;K.headers&&(v=K.headers["Content-Type"]);K.excludeXsrf||g.EW(z)&&!K.withCredentials&&g.EW(z)!==document.location.hostname||K.method!=="POST"||v&&v!=="application/x-www-form-urlencoded"||K.postParams&&K.postParams[B]||(t||(t={}),t[f]=M);(g.Hg("ajax_parse_query_data_only_when_filled")&&t&&Object.keys(t).length>0||t)&&typeof p==="string"&&(p=Nu(p),g.Mn(p,t),p=K.postBodyFormat&& K.postBodyFormat==="JSON"?JSON.stringify(p):g.l6(p));t=p||t&&!g.U9(t);!vnp&&t&&K.method!=="POST"&&(vnp=!0,g.fJ(Error("AJAX request with postData should use POST")));return p}; Bhg=function(z,K,f,M){var p=null;switch(K){case "JSON":try{var t=f.responseText}catch(B){throw M=Error("Error reading responseText"),M.params=z,pJ(M),B;}z=f.getResponseHeader("Content-Type")||"";t&&z.indexOf("json")>=0&&(t.substring(0,5)===")]}'\n"&&(t=t.substring(5)),p=JSON.parse(t));break;case "XML":if(z=(z=f.responseXML)?IVu(z):null)p={},g.co(z.getElementsByTagName("*"),function(B){p[B.tagName]=G$I(B)})}M&&bGv(p); return p}; bGv=function(z){if(g.$f(z))for(var K in z)K==="html_content"||Adq(K,"_html")?z[K]=zm(z[K]):bGv(z[K])}; NhT=function(z,K,f){if(K&&K.status===204)return!0;switch(z){case "JSON":return!!f;case "XML":return Number(f&&f.return_code)===0;case "RAW":return!0;default:return!!f}}; IVu=function(z){return z?(z=("responseXML"in z?z.responseXML:z).getElementsByTagName("root"))&&z.length>0?z[0]:null:null}; G$I=function(z){var K="";g.co(z.childNodes,function(f){K+=f.nodeValue}); return K}; zba=function(z){var K=window.location.search,f=g.EW(z);g.Hg("debug_handle_relative_url_for_query_forward_killswitch")||!f&&eg(z)&&(f=document.location.hostname);var M=Pv(z);M=(f=f&&(f.endsWith("youtube.com")||f.endsWith("youtube-nocookie.com")))&&M&&M.startsWith("/api/");if(!f||M)return z;var p=Nu(K),t={};g.co(eba,function(B){p[B]&&(t[B]=p[B])}); return bm(z,t)}; Ja=function(z,K){var f=g.$o(K),M;return(new g.Vh(function(p,t){f.onSuccess=function(B){g.Rw(B)?p(new wx5(B)):t(new Wg("Request failed, status="+aw(B),"net.badstatus",B))}; f.onError=function(B){t(new Wg("Unknown request error","net.unknown",B))}; f.onTimeout=function(B){t(new Wg("Request timed out","net.timeout",B))}; M=g.V4(z,f)})).Qf(function(p){if(p instanceof jk){var t; (t=M)==null||t.abort()}return J8(p)})}; g.gV=function(z,K,f,M){function p(v,I,G){return v.Qf(function(b){if(I<=0||aw(b.xhr)===403)return J8(new Wg("Request retried too many times","net.retryexhausted",b.xhr,b));b=Math.pow(2,f-I+1)*G;var e=B>0?Math.min(B,b):b;return t(G).then(function(){return p(Ja(z,K),I-1,e)})})} function t(v){return new g.Vh(function(I){setTimeout(I,v)})} var B=B===void 0?-1:B;return p(Ja(z,K),f-1,M)}; Wg=function(z,K,f){b_.call(this,z+", errorCode="+K);this.errorCode=K;this.xhr=f;this.name="PromiseAjaxError"}; wx5=function(z){this.xhr=z}; im=function(z){this.S=z===void 0?null:z;this.T=0;this.Y=null}; dV=function(z){var K=new im;z=z===void 0?null:z;K.T=2;K.Y=z===void 0?null:z;return K}; cg=function(z){var K=new im;z=z===void 0?null:z;K.T=1;K.Y=z===void 0?null:z;return K}; g.jg=function(z,K,f,M,p){sJ||Aa.set(""+z,K,{Dw:f,path:"/",domain:M===void 0?"youtube.com":M,secure:p===void 0?!1:p})}; g.YB=function(z,K){if(!sJ)return Aa.get(""+z,K)}; g.Xs=function(z,K,f){sJ||Aa.remove(""+z,K===void 0?"/":K,f===void 0?"youtube.com":f)}; DcT=function(){if(g.Hg("embeds_web_enable_cookie_detection_fix")){if(!g.ZT.navigator.cookieEnabled)return!1}else if(!Aa.isEnabled())return!1;if(!Aa.isEmpty())return!0;g.Hg("embeds_web_enable_cookie_detection_fix")?Aa.set("TESTCOOKIESENABLED","1",{Dw:60,ffV:"none",secure:!0}):Aa.set("TESTCOOKIESENABLED","1",{Dw:60});if(Aa.get("TESTCOOKIESENABLED")!=="1")return!1;Aa.remove("TESTCOOKIESENABLED");return!0}; g.A=function(z,K){if(z)return z[K.name]}; xB=function(z){var K=g.zM("INNERTUBE_HOST_OVERRIDE");K&&(z=String(K)+String(Hv(z)));return z}; yy8=function(z){var K={};g.Hg("json_condensed_response")&&(K.prettyPrint="false");return z=bm(z,K)}; Fs=function(z,K){var f=f===void 0?{}:f;z={method:K===void 0?"POST":K,mode:eg(z)?"same-origin":"cors",credentials:eg(z)?"same-origin":"include"};K={};for(var M=g.a(Object.keys(f)),p=M.next();!p.done;p=M.next())p=p.value,f[p]&&(K[p]=f[p]);Object.keys(K).length>0&&(z.headers=K);return z}; OJ=function(){var z=/Chrome\/(\d+)/.exec(g.H4());return z?parseFloat(z[1]):NaN}; rV=function(){var z=/\sCobalt\/(\S+)\s/.exec(g.H4());if(!z)return NaN;var K=[];z=g.a(z[1].split("."));for(var f=z.next();!f.done;f=z.next())f=parseInt(f.value,10),f>=0&&K.push(f);return parseFloat(K.join("."))}; ow=function(){return g.ZQ("android")&&g.ZQ("chrome")&&!(g.ZQ("trident/")||g.ZQ("edge/"))&&!g.ZQ("cobalt")}; k$o=function(){return g.ZQ("armv7")||g.ZQ("aarch64")||g.ZQ("android")}; g.CJ=function(){return g.ZQ("cobalt")}; TM=function(){return g.ZQ("cobalt")&&g.ZQ("appletv")}; UJ=function(){return g.ZQ("(ps3; leanback shell)")||g.ZQ("ps3")&&g.CJ()}; hbI=function(){return g.ZQ("(ps4; leanback shell)")||g.ZQ("ps4")&&g.CJ()}; g.aVp=function(){return g.CJ()&&(g.ZQ("ps4 vr")||g.ZQ("ps4 pro vr"))}; zC=function(){var z=/WebKit\/([0-9]+)/.exec(g.H4());return!!(z&&parseInt(z[1],10)>=600)}; K3=function(){var z=/WebKit\/([0-9]+)/.exec(g.H4());return!!(z&&parseInt(z[1],10)>=602)}; Rb8=function(){return g.ZQ("iemobile")||g.ZQ("windows phone")&&g.ZQ("edge")}; Mm=function(){return($a||f3)&&g.ZQ("applewebkit")&&!g.ZQ("version")&&(!g.ZQ("safari")||g.ZQ("gsa/"))}; tV=function(){return g.p3&&g.ZQ("version/")}; BK=function(){return g.ZQ("smart-tv")&&g.ZQ("samsung")}; g.ZQ=function(z){var K=g.H4();return K?K.toLowerCase().indexOf(z)>=0:!1}; Nm=function(){return p2I()||Mm()||tV()?!0:g.zM("EOM_VISITOR_DATA")?!1:!0}; vK=function(z,K){return K===void 0||K===null?z:K==="1"||K===!0||K===1||K==="True"?!0:!1}; IZ=function(z,K,f){for(var M in f)if(f[M]==K)return f[M];return z}; GC=function(z,K){return K===void 0||K===null?z:Number(K)}; bu=function(z,K){return K===void 0||K===null?z:K.toString()}; ep=function(z,K){if(K){if(z==="fullwidth")return Infinity;if(z==="fullheight")return 0}return z&&(K=z.match(SDS))&&(z=Number(K[2]),K=Number(K[1]),!isNaN(z)&&!isNaN(K)&&z>0)?K/z:NaN}; w0=function(z){var K=z.docid||z.video_id||z.videoId||z.id;if(K)return K;K=z.raw_player_response;K||(z=z.player_response)&&(K=JSON.parse(z));return K&&K.videoDetails&&K.videoDetails.videoId||null}; u8o=function(z){return DF(z,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.yS=function(z){return z==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||z==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; DF=function(z,K){K=(K===void 0?0:K)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(K="EMBEDDED_PLAYER_MODE_PFL");var f=z.raw_embedded_player_response;if(!f&&(z=z.embedded_player_response))try{f=JSON.parse(z)}catch(M){return K}return f?IZ(K,f.embeddedPlayerMode,Liq):K}; hV=function(z){b_.call(this,z.message||z.description||z.name);this.isMissing=z instanceof ka;this.isTimeout=z instanceof Wg&&z.errorCode=="net.timeout";this.isCanceled=z instanceof jk}; ka=function(){b_.call(this,"Biscotti ID is missing from server")}; EnS=function(){if(g.Hg("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!Nm())return Error("User has not consented - not fetching biscotti id.");var z=g.zM("PLAYER_VARS",{});if(g.zl(z,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(u8o(z))return Error("Biscotti id fetching has been disabled for pfl.")}; qDS=function(){var z=EnS();if(z!==void 0)return J8(z);aZ||(aZ=Ja("//googleads.g.doubleclick.net/pagead/id",P2W).then(HGW).Qf(function(K){return Qlu(2,K)})); return aZ}; HGW=function(z){z=z.xhr.responseText;if(!yA(z,")]}'"))throw new ka;z=JSON.parse(z.substr(4));if((z.type||1)>1)throw new ka;z=z.id;jiq(z);aZ=cg(z);mca(18E5,2);return z}; Qlu=function(z,K){K=new hV(K);jiq("");aZ=dV(K);z>0&&mca(12E4,z-1);throw K;}; mca=function(z,K){g.Sg(function(){Ja("//googleads.g.doubleclick.net/pagead/id",P2W).then(HGW,function(f){return Qlu(K,f)}).Qf(g.DZ)},z)}; lVu=function(){try{var z=g.CW("yt.ads.biscotti.getId_");return z?z():qDS()}catch(K){return J8(K)}}; nnT=function(z){z&&(z.dataset?z.dataset[VPq()]="true":$5a(z))}; Wi5=function(z){return z?z.dataset?z.dataset[VPq()]:z.getAttribute("data-loaded"):null}; VPq=function(){return Jy8.loaded||(Jy8.loaded="loaded".replace(/\-([a-z])/g,function(z,K){return K.toUpperCase()}))}; gn5=function(){var z=document;if("visibilityState"in z)return z.visibilityState;var K=RZ+"VisibilityState";if(K in z)return z[K]}; Sp=function(z,K){var f;$E(z,function(M){f=K[M];return!!f}); return f}; uu=function(z){if(z.requestFullscreen)z=z.requestFullscreen(void 0);else if(z.webkitRequestFullscreen)z=z.webkitRequestFullscreen();else if(z.mozRequestFullScreen)z=z.mozRequestFullScreen();else if(z.msRequestFullscreen)z=z.msRequestFullscreen();else if(z.webkitEnterFullscreen)z=z.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return z instanceof Promise?z:Promise.resolve()}; PK=function(z){var K;g.L3()?ET()==z&&(K=document):K=z;return K&&(z=Sp(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],K))?(K=z.call(K),K instanceof Promise?K:Promise.resolve()):Promise.resolve()}; iGI=function(z){return g.yQ(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(K){return"on"+K.toLowerCase()in z})}; dcW=function(){var z=document;return g.yQ(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(K){return"on"+K.toLowerCase()in z})}; g.L3=function(){return!!Sp(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; ET=function(z){z=z===void 0?!1:z;var K=Sp(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(z)for(;K&&K.shadowRoot;)K=K.shadowRoot.fullscreenElement;return K?K:null}; HK=function(z){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(z=z||window.event){this.event=z;for(var K in z)K in cy5||(this[K]=z[K]);this.scale=z.scale;this.rotation=z.rotation;var f=z.target||z.srcElement;f&&f.nodeType==3&&(f=f.parentNode);this.target=f;var M=z.relatedTarget; if(M)try{M=M.nodeName?M:null}catch(p){M=null}else this.type=="mouseover"?M=z.fromElement:this.type=="mouseout"&&(M=z.toElement);this.relatedTarget=M;this.clientX=z.clientX!=void 0?z.clientX:z.pageX;this.clientY=z.clientY!=void 0?z.clientY:z.pageY;this.keyCode=z.keyCode?z.keyCode:z.which;this.charCode=z.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=z.altKey;this.ctrlKey=z.ctrlKey;this.shiftKey=z.shiftKey;this.metaKey=z.metaKey;this.S=z.pageX;this.Y=z.pageY}}catch(p){}}; slS=function(z){if(document.body&&document.documentElement){var K=document.body.scrollTop+document.documentElement.scrollTop;z.S=z.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);z.Y=z.clientY+K}}; Ay5=function(z,K,f,M){M=M===void 0?{}:M;z.addEventListener&&(K!="mouseenter"||"onmouseenter"in document?K!="mouseleave"||"onmouseenter"in document?K=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(K="MozMousePixelScroll"):K="mouseout":K="mouseover");return TH(QS,function(p){var t=typeof p[4]==="boolean"&&p[4]==!!M,B=g.$f(p[4])&&g.$f(M)&&g.KL(p[4],M);return!!p.length&&p[0]==z&&p[1]==K&&p[2]==f&&(t||B)})}; g.qm=function(z,K,f,M){M=M===void 0?{}:M;if(!z||!z.addEventListener&&!z.attachEvent)return"";var p=Ay5(z,K,f,M);if(p)return p;p=++jlW.count+"";var t=!(K!="mouseenter"&&K!="mouseleave"||!z.addEventListener||"onmouseenter"in document);var B=t?function(v){v=new HK(v);if(!N0(v.relatedTarget,function(I){return I==z},!0))return v.currentTarget=z,v.type=K,f.call(z,v)}:function(v){v=new HK(v); v.currentTarget=z;return f.call(z,v)}; B=g.Mu(B);z.addEventListener?(K=="mouseenter"&&t?K="mouseover":K=="mouseleave"&&t?K="mouseout":K=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(K="MozMousePixelScroll"),YD5()||typeof M==="boolean"?z.addEventListener(K,B,M):z.addEventListener(K,B,!!M.capture)):z.attachEvent("on"+K,B);QS[p]=[z,K,f,B,M];return p}; xco=function(z){return XxW(z,function(K){return g.bx(K,"ytp-ad-has-logging-urls")})}; XxW=function(z,K){var f=document.body||document;return g.qm(f,"click",function(M){var p=N0(M.target,function(t){return t===f||K(t)},!0); p&&p!==f&&!p.disabled&&(M.currentTarget=p,z.call(p,M))})}; g.m6=function(z){z&&(typeof z=="string"&&(z=[z]),g.co(z,function(K){if(K in QS){var f=QS[K],M=f[0],p=f[1],t=f[3];f=f[4];M.removeEventListener?YD5()||typeof f==="boolean"?M.removeEventListener(p,t,f):M.removeEventListener(p,t,!!f.capture):M.detachEvent&&M.detachEvent("on"+p,t);delete QS[K]}}))}; lu=function(z){for(var K in QS)QS[K][0]==z&&g.m6(K)}; VS=function(z){z=z||window.event;var K;z.composedPath&&typeof z.composedPath==="function"?K=z.composedPath():K=z.path;K&&K.length?z=K[0]:(z=z||window.event,z=z.target||z.srcElement,z.nodeType==3&&(z=z.parentNode));return z}; n3=function(z){this.G=z;this.S=null;this.J=0;this.W=null;this.C=0;this.Y=[];for(z=0;z<4;z++)this.Y.push(0);this.T=0;this.l_=g.qm(window,"mousemove",(0,g.p1)(this.N,this));this.D=g.um((0,g.p1)(this.Y1,this),25)}; WK=function(z){g.J.call(this);this.G=[];this.nI=z||this}; JV=function(z,K,f,M){for(var p=0;p0?f:0;f=M?Date.now()+M*1E3:0;if((M=M?(0,g.d0)():cK())&&window.JSON){typeof K!=="string"&&(K=JSON.stringify(K,void 0));try{M.set(z,K,f)}catch(p){M.remove(z)}}}; g.AV=function(z){var K=cK(),f=(0,g.d0)();if(!K&&!f||!window.JSON)return null;try{var M=K.get(z)}catch(p){}if(typeof M!=="string")try{M=f.get(z)}catch(p){}if(typeof M!=="string")return null;try{M=JSON.parse(M,void 0)}catch(p){}return M}; ryv=function(){var z=(0,g.d0)();if(z&&(z=z.Y("yt-player-quality")))return z.creation}; g.jp=function(z){try{var K=cK(),f=(0,g.d0)();K&&K.remove(z);f&&f.remove(z)}catch(M){}}; g.Ya=function(){return g.AV("yt-remote-session-screen-id")}; ZG5=function(z){var K=this;this.Y=void 0;this.S=!1;z.addEventListener("beforeinstallprompt",function(f){f.preventDefault();K.Y=f}); z.addEventListener("appinstalled",function(){K.S=!0},{once:!0})}; XH=function(){if(!g.ZT.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.ZT.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.ZT.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.ZT.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.ZT.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(z){return"WEB_DISPLAY_MODE_UNKNOWN"}}; xa=function(){this.xj=!0}; ona=function(){xa.instance||(xa.instance=new xa);return xa.instance}; C2T=function(z){switch(z){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}}; Thd=function(){this.S=g.zM("ALT_PREF_COOKIE_NAME","PREF");this.Y=g.zM("ALT_PREF_COOKIE_DOMAIN","youtube.com");var z=g.YB(this.S);z&&this.parse(z)}; g.OT=function(){FH||(FH=new Thd);return FH}; g.r0=function(z,K){return!!((Ucd("f"+(Math.floor(K/31)+1))||0)&1<0;)switch(z=yl.shift(),z.type){case "ERROR":bN.Bc(z.payload);break;case "EVENT":bN.logEvent(z.eventType,z.payload)}}; hO=function(z){ki||(bN?bN.Bc(z):(yl.push({type:"ERROR",payload:z}),yl.length>10&&yl.shift()))}; aY=function(z,K){ki||(bN?bN.logEvent(z,K):(yl.push({type:"EVENT",eventType:z,payload:K}),yl.length>10&&yl.shift()))}; RY=function(z){if(z.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; SO=function(z){return z.substr(0,z.indexOf(":"))||z}; g.uN=function(z,K,f,M,p){K=K===void 0?{}:K;f=f===void 0?Byd[z]:f;M=M===void 0?NyT[z]:M;p=p===void 0?v48[z]:p;g.UT.call(this,f,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:z},K));this.type=z;this.message=f;this.level=M;this.S=p;Object.setPrototypeOf(this,g.uN.prototype)}; L8=function(z,K){g.uN.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:K,foundObjectStores:z},Byd.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,L8.prototype)}; Ex=function(z,K){var f=Error.call(this);this.message=f.message;"stack"in f&&(this.stack=f.stack);this.index=z;this.objectStore=K;Object.setPrototypeOf(this,Ex.prototype)}; HJ=function(z,K,f,M){K=SO(K);var p=z instanceof Error?z:Error("Unexpected error: "+z);if(p instanceof g.uN)return p;z={objectStoreNames:f,dbName:K,dbVersion:M};if(p.name==="QuotaExceededError")return new g.uN("QUOTA_EXCEEDED",z);if(g.PJ&&p.name==="UnknownError")return new g.uN("QUOTA_MAYBE_EXCEEDED",z);if(p instanceof Ex)return new g.uN("MISSING_INDEX",Object.assign({},z,{objectStore:p.objectStore,index:p.index}));if(p.name==="InvalidStateError"&&Izo.some(function(t){return p.message.includes(t)}))return new g.uN("EXECUTE_TRANSACTION_ON_CLOSED_DB", z); if(p.name==="AbortError")return new g.uN("UNKNOWN_ABORT",z,p.message);p.args=[Object.assign({},z,{name:"IdbError",n_:p.name})];p.level="WARNING";return p}; g.Ql=function(z,K,f){var M=GN();return new g.uN("IDB_NOT_SUPPORTED",{context:{caller:z,publicName:K,version:f,hasSucceededOnce:M==null?void 0:M.hasSucceededOnce}})}; GJ8=function(z){if(!z)throw Error();throw z;}; bl5=function(z){return z}; qg=function(z){this.S=z}; g.ma=function(z){function K(p){if(M.state.status==="PENDING"){M.state={status:"REJECTED",reason:p};p=g.a(M.Y);for(var t=p.next();!t.done;t=p.next())t=t.value,t()}} function f(p){if(M.state.status==="PENDING"){M.state={status:"FULFILLED",value:p};p=g.a(M.S);for(var t=p.next();!t.done;t=p.next())t=t.value,t()}} var M=this;this.state={status:"PENDING"};this.S=[];this.Y=[];z=z.S;try{z(f,K)}catch(p){K(p)}}; e3a=function(z,K,f,M,p){try{if(z.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var t=f(z.state.value);t instanceof g.ma?lN(z,K,t,M,p):M(t)}catch(B){p(B)}}; wsd=function(z,K,f,M,p){try{if(z.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var t=f(z.state.reason);t instanceof g.ma?lN(z,K,t,M,p):M(t)}catch(B){p(B)}}; lN=function(z,K,f,M,p){K===f?p(new TypeError("Circular promise chain detected.")):f.then(function(t){t instanceof g.ma?lN(z,K,t,M,p):M(t)},function(t){p(t)})}; Di8=function(z,K,f){function M(){f(z.error);t()} function p(){K(z.result);t()} function t(){try{z.removeEventListener("success",p),z.removeEventListener("error",M)}catch(B){}} z.addEventListener("success",p);z.addEventListener("error",M)}; yUo=function(z){return new Promise(function(K,f){Di8(z,K,f)})}; Vl=function(z){return new g.ma(new qg(function(K,f){Di8(z,K,f)}))}; n8=function(z,K){return new g.ma(new qg(function(f,M){function p(){var t=z?K(z):null;t?t.then(function(B){z=B;p()},M):f()} p()}))}; kJ8=function(z,K){this.request=z;this.cursor=K}; h3I=function(z){return Vl(z).then(function(K){return K?new kJ8(z,K):null})}; g.azv=function(z){z.cursor.continue(void 0);return h3I(z.request)}; R3o=function(z,K){this.S=z;this.options=K;this.transactionCount=0;this.T=Math.round((0,g.X)());this.Y=!1}; g.JO=function(z,K,f){z=z.S.createObjectStore(K,f);return new WJ(z)}; gg=function(z,K){z.S.objectStoreNames.contains(K)&&z.S.deleteObjectStore(K)}; g.cJ=function(z,K,f){return g.iN(z,[K],{mode:"readwrite",B1:!0},function(M){return g.dg(M.objectStore(K),f)})}; g.iN=function(z,K,f,M){var p,t,B,v,I,G,b,e,w,D,y,R;return g.n(function(S){switch(S.Y){case 1:var E={mode:"readonly",B1:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof f==="string"?E.mode=f:Object.assign(E,f);p=E;z.transactionCount++;t=p.B1?3:1;B=0;case 2:if(v){S.jV(4);break}B++;I=Math.round((0,g.X)());g.Sq(S,5);G=z.S.transaction(K,p.mode);E=new sx(G);E=S88(E,M);return g.l(S,E,7);case 7:return b=S.S,e=Math.round((0,g.X)()),uiI(z,I,e,B,void 0,K.join(),p),S.return(b);case 5:w=g.QI(S);D=Math.round((0,g.X)()); y=HJ(w,z.S.name,K.join(),z.S.version);if((R=y instanceof g.uN&&!y.S)||B>=t)uiI(z,I,D,B,y,K.join(),p),v=y;S.jV(2);break;case 4:return S.return(Promise.reject(v))}})}; uiI=function(z,K,f,M,p,t,B){K=f-K;p?(p instanceof g.uN&&(p.type==="QUOTA_EXCEEDED"||p.type==="QUOTA_MAYBE_EXCEEDED")&&aY("QUOTA_EXCEEDED",{dbName:SO(z.S.name),objectStoreNames:t,transactionCount:z.transactionCount,transactionMode:B.mode}),p instanceof g.uN&&p.type==="UNKNOWN_ABORT"&&(f-=z.T,f<0&&f>=2147483648&&(f=0),aY("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:t,transactionDuration:K,transactionCount:z.transactionCount,dbDuration:f}),z.Y=!0),LQS(z,!1,M,t,K,B.tag),hO(p)):LQS(z,!0,M,t,K, B.tag)}; LQS=function(z,K,f,M,p,t){aY("TRANSACTION_ENDED",{objectStoreNames:M,connectionHasUnknownAbortedTransaction:z.Y,duration:p,isSuccessful:K,tryCount:f,tag:t===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":t})}; WJ=function(z){this.S=z}; g.AO=function(z,K,f){z.S.createIndex(K,f,{unique:!1})}; E4o=function(z,K){return g.jO(z,{query:K},function(f){return f.delete().then(function(){return g.Yi(f)})}).then(function(){})}; PxS=function(z,K,f){var M=[];return g.jO(z,{query:K},function(p){if(!(f!==void 0&&M.length>=f))return M.push(p.getValue()),g.Yi(p)}).then(function(){return M})}; QG5=function(z){return"getAllKeys"in IDBObjectStore.prototype?Vl(z.S.getAllKeys(void 0,void 0)):Hlv(z)}; Hlv=function(z){var K=[];return g.q8v(z,{query:void 0},function(f){K.push(f.cursor.primaryKey);return g.azv(f)}).then(function(){return K})}; g.dg=function(z,K,f){return Vl(z.S.put(K,f))}; g.jO=function(z,K,f){z=z.S.openCursor(K.query,K.direction);return XQ(z).then(function(M){return n8(M,f)})}; g.q8v=function(z,K,f){var M=K.query;K=K.direction;z="openKeyCursor"in IDBObjectStore.prototype?z.S.openKeyCursor(M,K):z.S.openCursor(M,K);return h3I(z).then(function(p){return n8(p,f)})}; sx=function(z){var K=this;this.S=z;this.T=new Map;this.Y=!1;this.done=new Promise(function(f,M){K.S.addEventListener("complete",function(){f()}); K.S.addEventListener("error",function(p){p.currentTarget===p.target&&M(K.S.error)}); K.S.addEventListener("abort",function(){var p=K.S.error;if(p)M(p);else if(!K.Y){p=g.uN;for(var t=K.S.objectStoreNames,B=[],v=0;v=f))return M.push(p.getValue()),g.Yi(p)}).then(function(){return M})}; g.xi=function(z,K,f){z=z.S.openCursor(K.query===void 0?null:K.query,K.direction===void 0?"next":K.direction);return XQ(z).then(function(M){return n8(M,f)})}; FQ=function(z,K){this.request=z;this.cursor=K}; XQ=function(z){return Vl(z).then(function(K){return K?new FQ(z,K):null})}; g.Yi=function(z){z.cursor.continue(void 0);return XQ(z.request)}; Vyq=function(z,K,f){return new Promise(function(M,p){function t(){w||(w=new R3o(B.result,{closed:e}));return w} var B=K!==void 0?self.indexedDB.open(z,K):self.indexedDB.open(z);var v=f.blocked,I=f.blocking,G=f.Ka1,b=f.upgrade,e=f.closed,w;B.addEventListener("upgradeneeded",function(D){try{if(D.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(B.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");D.dataLoss&&D.dataLoss!=="none"&&aY("IDB_DATA_CORRUPTED",{reason:D.dataLossMessage||"unknown reason",dbName:SO(z)});var y=t(),R=new sx(B.transaction); b&&b(y,function(S){return D.oldVersion=S},R); R.done.catch(function(S){p(S)})}catch(S){p(S)}}); B.addEventListener("success",function(){var D=B.result;I&&D.addEventListener("versionchange",function(){I(t())}); D.addEventListener("close",function(){aY("IDB_UNEXPECTEDLY_CLOSED",{dbName:SO(z),dbVersion:D.version});G&&G()}); M(t())}); B.addEventListener("error",function(){p(B.error)}); v&&B.addEventListener("blocked",function(){v()})})}; n4W=function(z,K,f){f=f===void 0?{}:f;return Vyq(z,K,f)}; Ox=function(z,K){K=K===void 0?{}:K;var f,M,p,t;return g.n(function(B){if(B.Y==1)return g.Sq(B,2),f=self.indexedDB.deleteDatabase(z),M=K,(p=M.blocked)&&f.addEventListener("blocked",function(){p()}),g.l(B,yUo(f),4); if(B.Y!=2)return g.Eu(B,0);t=g.QI(B);throw HJ(t,z,"",-1);})}; rg=function(z,K){this.name=z;this.options=K;this.T=!0;this.C=this.J=0}; WQT=function(z,K){return new g.uN("INCOMPATIBLE_DB_VERSION",{dbName:z.name,oldVersion:z.options.version,newVersion:K})}; g.Zs=function(z,K){if(!K)throw g.Ql("openWithToken",SO(z.name));return z.open()}; JUp=function(z,K){var f;return g.n(function(M){if(M.Y==1)return g.l(M,g.Zs(oY,K),2);f=M.S;return M.return(g.iN(f,["databases"],{B1:!0,mode:"readwrite"},function(p){var t=p.objectStore("databases");return t.get(z.actualName).then(function(B){if(B?z.actualName!==B.actualName||z.publicName!==B.publicName||z.userIdentifier!==B.userIdentifier:1)return g.dg(t,z).then(function(){})})}))})}; C8=function(z,K){var f;return g.n(function(M){if(M.Y==1)return z?g.l(M,g.Zs(oY,K),2):M.return();f=M.S;return M.return(f.delete("databases",z))})}; g4I=function(z,K){var f,M;return g.n(function(p){return p.Y==1?(f=[],g.l(p,g.Zs(oY,K),2)):p.Y!=3?(M=p.S,g.l(p,g.iN(M,["databases"],{B1:!0,mode:"readonly"},function(t){f.length=0;return g.jO(t.objectStore("databases"),{},function(B){z(B.getValue())&&f.push(B.getValue());return g.Yi(B)})}),3)):p.return(f)})}; ild=function(z,K){return g4I(function(f){return f.publicName===z&&f.userIdentifier!==void 0},K)}; diq=function(){var z,K,f,M;return g.n(function(p){switch(p.Y){case 1:z=GN();if((K=z)==null?0:K.hasSucceededOnce)return p.return(!0);if(TN&&zC()&&!K3()||g.Ux)return p.return(!1);try{if(f=self,!(f.indexedDB&&f.IDBIndex&&f.IDBKeyRange&&f.IDBObjectStore))return p.return(!1)}catch(t){return p.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return p.return(!1);g.Sq(p,2);M={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.l(p,JUp(M,z4),4);case 4:return g.l(p,C8("yt-idb-test-do-not-use",z4),5);case 5:return p.return(!0);case 2:return g.QI(p),p.return(!1)}})}; cUo=function(){if(KR!==void 0)return KR;ki=!0;return KR=diq().then(function(z){ki=!1;var K;if((K=IY())!=null&&K.S){var f;K={hasSucceededOnce:((f=GN())==null?void 0:f.hasSucceededOnce)||z};var M;(M=IY())==null||M.set("LAST_RESULT_ENTRY_KEY",K,2592E3,!0)}return z})}; $K=function(){return g.CW("ytglobal.idbToken_")||void 0}; g.fR=function(){var z=$K();return z?Promise.resolve(z):cUo().then(function(K){(K=K?z4:void 0)&&g.ov("ytglobal.idbToken_",K);return K})}; sGd=function(z){if(!g.K8())throw z=new g.uN("AUTH_INVALID",{dbName:z}),hO(z),z;var K=g.zN();return{actualName:z+":"+K,publicName:z,userIdentifier:K}}; AUS=function(z,K,f,M){var p,t,B,v,I,G;return g.n(function(b){switch(b.Y){case 1:return t=(p=Error().stack)!=null?p:"",g.l(b,g.fR(),2);case 2:B=b.S;if(!B)throw v=g.Ql("openDbImpl",z,K),g.Hg("ytidb_async_stack_killswitch")||(v.stack=v.stack+"\n"+t.substring(t.indexOf("\n")+1)),hO(v),v;RY(z);I=f?{actualName:z,publicName:z,userIdentifier:void 0}:sGd(z);g.Sq(b,3);return g.l(b,JUp(I,B),5);case 5:return g.l(b,n4W(I.actualName,K,M),6);case 6:return b.return(b.S);case 3:return G=g.QI(b),g.Sq(b,7),g.l(b,C8(I.actualName, B),9);case 9:g.Eu(b,8);break;case 7:g.QI(b);case 8:throw G;}})}; jG5=function(z,K,f){f=f===void 0?{}:f;return AUS(z,K,!1,f)}; Y8S=function(z,K,f){f=f===void 0?{}:f;return AUS(z,K,!0,f)}; Xs8=function(z,K){K=K===void 0?{}:K;var f,M;return g.n(function(p){if(p.Y==1)return g.l(p,g.fR(),2);if(p.Y!=3){f=p.S;if(!f)return p.return();RY(z);M=sGd(z);return g.l(p,Ox(M.actualName,K),3)}return g.l(p,C8(M.actualName,f),0)})}; xip=function(z,K,f){z=z.map(function(M){return g.n(function(p){return p.Y==1?g.l(p,Ox(M.actualName,K),2):g.l(p,C8(M.actualName,f),0)})}); return Promise.all(z).then(function(){})}; FQo=function(z){var K=K===void 0?{}:K;var f,M;return g.n(function(p){if(p.Y==1)return g.l(p,g.fR(),2);if(p.Y!=3){f=p.S;if(!f)return p.return();RY(z);return g.l(p,ild(z,f),3)}M=p.S;return g.l(p,xip(M,K,f),0)})}; Olp=function(z,K){K=K===void 0?{}:K;var f;return g.n(function(M){if(M.Y==1)return g.l(M,g.fR(),2);if(M.Y!=3){f=M.S;if(!f)return M.return();RY(z);return g.l(M,Ox(z,K),3)}return g.l(M,C8(z,f),0)})}; MJ=function(z,K){rg.call(this,z,K);this.options=K;RY(z)}; rU8=function(z,K){var f;return function(){f||(f=new MJ(z,K));return f}}; g.pR=function(z,K){return rU8(z,K)}; tc=function(z){return g.Zs(Zld(),z)}; o4S=function(z,K,f,M){var p,t,B;return g.n(function(v){switch(v.Y){case 1:return p={config:z,hashData:K,timestamp:M!==void 0?M:(0,g.X)()},g.l(v,tc(f),2);case 2:return t=v.S,g.l(v,t.clear("hotConfigStore"),3);case 3:return g.l(v,g.cJ(t,"hotConfigStore",p),4);case 4:return B=v.S,v.return(B)}})}; Cxp=function(z,K,f,M,p){var t,B,v;return g.n(function(I){switch(I.Y){case 1:return t={config:z,hashData:K,configData:f,timestamp:p!==void 0?p:(0,g.X)()},g.l(I,tc(M),2);case 2:return B=I.S,g.l(I,B.clear("coldConfigStore"),3);case 3:return g.l(I,g.cJ(B,"coldConfigStore",t),4);case 4:return v=I.S,I.return(v)}})}; Tyu=function(z){var K,f;return g.n(function(M){return M.Y==1?g.l(M,tc(z),2):M.Y!=3?(K=M.S,f=void 0,g.l(M,g.iN(K,["coldConfigStore"],{mode:"readwrite",B1:!0},function(p){return g.xi(p.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(t){f=t.getValue()})}),3)):M.return(f)})}; Uiu=function(z){var K,f;return g.n(function(M){return M.Y==1?g.l(M,tc(z),2):M.Y!=3?(K=M.S,f=void 0,g.l(M,g.iN(K,["hotConfigStore"],{mode:"readwrite",B1:!0},function(p){return g.xi(p.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(t){f=t.getValue()})}),3)):M.return(f)})}; znW=function(){return g.n(function(z){return g.l(z,FQo("ytGcfConfig"),0)})}; Bk=function(){g.J.call(this);this.Y=[];this.S=[];var z=g.CW("yt.gcf.config.hotUpdateCallbacks");z?(this.Y=[].concat(g.P(z)),this.S=z):(this.S=[],g.ov("yt.gcf.config.hotUpdateCallbacks",this.S))}; es=function(){var z=this;this.C=!1;this.T=this.J=0;this.W=new Bk;this.dO={Vqd:function(){z.C=!0}, f7_:function(){return z.S}, yAq:function(K){NJ(z,K)}, cn:function(K){z.cn(K)}, LDx:function(K){vk(z,K)}, aW:function(){return z.coldHashData}, qz:function(){return z.hotHashData}, oeH:function(){return z.Y}, LAx:function(){return Is()}, t4d:function(){return G4()}, r1E:function(){return g.CW("yt.gcf.config.coldHashData")}, w9E:function(){return g.CW("yt.gcf.config.hotHashData")}, xaL:function(){K9a(z)}, ZEq:function(){z.cn(void 0);ba(z);delete es.instance}, wn1:function(K){z.T=K}, M4e:function(){return z.T}}}; $zS=function(){if(!es.instance){var z=new es;es.instance=z}return es.instance}; pmg=function(z){var K;g.n(function(f){if(f.Y==1)return g.Hg("start_client_gcf")||g.Hg("delete_gcf_config_db")?g.Hg("start_client_gcf")?g.l(f,g.fR(),3):f.jV(2):f.return();f.Y!=2&&((K=f.S)&&g.K8()&&!g.Hg("delete_gcf_config_db")?(z.C=!0,K9a(z)):(fBq(z),M4S(z)));return g.Hg("delete_gcf_config_db")?g.l(f,znW(),0):f.jV(0)})}; wD=function(){var z;return(z=G4())!=null?z:g.zM("RAW_HOT_CONFIG_GROUP")}; t4p=function(z){var K,f,M,p,t,B;return g.n(function(v){switch(v.Y){case 1:if(z.Y)return v.return(G4());if(!z.C)return K=g.Ql("getHotConfig IDB not initialized"),pJ(K),v.return(Promise.reject(K));f=$K();M=g.zM("TIME_CREATED_MS");if(!f){p=g.Ql("getHotConfig token error");pJ(p);v.jV(2);break}return g.l(v,Uiu(f),3);case 3:if((t=v.S)&&t.timestamp>M)return NJ(z,t.config),z.cn(t.hashData),v.return(G4());case 2:M4S(z);if(!(f&&z.Y&&z.hotHashData)){v.jV(4);break}return g.l(v,o4S(z.Y,z.hotHashData,f,M),4);case 4:return z.Y? v.return(G4()):(B=new g.UT("Config not available in ytConfig"),pJ(B),v.return(Promise.reject(B)))}})}; NeS=function(z){var K,f,M,p,t,B;return g.n(function(v){switch(v.Y){case 1:if(z.S)return v.return(Is());if(!z.C)return K=g.Ql("getColdConfig IDB not initialized"),pJ(K),v.return(Promise.reject(K));f=$K();M=g.zM("TIME_CREATED_MS");if(!f){p=g.Ql("getColdConfig");pJ(p);v.jV(2);break}return g.l(v,Tyu(f),3);case 3:if((t=v.S)&&t.timestamp>M)return vk(z,t.config),BeS(z,t.configData),ba(z,t.hashData),v.return(Is());case 2:fBq(z);if(!(f&&z.S&&z.coldHashData&&z.configData)){v.jV(4);break}return g.l(v,Cxp(z.S, z.coldHashData,z.configData,f,M),4);case 4:return z.S?v.return(Is()):(B=new g.UT("Config not available in ytConfig"),pJ(B),v.return(Promise.reject(B)))}})}; K9a=function(z){if(!z.Y||!z.S){if(!$K()){var K=g.Ql("scheduleGetConfigs");pJ(K)}z.J||(z.J=g.rh.DD(function(){return g.n(function(f){switch(f.Y){case 1:return g.Sq(f,2),g.l(f,t4p(z),4);case 4:g.Eu(f,3);break;case 2:g.QI(f);case 3:return g.Sq(f,5),g.l(f,NeS(z),7);case 7:g.Eu(f,6);break;case 5:g.QI(f);case 6:z.J&&(z.J=0),g.Rv(f)}})},100))}}; vLS=function(z,K,f){var M,p,t;return g.n(function(B){switch(B.Y){case 1:if(!g.Hg("start_client_gcf")){B.jV(0);break}f&&NJ(z,f);z.cn(K);M=$K();if(!M){B.jV(3);break}if(f){B.jV(4);break}return g.l(B,Uiu(M),5);case 5:p=B.S,f=(t=p)==null?void 0:t.config;case 4:return g.l(B,o4S(f,K,M),3);case 3:if(f)for(var v=f,I=g.a(z.W.S),G=I.next();!G.done;G=I.next())G=G.value,G(v);g.Rv(B)}})}; IB8=function(z,K,f){var M,p,t,B;return g.n(function(v){if(v.Y==1){if(!g.Hg("start_client_gcf"))return v.jV(0);ba(z,K);return(M=$K())?f?v.jV(4):g.l(v,Tyu(M),5):v.jV(0)}v.Y!=4&&(p=v.S,f=(t=p)==null?void 0:t.config);if(!f)return v.jV(0);B=f.configData;return g.l(v,Cxp(f,K,B,M),0)})}; GES=function(){var z=$zS(),K=(0,g.X)()-z.T;if(!(z.T!==0&&K0&&(K.request={internalExperimentFlags:f});end(z,void 0,K);wma(void 0,K);DzT(void 0,K);ySg(z,void 0,K);kEd(void 0,K);g.Hg("start_client_gcf")&&hnq(void 0,K);g.zM("DELEGATED_SESSION_ID")&& !g.Hg("pageid_as_header_web")&&(K.user={onBehalfOfUser:g.zM("DELEGATED_SESSION_ID")});!g.Hg("fill_delegate_context_in_gel_killswitch")&&(z=g.zM("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(K.user=Object.assign({},K.user,{serializedDelegationContext:z}));z=g.zM("INNERTUBE_CONTEXT");var M;if(g.Hg("enable_persistent_device_token")&&(z==null?0:(M=z.client)==null?0:M.rolloutToken)){var p;K.client.rolloutToken=z==null?void 0:(p=z.client)==null?void 0:p.rolloutToken}M=Object;p=M.assign;z=K.client; f={};for(var t=g.a(Object.entries(Nu(g.zM("DEVICE","")))),B=t.next();!B.done;B=t.next()){var v=g.a(B.value);B=v.next().value;v=v.next().value;B==="cbrand"?f.deviceMake=v:B==="cmodel"?f.deviceModel=v:B==="cbr"?f.browserName=v:B==="cbrver"?f.browserVersion=v:B==="cos"?f.osName=v:B==="cosver"?f.osVersion=v:B==="cplatform"&&(f.platform=v)}K.client=p.call(M,z,f);return K}; end=function(z,K,f){z=z.MG;if(z==="WEB"||z==="MWEB"||z===1||z===2)if(K){f=Ze(K,JS,96)||new JS;var M=XH();M=Object.keys(aBS).indexOf(M);M=M===-1?null:M;M!==null&&vX(f,3,M);g.CP(K,JS,96,f)}else f&&(f.client.mainAppWebInfo=(M=f.client.mainAppWebInfo)!=null?M:{},f.client.mainAppWebInfo.webDisplayMode=XH())}; wma=function(z,K){var f=g.CW("yt.embedded_player.embed_url");f&&(z?(K=Ze(z,sp,7)||new sp,BX(K,4,f),g.CP(z,sp,7,K)):K&&(K.thirdParty={embedUrl:f}))}; DzT=function(z,K){var f;if(g.Hg("web_log_memory_total_kbytes")&&((f=g.ZT.navigator)==null?0:f.deviceMemory)){var M;f=(M=g.ZT.navigator)==null?void 0:M.deviceMemory;z?mu(z,95,UH(f*1E6)):K&&(K.client.memoryTotalKbytes=""+f*1E6)}}; ySg=function(z,K,f){if(z.appInstallData)if(K){var M;f=(M=Ze(K,Wm,62))!=null?M:new Wm;BX(f,6,z.appInstallData);g.CP(K,Wm,62,f)}else f&&(f.client.configInfo=f.client.configInfo||{},f.client.configInfo.appInstallData=z.appInstallData)}; kEd=function(z,K){var f=$i8();f&&(z?vX(z,61,Rnd[f]):K&&(K.client.connectionType=f));g.Hg("web_log_effective_connection_type")&&(f=My8())&&(z?vX(z,94,SpI[f]):K&&(K.client.effectiveConnectionType=f))}; uPa=function(z,K,f){f=f===void 0?{}:f;var M={};g.zM("EOM_VISITOR_DATA")?M={"X-Goog-EOM-Visitor-Id":g.zM("EOM_VISITOR_DATA")}:M={"X-Goog-Visitor-Id":f.visitorData||g.zM("VISITOR_DATA","")};if(K&&K.includes("www.youtube-nocookie.com"))return M;K=f.OL||g.zM("AUTHORIZATION");K||(z?K="Bearer "+g.CW("gapi.auth.getToken")().access_token:(z=ona().Cr(kK),g.Hg("pageid_as_header_web")||delete z["X-Goog-PageId"],M=Object.assign({},M,z)));K&&(M.Authorization=K);return M}; hnq=function(z,K){var f=GES();if(f){var M=f.coldConfigData,p=f.coldHashData;f=f.hotHashData;if(z){var t;K=(t=Ze(z,Wm,62))!=null?t:new Wm;M=BX(K,1,M);BX(M,3,p).cn(f);g.CP(z,Wm,62,K)}else K&&(K.client.configInfo=K.client.configInfo||{},M&&(K.client.configInfo.coldConfigData=M),p&&(K.client.configInfo.coldHashData=p),f&&(K.client.configInfo.hotHashData=f))}}; hc=function(z,K){this.version=z;this.args=K}; as=function(z,K){this.topic=z;this.S=K}; Ss=function(z,K){var f=Rs();f&&f.publish.call(f,z.toString(),z,K)}; Plo=function(z){var K=L98,f=Rs();if(!f)return 0;var M=f.subscribe(K.toString(),function(p,t){var B=g.CW("ytPubsub2Pubsub2SkipSubKey");B&&B==M||(B=function(){if(ua[M])try{if(t&&K instanceof as&&K!=p)try{var v=K.S,I=t;if(!I.args||!I.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!v.tF){var G=new v;v.tF=G.version}var b=v.tF}catch(e){}if(!b||I.version!=b)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{t=Reflect.construct(v, g.L1(I.args))}catch(e){throw e.message="yt.pubsub2.Data.deserialize(): "+e.message,e;}}catch(e){throw e.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+K.toString()+": "+e.message,e;}z.call(window,t)}catch(e){g.fJ(e)}},ELg[K.toString()]?g.BJ()?g.rh.DD(B):g.Sg(B,0):B())}); ua[M]=!0;LR[K.toString()]||(LR[K.toString()]=[]);LR[K.toString()].push(M);return M}; qpv=function(){var z=Htq,K=Plo(function(f){z.apply(void 0,arguments);QO8(K)}); return K}; QO8=function(z){var K=Rs();K&&(typeof z==="number"&&(z=[z]),g.co(z,function(f){K.unsubscribeByKey(f);delete ua[f]}))}; Rs=function(){return g.CW("ytPubsub2Pubsub2Instance")}; mW=function(z,K,f){f=f===void 0?{sampleRate:.1}:f;Math.random()JSa||B=cSS&&(sn++,g.Hg("abandon_compression_after_N_slow_zips")?ck===g.Q4("compression_disable_point")&&sn>sOp&&(gD=!1):gD=!1);AS8(K);M.headers||(M.headers={});M.headers["Content-Encoding"]="gzip";M.postBody=z;M.postParams=void 0;p(f,M)}; jOd=function(z){var K=K===void 0?!1:K;var f=f===void 0?!1:f;var M=(0,g.X)(),p={startTime:M,ticks:{},infos:{}},t=K?g.CW("yt.logging.gzipForFetch",!1):!0;if(gD&&t){if(!z.body)return z;try{var B=f?z.body:typeof z.body==="string"?z.body:JSON.stringify(z.body);t=B;if(!f&&typeof B==="string"){var v=W95(B);if(v!=null&&(v>JSa||v=cSS)if(sn++,g.Hg("abandon_compression_after_N_slow_zips")||g.Hg("abandon_compression_after_N_slow_zips_lr")){K=sn/ck;var G=sOp/g.Q4("compression_disable_point");ck>0&&ck%g.Q4("compression_disable_point")===0&&K>=G&&(gD=!1)}else gD=!1;AS8(p)}}z.headers=Object.assign({},{"Content-Encoding":"gzip"},z.headers||{});z.body=t;return z}catch(b){return pJ(b),z}}else return z}; W95=function(z){try{return(new Blob(z.split(""))).size}catch(K){return pJ(K),null}}; AS8=function(z){g.Hg("gel_compression_csi_killswitch")||!g.Hg("log_gel_compression_latency")&&!g.Hg("log_gel_compression_latency_lr")||mW("gel_compression",z,{sampleRate:.1})}; js=function(z){var K=this;this.R0=this.S=!1;this.potentialEsfErrorCounter=this.Y=0;this.handleError=function(){}; this.f4=function(){}; this.now=Date.now;this.Yp=!1;this.dO={tDd:function(b){K.L3=b}, h8d:function(){K.N5()}, m4:function(){K.BS()}, oR:function(b){return g.n(function(e){return g.l(e,K.oR(b),0)})}, wb:function(b,e){return K.wb(b,e)}, S5:function(){K.S5()}}; var f;this.Wi=(f=z.Wi)!=null?f:100;var M;this.I2=(M=z.I2)!=null?M:1;var p;this.pZ=(p=z.pZ)!=null?p:2592E6;var t;this.Tk=(t=z.Tk)!=null?t:12E4;var B;this.vK=(B=z.vK)!=null?B:5E3;var v;this.L3=(v=z.L3)!=null?v:void 0;this.Pv=!!z.Pv;var I;this.J5=(I=z.J5)!=null?I:.1;var G;this.GL=(G=z.GL)!=null?G:10;z.handleError&&(this.handleError=z.handleError);z.f4&&(this.f4=z.f4);z.Yp&&(this.Yp=z.Yp);z.R0&&(this.R0=z.R0);this.sf=z.sf;this.rK=z.rK;this.XS=z.XS;this.jF=z.jF;this.sendFn=z.sendFn;this.DI=z.DI;this.bM= z.bM;Ac(this)&&(!this.sf||this.sf("networkless_logging"))&&Ypu(this)}; Ypu=function(z){Ac(z)&&!z.Yp&&(z.S=!0,z.Pv&&Math.random()<=z.J5&&z.XS.Go(z.L3),z.S5(),z.jF.d$()&&z.N5(),z.jF.listen(z.DI,z.N5.bind(z)),z.jF.listen(z.bM,z.BS.bind(z)))}; F9q=function(z,K){if(!Ac(z))throw Error("IndexedDB is not supported: updateRequestHandlers");var f=K.options.onError?K.options.onError:function(){}; K.options.onError=function(p,t){var B,v,I,G;return g.n(function(b){switch(b.Y){case 1:B=XmW(t);(v=xza(t))&&z.sf&&z.sf("web_enable_error_204")&&z.handleError(Error("Request failed due to compression"),K.url,t);if(!(z.sf&&z.sf("nwl_consider_error_code")&&B||z.sf&&!z.sf("nwl_consider_error_code")&&z.potentialEsfErrorCounter<=z.GL)){b.jV(2);break}if(!z.jF.Ju){b.jV(3);break}return g.l(b,z.jF.Ju(),3);case 3:if(z.jF.d$()){b.jV(2);break}f(p,t);if(!z.sf||!z.sf("nwl_consider_error_code")||((I=K)==null?void 0: I.id)===void 0){b.jV(6);break}return g.l(b,z.XS.U4(K.id,z.L3,!1),6);case 6:return b.return();case 2:if(z.sf&&z.sf("nwl_consider_error_code")&&!B&&z.potentialEsfErrorCounter>z.GL)return b.return();z.potentialEsfErrorCounter++;if(((G=K)==null?void 0:G.id)===void 0){b.jV(8);break}return K.sendCount=400&&z<=599?!1:!0}; xza=function(z){var K;z=z==null?void 0:(K=z.error)==null?void 0:K.code;return!(z!==400&&z!==415)}; Ot8=function(){if(X$)return X$();var z={};X$=g.pR("LogsDatabaseV2",{Nb:(z.LogsRequestsStore={qt:2},z),shared:!1,upgrade:function(K,f,M){f(2)&&g.JO(K,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});f(3);f(5)&&(M=M.objectStore("LogsRequestsStore"),M.S.indexNames.contains("newRequest")&&M.S.deleteIndex("newRequest"),g.AO(M,"newRequestV2",["status","interface","timestamp"]));f(7)&&gg(K,"sapisid");f(9)&&gg(K,"SWHealthLog")}, version:9});return X$()}; xK=function(z){return g.Zs(Ot8(),z)}; Zt5=function(z,K){var f,M,p,t;return g.n(function(B){if(B.Y==1)return f={startTime:(0,g.X)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.l(B,xK(K),2);if(B.Y!=3)return M=B.S,p=Object.assign({},z,{options:JSON.parse(JSON.stringify(z.options)),interface:g.zM("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.l(B,g.cJ(M,"LogsRequestsStore",p),3);t=B.S;f.ticks.tc=(0,g.X)();rSg(f);return B.return(t)})}; oLv=function(z,K){var f,M,p,t,B,v,I,G;return g.n(function(b){if(b.Y==1)return f={startTime:(0,g.X)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.l(b,xK(K),2);if(b.Y!=3)return M=b.S,p=g.zM("INNERTUBE_CONTEXT_CLIENT_NAME",0),t=[z,p,0],B=[z,p,(0,g.X)()],v=IDBKeyRange.bound(t,B),I="prev",g.Hg("use_fifo_for_networkless")&&(I="next"),G=void 0,g.l(b,g.iN(M,["LogsRequestsStore"],{mode:"readwrite",B1:!0},function(e){return g.xi(e.objectStore("LogsRequestsStore").index("newRequestV2"), {query:v,direction:I},function(w){w.getValue()&&(G=w.getValue(),z==="NEW"&&(G.status="QUEUED",w.update(G)))})}),3); f.ticks.tc=(0,g.X)();rSg(f);return b.return(G)})}; ClT=function(z,K){var f;return g.n(function(M){if(M.Y==1)return g.l(M,xK(K),2);f=M.S;return M.return(g.iN(f,["LogsRequestsStore"],{mode:"readwrite",B1:!0},function(p){var t=p.objectStore("LogsRequestsStore");return t.get(z).then(function(B){if(B)return B.status="QUEUED",g.dg(t,B).then(function(){return B})})}))})}; Teo=function(z,K,f,M){f=f===void 0?!0:f;var p;return g.n(function(t){if(t.Y==1)return g.l(t,xK(K),2);p=t.S;return t.return(g.iN(p,["LogsRequestsStore"],{mode:"readwrite",B1:!0},function(B){var v=B.objectStore("LogsRequestsStore");return v.get(z).then(function(I){return I?(I.status="NEW",f&&(I.sendCount+=1),M!==void 0&&(I.options.compress=M),g.dg(v,I).then(function(){return I})):g.ma.resolve(void 0)})}))})}; Uz8=function(z,K){var f;return g.n(function(M){if(M.Y==1)return g.l(M,xK(K),2);f=M.S;return M.return(f.delete("LogsRequestsStore",z))})}; z8S=function(z){var K,f;return g.n(function(M){if(M.Y==1)return g.l(M,xK(z),2);K=M.S;f=(0,g.X)()-2592E6;return g.l(M,g.iN(K,["LogsRequestsStore"],{mode:"readwrite",B1:!0},function(p){return g.jO(p.objectStore("LogsRequestsStore"),{},function(t){if(t.getValue().timestamp<=f)return t.delete().then(function(){return g.Yi(t)})})}),0)})}; Kwu=function(){g.n(function(z){return g.l(z,FQo("LogsDatabaseV2"),0)})}; rSg=function(z){g.Hg("nwl_csi_killswitch")||mW("networkless_performance",z,{sampleRate:1})}; fQg=function(z){return g.Zs($ug(),z)}; Mgp=function(z){var K,f;g.n(function(M){if(M.Y==1)return g.l(M,fQg(z),2);K=M.S;f=(0,g.X)()-2592E6;return g.l(M,g.iN(K,["SWHealthLog"],{mode:"readwrite",B1:!0},function(p){return g.jO(p.objectStore("SWHealthLog"),{},function(t){if(t.getValue().timestamp<=f)return t.delete().then(function(){return g.Yi(t)})})}),0)})}; pgv=function(z){var K;return g.n(function(f){if(f.Y==1)return g.l(f,fQg(z),2);K=f.S;return g.l(f,K.clear("SWHealthLog"),0)})}; g.F$=function(z,K,f,M,p,t,B){p=p===void 0?"":p;t=t===void 0?!1:t;B=B===void 0?!1:B;if(z)if(f&&!g.CJ())pJ(new g.UT("Legacy referrer-scrubbed ping detected")),z&&tgg(z,void 0,{scrubReferrer:!0});else if(p)lm(z,K,"POST",p,M);else if(g.zM("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||M||B)lm(z,K,"GET","",M,void 0,t,B);else{b:{try{c:{var v=new P6S({url:z});if(p_(v.S,BVq)==="1")var I=null;else{var G=p_(v.S,NVT);if(G==="1"){var b=p_(v.S,vBS);if(b)try{I={version:3,T$:decodeURIComponent(b),dF:tb(v.S,"act=1","ri=1", Heq(v))};break c}catch(D){}}I=G==="2"?{version:4,T$:tb(v.S,"dct=1","suid="+v.Y,""),dF:tb(v.S,"act=1","ri=1","suid="+v.Y)}:null}}if(I){var e=Pv(z);var w=!(!e||!e.endsWith("/aclk")||Wv(z,"ri")!=="1");break b}}catch(D){}w=!1}w?IQT(z)?(K&&K(),f=!0):f=!1:f=!1;f||tgg(z,K)}}; IQT=function(z,K){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(z,K===void 0?"":K))return!0}catch(f){}return!1}; tgg=function(z,K,f){f=f===void 0?{}:f;var M=new Image,p=""+GMW++;On[p]=M;M.onload=M.onerror=function(){K&&On[p]&&K();delete On[p]}; f.scrubReferrer&&(M.referrerPolicy="no-referrer");M.src=z}; bJI=function(z){var K;return((K=document.featurePolicy)==null?0:K.allowedFeatures().includes("attribution-reporting"))?z+"&nis=6":z+"&nis=5"}; Zh=function(){rD||(rD=new vJ("yt.offline"));return rD}; e8u=function(z){if(g.Hg("offline_error_handling")){var K=Zh().get("errors",!0)||{};K[z.message]={name:z.name,stack:z.stack};z.level&&(K[z.message].level=z.level);Zh().set("errors",K,2592E3,!0)}}; os=function(){this.S=new Map;this.Y=!1}; CR=function(){if(!os.instance){var z=g.CW("yt.networkRequestMonitor.instance")||new os;g.ov("yt.networkRequestMonitor.instance",z);os.instance=z}return os.instance}; T4=function(){g.kZ.call(this);var z=this;this.Y=!1;this.S=uuo();this.S.listen("networkstatus-online",function(){if(z.Y&&g.Hg("offline_error_handling")){var K=Zh().get("errors",!0);if(K){for(var f in K)if(K[f]){var M=new g.UT(f,"sent via offline_errors");M.name=K[f].name;M.stack=K[f].stack;M.level=K[f].level;g.fJ(M)}Zh().set("errors",{},2592E3,!0)}}})}; wgp=function(){if(!T4.instance){var z=g.CW("yt.networkStatusManager.instance")||new T4;g.ov("yt.networkStatusManager.instance",z);T4.instance=z}return T4.instance}; g.Un=function(z){z=z===void 0?{}:z;g.kZ.call(this);var K=this;this.S=this.J=0;this.Y=wgp();var f=g.CW("yt.networkStatusManager.instance.listen").bind(this.Y);f&&(z.rateLimit?(this.rateLimit=z.rateLimit,f("networkstatus-online",function(){Dug(K,"publicytnetworkstatus-online")}),f("networkstatus-offline",function(){Dug(K,"publicytnetworkstatus-offline")})):(f("networkstatus-online",function(){K.dispatchEvent("publicytnetworkstatus-online")}),f("networkstatus-offline",function(){K.dispatchEvent("publicytnetworkstatus-offline")})))}; Dug=function(z,K){z.rateLimit?z.S?(g.rh.Yg(z.J),z.J=g.rh.DD(function(){z.T!==K&&(z.dispatchEvent(K),z.T=K,z.S=(0,g.X)())},z.rateLimit-((0,g.X)()-z.S))):(z.dispatchEvent(K),z.T=K,z.S=(0,g.X)()):z.dispatchEvent(K)}; Kv=function(){var z=js.call;zW||(zW=new g.Un({lKE:!0,YM_:!0}));z.call(js,this,{XS:{Go:z8S,qA:Uz8,Cn:oLv,TE1:ClT,U4:Teo,set:Zt5},jF:zW,handleError:function(K,f,M){var p,t=M==null?void 0:(p=M.error)==null?void 0:p.code;if(t===400||t===415){var B;K=new g.UT(K.message,f,M==null?void 0:(B=M.error)==null?void 0:B.code);pJ(K,void 0,void 0,void 0,!0)}else g.fJ(K)}, f4:pJ,sendFn:yaI,now:g.X,G1:e8u,rK:g.tO(),DI:"publicytnetworkstatus-online",bM:"publicytnetworkstatus-offline",Pv:!0,J5:.1,GL:g.Q4("potential_esf_error_limit",10),sf:g.Hg,Yp:!(g.K8()&&g.EW(document.location.toString())!=="www.youtube-nocookie.com")});this.T=new g.ai;g.Hg("networkless_immediately_drop_all_requests")&&Kwu();Olp("LogsDatabaseV2")}; $h=function(){var z=g.CW("yt.networklessRequestController.instance");z||(z=new Kv,g.ov("yt.networklessRequestController.instance",z),g.Hg("networkless_logging")&&g.fR().then(function(K){z.L3=K;Ypu(z);z.T.resolve();z.Pv&&Math.random()<=z.J5&&z.L3&&Mgp(z.L3);g.Hg("networkless_immediately_drop_sw_health_store")&&kMp(z)})); return z}; kMp=function(z){var K;g.n(function(f){if(!z.L3)throw K=g.Ql("clearSWHealthLogsDb"),K;return f.return(pgv(z.L3).catch(function(M){z.handleError(M)}))})}; yaI=function(z,K,f,M){M=M===void 0?!1:M;K=g.Hg("web_fp_via_jspb")?Object.assign({},K):K;g.Hg("use_cfr_monitor")&&h8p(z,K);if(g.Hg("use_request_time_ms_header"))K.headers&&eg(z)&&(K.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.X)())));else{var p;if((p=K.postParams)==null?0:p.requestTimeMs)K.postParams.requestTimeMs=Math.round((0,g.X)())}f&&Object.keys(K).length===0?g.F$(z):K.compress?K.postBody?(typeof K.postBody!=="string"&&(K.postBody=JSON.stringify(K.postBody)),dD(z,K.postBody, K,g.V4,M)):dD(z,JSON.stringify(K.postParams),K,nJ,M):g.V4(z,K)}; fv=function(z,K){g.Hg("use_event_time_ms_header")&&eg(z)&&(K.headers||(K.headers={}),K.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.X)())));return K}; h8p=function(z,K){var f=K.onError?K.onError:function(){}; K.onError=function(p,t){CR().requestComplete(z,!1);f(p,t)}; var M=K.onSuccess?K.onSuccess:function(){}; K.onSuccess=function(p,t){CR().requestComplete(z,!0);M(p,t)}}; g.M1=function(z){this.config_=null;z?this.config_=z:btS()&&(this.config_=g.Dh())}; g.pv=function(z,K,f,M){function p(G){try{if((G===void 0?0:G)&&M.retry&&!M.networklessOptions.bypassNetworkless)t.method="POST",M.networklessOptions.writeThenSend?$h().writeThenSend(I,t):$h().sendAndWrite(I,t);else if(M.compress){var b=!M.networklessOptions.writeThenSend;if(t.postBody){var e=t.postBody;typeof e!=="string"&&(e=JSON.stringify(t.postBody));dD(I,e,t,g.V4,b)}else dD(I,JSON.stringify(t.postParams),t,nJ,b)}else g.Hg("web_all_payloads_via_jspb")?g.V4(I,t):nJ(I,t)}catch(w){if(w.name==="InvalidAccessError")pJ(Error("An extension is blocking network request.")); else throw w;}} !g.zM("VISITOR_DATA")&&K!=="visitor_id"&&Math.random()<.01&&pJ(new g.UT("Missing VISITOR_DATA when sending innertube request.",K,f,M));if(!z.isReady())throw z=new g.UT("innertube xhrclient not ready",K,f,M),g.fJ(z),z;var t={headers:M.headers||{},method:"POST",postParams:f,postBody:M.postBody,postBodyFormat:M.postBodyFormat||"JSON",onTimeout:function(){M.onTimeout()}, onFetchTimeout:M.onTimeout,onSuccess:function(G,b){if(M.onSuccess)M.onSuccess(b)}, onFetchSuccess:function(G){if(M.onSuccess)M.onSuccess(G)}, onError:function(G,b){if(M.onError)M.onError(b)}, onFetchError:function(G){if(M.onError)M.onError(G)}, timeout:M.timeout,withCredentials:!0,compress:M.compress};t.headers["Content-Type"]||(t.headers["Content-Type"]="application/json");f="";var B=z.config_.Fi;B&&(f=B);B=z.config_.Xi||!1;var v=uPa(B,f,M);Object.assign(t.headers,v);t.headers.Authorization&&!f&&B&&(t.headers["x-origin"]=window.location.origin);var I=GM(""+f+("/youtubei/"+z.config_.innertubeApiVersion+"/"+K),{alt:"json"});g.CW("ytNetworklessLoggingInitializationOptions")&&aQS.isNwlInitialized?cUo().then(function(G){p(G)}):p(!1)}; g.IP=function(z,K,f){var M=g.tY();if(M&&K){var p=M.subscribe(z,function(){function t(){BL[p]&&K.apply&&typeof K.apply=="function"&&K.apply(f||window,B)} var B=arguments;try{g.N1[z]?t():g.Sg(t,0)}catch(v){g.fJ(v)}},f); BL[p]=!0;vL[z]||(vL[z]=[]);vL[z].push(p);return p}return 0}; R8v=function(z){var K=g.IP("LOGGED_IN",function(f){z.apply(void 0,arguments);g.GW(K)})}; g.GW=function(z){var K=g.tY();K&&(typeof z==="number"?z=[z]:typeof z==="string"&&(z=[parseInt(z,10)]),g.co(z,function(f){K.unsubscribeByKey(f);delete BL[f]}))}; g.bi=function(z,K){var f=g.tY();return f?f.publish.apply(f,arguments):!1}; usS=function(z){var K=g.tY();if(K)if(K.clear(z),z)SJ5(z);else for(var f in vL)SJ5(f)}; g.tY=function(){return g.ZT.ytPubsubPubsubInstance}; SJ5=function(z){vL[z]&&(z=vL[z],g.co(z,function(K){BL[K]&&delete BL[K]}),z.length=0)}; g.eL=function(z,K,f){Lw5(z,K,f===void 0?null:f)}; Lw5=function(z,K,f){f=f===void 0?null:f;var M=EBv(z),p=document.getElementById(M),t=p&&Wi5(p),B=p&&!t;t?K&&K():(K&&(t=g.IP(M,K),K=""+g.M5(K),Pmq[K]=t),B||(p=HJ5(z,M,function(){Wi5(p)||(nnT(p),g.bi(M),g.Sg(function(){usS(M)},0))},f)))}; HJ5=function(z,K,f,M){M=M===void 0?null:M;var p=g.zi("SCRIPT");p.id=K;p.onload=function(){f&&setTimeout(f,0)}; p.onreadystatechange=function(){switch(p.readyState){case "loaded":case "complete":p.onload()}}; M&&p.setAttribute("nonce",M);g.v9(p,g.VY(z));z=document.getElementsByTagName("head")[0]||document.body;z.insertBefore(p,z.firstChild);return p}; EBv=function(z){var K=document.createElement("a");g.CL(K,z);z=K.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+az(z)}; wJ=function(z,K){if(z===K)z=!0;else if(Array.isArray(z)&&Array.isArray(K))z=g.gZ(z,K,wJ);else if(g.$f(z)&&g.$f(K))a:if(g.Z4(z).length!=g.Z4(K).length)z=!1;else{for(var f in z)if(!wJ(z[f],K[f])){z=!1;break a}z=!0}else z=!1;return z}; kh=function(z){var K=g.i8.apply(1,arguments);if(!Dp(z)||K.some(function(M){return!Dp(M)}))throw Error("Only objects may be merged."); K=g.a(K);for(var f=K.next();!f.done;f=K.next())y9(z,f.value)}; y9=function(z,K){for(var f in K)if(Dp(K[f])){if(f in z&&!Dp(z[f]))throw Error("Cannot merge an object into a non-object.");f in z||(z[f]={});y9(z[f],K[f])}else if(hY(K[f])){if(f in z&&!hY(z[f]))throw Error("Cannot merge an array into a non-array.");f in z||(z[f]=[]);Qw8(z[f],K[f])}else z[f]=K[f];return z}; Qw8=function(z,K){K=g.a(K);for(var f=K.next();!f.done;f=K.next())f=f.value,Dp(f)?z.push(y9({},f)):hY(f)?z.push(Qw8([],f)):z.push(f);return z}; Dp=function(z){return typeof z==="object"&&!Array.isArray(z)}; hY=function(z){return typeof z==="object"&&Array.isArray(z)}; aP=function(z){g.J.call(this);this.Y=z}; E2=function(z){aP.call(this,!0);this.S=z}; PL=function(z,K){g.J.call(this);var f=this;this.T=[];this.G=!1;this.Y=0;this.C=this.W=this.J=!1;this.Y1=null;var M=(0,g.p1)(z,K);this.S=new g.Kl(function(){return M(f.Y1)},300); g.d(this,this.S);this.N=this.D=Infinity}; qJS=function(z,K){if(!K)return!1;for(var f=0;f-1)throw Error("Deps cycle for: "+K);if(z.Y.has(K))return z.Y.get(K);if(!z.S.has(K)){if(M)return;throw Error("No provider for: "+K);}M=z.S.get(K);f.push(K);if(M.L1!==void 0)var p=M.L1;else if(M.lUE)p=M[dJ]?nBv(z,M[dJ],f):[],p=M.lUE.apply(M,g.P(p));else if(M.bD){p=M.bD;var t=p[dJ]?nBv(z,p[dJ],f):[];p=new (Function.prototype.bind.apply(p,[null].concat(g.P(t))))}else throw Error("Could not resolve providers for: "+K);f.pop();M.naE||z.Y.set(K,p); return p}; nBv=function(z,K,f){return K?K.map(function(M){return M instanceof JY?cL(z,M.key,f,!0):cL(z,M,f)}):[]}; AY=function(){s2||(s2=new Vg8);return s2}; Yh=function(){var z,K;return"h5vcc"in jL&&((z=jL.h5vcc.traceEvent)==null?0:z.traceBegin)&&((K=jL.h5vcc.traceEvent)==null?0:K.traceEnd)?1:"performance"in jL&&jL.performance.mark&&jL.performance.measure?2:0}; Xr=function(z){var K=Yh();switch(K){case 1:jL.h5vcc.traceEvent.traceBegin("YTLR",z);break;case 2:jL.performance.mark(z+"-start");break;case 0:break;default:Tl(K,"unknown trace type")}}; WwT=function(z){var K=Yh();switch(K){case 1:jL.h5vcc.traceEvent.traceEnd("YTLR",z);break;case 2:K=z+"-start";var f=z+"-end";jL.performance.mark(f);jL.performance.measure(z,K,f);break;case 0:break;default:Tl(K,"unknown trace type")}}; Jad=function(z){var K,f;(f=(K=window).onerror)==null||f.call(K,z.message,"",0,0,z)}; gBa=function(z){var K=this;var f=f===void 0?0:f;var M=M===void 0?g.tO():M;this.T=f;this.scheduler=M;this.Y=new g.ai;this.S=z;for(z={xF:0};z.xF=1E3?p():M>=z?wx||(wx=D6(function(){p();wx=void 0},0)):t-v>=10&&(Uug(K,f.tier),B.J=t)}; raq=function(z,K){if(z.endpoint==="log_event"){g.Hg("more_accurate_gel_parser")&&pQ().storePayload({isJspb:!1},z.payload);BM(z);var f=Ne(z),M=new Map;M.set(f,[z.payload]);var p=xu8(z.payload)||"";K&&(bc=new K);return new g.Vh(function(t,B){bc&&bc.isReady()?zzd(M,bc,t,B,{bypassNetworkless:!0},!0,I2(p)):t()})}}; Cm8=function(z,K,f){if(K.endpoint==="log_event"){BM(void 0,K);var M=Ne(K,!0),p=new Map;p.set(M,[kg(K.payload)]);f&&(bc=new f);return new g.Vh(function(t){bc&&bc.isReady()?K6g(p,bc,t,{bypassNetworkless:!0},!0,I2(z)):t()})}}; Ne=function(z,K){var f="";if(z.dangerousLogToVisitorSession)f="visitorOnlyApprovedKey";else if(z.cttAuthInfo){if(K===void 0?0:K){K=z.cttAuthInfo.token;f=z.cttAuthInfo;var M=new ZB;f.videoId?M.setVideoId(f.videoId):f.playlistId&&Yg(M,2,yz,$g(f.playlistId));kT[K]=M}else K=z.cttAuthInfo,f={},K.videoId?f.videoId=K.videoId:K.playlistId&&(f.playlistId=K.playlistId),hl[z.cttAuthInfo.token]=f;f=z.cttAuthInfo.token}return f}; Gu=function(z,K,f){z=z===void 0?{}:z;K=K===void 0?!1:K;new g.Vh(function(M,p){var t=e3(K,f),B=t.T;t.T=!1;a2(t.Y);a2(t.S);t.S=0;bc&&bc.isReady()?f===void 0&&g.Hg("enable_web_tiered_gel")?$mT(M,p,z,K,300,B):$mT(M,p,z,K,f,B):(Uug(K,f),M())})}; $mT=function(z,K,f,M,p,t){var B=bc;f=f===void 0?{}:f;M=M===void 0?!1:M;p=p===void 0?200:p;t=t===void 0?!1:t;var v=new Map,I=new Map,G={isJspb:M,cttAuthInfo:void 0,tier:p},b={isJspb:M,cttAuthInfo:void 0};if(M){K=g.a(Object.keys(vM));for(p=K.next();!p.done;p=K.next())p=p.value,I=g.Hg("enable_web_tiered_gel")?pQ().smartExtractMatchingEntries({keys:[G,b],sizeLimit:1E3}):pQ().extractMatchingEntries({isJspb:!0,cttAuthInfo:p}),I.length>0&&v.set(p,I),(g.Hg("web_fp_via_jspb_and_json")&&f.writeThenSend||!g.Hg("web_fp_via_jspb_and_json"))&& delete vM[p];K6g(v,B,z,f,!1,t)}else{v=g.a(Object.keys(vM));for(G=v.next();!G.done;G=v.next())G=G.value,b=g.Hg("enable_web_tiered_gel")?pQ().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:G,tier:p},{isJspb:!1,cttAuthInfo:G}],sizeLimit:1E3}):pQ().extractMatchingEntries({isJspb:!1,cttAuthInfo:G}),b.length>0&&I.set(G,b),(g.Hg("web_fp_via_jspb_and_json")&&f.writeThenSend||!g.Hg("web_fp_via_jspb_and_json"))&&delete vM[G];zzd(I,B,z,K,f,!1,t)}}; Uug=function(z,K){function f(){Gu({writeThenSend:!0},z,K)} z=z===void 0?!1:z;K=K===void 0?200:K;var M=e3(z,K),p=M===fF8||M===Mpv?5E3:pKa;g.Hg("web_gel_timeout_cap")&&!M.S&&(p=D6(function(){f()},p),M.S=p); a2(M.Y);p=g.zM("LOGGING_BATCH_TIMEOUT",g.Q4("web_gel_debounce_ms",1E4));g.Hg("shorten_initial_gel_batch_timeout")&&R2&&(p=tpo);p=D6(function(){g.Q4("gel_min_batch_size")>0?pQ().getSequenceCount({cttAuthInfo:void 0,isJspb:z,tier:K})>=B0I&&f():f()},p); M.Y=p}; zzd=function(z,K,f,M,p,t,B){p=p===void 0?{}:p;var v=Math.round((0,g.X)()),I=z.size,G=N0S(B);z=g.a(z);var b=z.next();for(B={};!b.done;B={Vq:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,Pk:void 0,aS:void 0},b=z.next()){var e=g.a(b.value);b=e.next().value;e=e.next().value;B.batchRequest=g.fL({context:g.y5(K.config_||g.Dh())});if(!g.K1(e)&&!g.Hg("throw_err_when_logevent_malformed_killswitch")){M();break}B.batchRequest.events=e;(e=hl[b])&&vaS(B.batchRequest,b,e);delete hl[b];B.dangerousLogToVisitorSession= b==="visitorOnlyApprovedKey";IFu(B.batchRequest,v,B.dangerousLogToVisitorSession);GCS(p);B.Pk=function(w){g.Hg("start_client_gcf")&&g.rh.DD(function(){return g.n(function(D){return g.l(D,b3p(w),0)})}); I--;I||f()}; B.Vq=0;B.aS=function(w){return function(){w.Vq++;if(p.bypassNetworkless&&w.Vq===1)try{g.pv(K,G,w.batchRequest,S3({writeThenSend:!0},w.dangerousLogToVisitorSession,w.Pk,w.aS,t)),R2=!1}catch(D){g.fJ(D),M()}I--;I||f()}}(B); try{g.pv(K,G,B.batchRequest,S3(p,B.dangerousLogToVisitorSession,B.Pk,B.aS,t)),R2=!1}catch(w){g.fJ(w),M()}}}; K6g=function(z,K,f,M,p,t){M=M===void 0?{}:M;var B=Math.round((0,g.X)()),v={value:z.size},I=new Map([].concat(g.P(z)));I=g.a(I);for(var G=I.next();!G.done;G=I.next()){var b=g.a(G.value).next().value,e=z.get(b);G=new sia;var w=K.config_||g.Dh(),D=new YL,y=new ge;BX(y,1,w.sC);BX(y,2,w.b$);vX(y,16,w.ix);BX(y,17,w.innertubeContextClientVersion);if(w.gi){var R=w.gi,S=new Wm;R.coldConfigData&&BX(S,1,R.coldConfigData);R.appInstallData&&BX(S,6,R.appInstallData);R.coldHashData&&BX(S,3,R.coldHashData);R.hotHashData&& S.cn(R.hotHashData);g.CP(y,Wm,62,S)}(R=g.ZT.devicePixelRatio)&&R!=1&&mu(y,65,jG(R));R=qu();R!==""&&BX(y,54,R);R=mw();if(R.length>0){S=new cm;for(var E=0;E65535&&(z=1);Ct("BATCH_CLIENT_COUNTER",z);return z}; vaS=function(z,K,f){if(f.videoId)var M="VIDEO";else if(f.playlistId)M="PLAYLIST";else return;z.credentialTransferTokenTargetId=f;z.context=z.context||{};z.context.user=z.context.user||{};z.context.user.credentialTransferTokens=[{token:K,scope:M}]}; BM=function(z,K){var f=g.CW("yt.logging.transport.enableScrapingForTest"),M=Pg("il_payload_scraping");M=(M!==void 0?String(M):"")==="enable_il_payload_scraping";if(!f)if(M)Em=[],g.ov("yt.logging.transport.enableScrapingForTest",!0),g.ov("yt.logging.transport.scrapedPayloadsForTesting",Em),g.ov("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.ov("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.ov("yt.logging.transport.scrapeClientEvent",!0);else return;f=g.CW("yt.logging.transport.scrapedPayloadsForTesting");M=g.CW("yt.logging.transport.payloadToScrape");K&&(K=K.payload,(K=g.CW("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(K)())&&f.push(K));K=g.CW("yt.logging.transport.scrapeClientEvent");if(M&&M.length>=1)for(var p=0;p0&&W6W(z,K,t)}else W6W(z,K)}; W6W=function(z,K,f){z=JVu(z);K=K?g.l6(K):"";f=f||5;Nm()&&g.jg(z,K,f)}; JVu=function(z){for(var K=g.a(gaS),f=K.next();!f.done;f=K.next())z=Jo(z,f.value);return"ST-"+az(z).toString(36)}; i35=function(z){if(z.name==="JavaException")return!0;z=z.stack;return z.includes("chrome://")||z.includes("chrome-extension://")||z.includes("moz-extension://")}; dmg=function(){this.HX=[];this.w7=[]}; gx=function(){if(!Jl){var z=Jl=new dmg;z.w7.length=0;z.HX.length=0;cVa(z,sZ8)}return Jl}; cVa=function(z,K){K.w7&&z.w7.push.apply(z.w7,K.w7);K.HX&&z.HX.push.apply(z.HX,K.HX)}; AVo=function(z){function K(){return z.charCodeAt(M++)} var f=z.length,M=0;do{var p=ic(K);if(p===Infinity)break;var t=p>>3;switch(p&7){case 0:p=ic(K);if(t===2)return p;break;case 1:if(t===2)return;M+=8;break;case 2:p=ic(K);if(t===2)return z.substr(M,p);M+=p;break;case 5:if(t===2)return;M+=4;break;default:return}}while(M500));M++);M=p}else if(typeof z==="object")for(p in z){if(z[p]){var t=p;var B=z[p],v=K,I=f;t=typeof B!=="string"||t!=="clickTrackingParams"&&t!=="trackingParams"?0:(B=AVo(atob(B.replace(/-/g,"+").replace(/_/g,"/"))))?dx(t+".ve",B,v,I):0;M+=t;M+=dx(p,z[p],K,f);if(M>500)break}}else f[K]=cM(z),M+=f[K].length;else f[K]=cM(z),M+=f[K].length;return M}; dx=function(z,K,f,M){f+="."+z;z=cM(K);M[f]=z;return f.length+z.length}; cM=function(z){try{return(typeof z==="string"?z:String(JSON.stringify(z))).substr(0,500)}catch(K){return"unable to serialize "+typeof z+" ("+K.message+")"}}; wg=function(z){g.sm(z)}; g.Al=function(z){g.sm(z,"WARNING")}; g.sm=function(z,K){var f=f===void 0?{}:f;f.name=g.zM("INNERTUBE_CONTEXT_CLIENT_NAME",1);f.version=g.zM("INNERTUBE_CONTEXT_CLIENT_VERSION");K=K===void 0?"ERROR":K;var M=!1;K=K===void 0?"ERROR":K;M=M===void 0?!1:M;if(z){z.hasOwnProperty("level")&&z.level&&(K=z.level);if(g.Hg("console_log_js_exceptions")){var p=[];p.push("Name: "+z.name);p.push("Message: "+z.message);z.hasOwnProperty("params")&&p.push("Error Params: "+JSON.stringify(z.params));z.hasOwnProperty("args")&&p.push("Error args: "+JSON.stringify(z.args)); p.push("File name: "+z.fileName);p.push("Stacktrace: "+z.stack);window.console.log(p.join("\n"),z)}if(!(YTq>=5)){p=[];for(var t=g.a(XKS),B=t.next();!B.done;B=t.next()){B=B.value;try{B()&&p.push(B())}catch(R){}}p=[].concat(g.P(xmS),g.P(p));var v=MSp(z);t=v.message||"Unknown Error";B=v.name||"UnknownError";var I=v.stack||z.Y||"Not available";if(I.startsWith(B+": "+t)){var G=I.split("\n");G.shift();I=G.join("\n")}G=v.lineNumber||"Not available";v=v.fileName||"Not available";var b=0;if(z.hasOwnProperty("args")&& z.args&&z.args.length)for(var e=0;e=500);e++);else if(z.hasOwnProperty("params")&&z.params){var w=z.params;if(typeof z.params==="object")for(e in w){if(w[e]){var D="params."+e,y=cM(w[e]);f[D]=y;b+=D.length+y.length;if(b>500)break}}else f.params=cM(w)}if(p.length)for(e=0;e=500);e++);navigator.vendor&&!f.hasOwnProperty("vendor")&&(f["device.vendor"]=navigator.vendor);f={message:t,name:B,lineNumber:G, fileName:v,stack:I,params:f,sampleWeight:1};e=Number(z.columnNumber);isNaN(e)||(f.lineNumber=f.lineNumber+":"+e);if(z.level==="IGNORED")z=0;else a:{z=gx();e=g.a(z.w7);for(p=e.next();!p.done;p=e.next())if(p=p.value,f.message&&f.message.match(p.r7)){z=p.weight;break a}z=g.a(z.HX);for(e=z.next();!e.done;e=z.next())if(e=e.value,e.callback(f)){z=e.weight;break a}z=1}f.sampleWeight=z;z=g.a(F6g);for(e=z.next();!e.done;e=z.next())if(e=e.value,e.hm[f.name])for(t=g.a(e.hm[f.name]),p=t.next();!p.done;p=t.next())if(B= p.value,p=f.message.match(B.Xa)){f.params["params.error.original"]=p[0];t=B.groups;B={};for(G=0;G1E3&&g.Al(new g.UT("IL Attach cache exceeded limit"))}v= Kc(f,K);o2.has(v)?$l(f,K):Tu.set(v,!0)}}M=M.filter(function(b){b.csn!==K?(b.csn=K,b=!0):b=!1;return b}); f={csn:K,parentVe:f.getAsJson(),childVes:g.UZ(M,function(b){return b.getAsJson()})}; K==="UNDEFINED_CSN"?fc("visualElementAttached",t,f):z?HM("visualElementAttached",f,z,t):g.Ds("visualElementAttached",f,t)}; Bga=function(z,K,f,M,p){Mb(f,K);M=Z6({cttAuthInfo:nQ(K)||void 0},K);f={csn:K,ve:f.getAsJson(),eventType:1};p&&(f.clientData=p);K==="UNDEFINED_CSN"?fc("visualElementShown",M,f):z?HM("visualElementShown",f,z,M):g.Ds("visualElementShown",f,M)}; Ngu=function(z,K,f,M){var p=(M=M===void 0?!1:M)?16:8;M=Z6({cttAuthInfo:nQ(K)||void 0,endOfSequence:M},K);f={csn:K,ve:f.getAsJson(),eventType:p};K==="UNDEFINED_CSN"?fc("visualElementHidden",M,f):z?HM("visualElementHidden",f,z,M):g.Ds("visualElementHidden",f,M)}; tt=function(z,K,f,M,p){pc(z,K,f,void 0,M,p)}; pc=function(z,K,f,M,p){Mb(f,K);M=M||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var t=Z6({cttAuthInfo:nQ(K)||void 0},K);f={csn:K,ve:f.getAsJson(),gestureType:M};p&&(f.clientData=p);K==="UNDEFINED_CSN"?fc("visualElementGestured",t,f):z?HM("visualElementGestured",f,z,t):g.Ds("visualElementGestured",f,t)}; via=function(){var z=Q9(16);for(var K=[],f=0;f0&&f.push(g.zi("BR"));f.push(g.Ks(t))}):f.push(g.Ks(M))}return f}; aT=function(z,K,f,M){if(f==="child"){g.fs(K);var p;M===void 0?p=void 0:p=!Array.isArray(M)||M&&typeof M.j==="string"?[M]:M;f=GNg(z,p);f=g.a(f);for(z=f.next();!z.done;z=f.next())K.appendChild(z.value)}else f==="style"?g.H6(K,"cssText",M?M:""):M===null||M===void 0?K.removeAttribute(f):(z=M.toString(),f==="href"&&(z=g.xo(g.rr(z))),K.setAttribute(f,z))}; g.F=function(z){g.kl.call(this,z);this.l8=!0;this.C=!1;this.listeners=[]}; g.RT=function(z){g.F.call(this,z);this.b_=new g.Dv;g.d(this,this.b_)}; Sj=function(z,K,f,M,p,t,B){B=B===void 0?null:B;g.RT.call(this,K);this.api=z;this.macros={};this.componentType=f;this.G=this.D=null;this.SE=B;this.layoutId=M;this.interactionLoggingClientData=p;this.Zq=t;this.QE=null;this.Gz=new E2(this.element);g.d(this,this.Gz);this.oa=this.X(this.element,"click",this.onClick);this.Hx=[];this.nH=new PL(this.onClick,this);g.d(this,this.nH);this.TP=!1;this.Bx=this.Y1=null}; un=function(z,K){z=z===void 0?null:z;K=K===void 0?null:K;if(z==null)return g.Al(Error("Got null or undefined adText object")),"";var f=g.hR(z.text);if(!z.isTemplated)return f;if(K==null)return g.Al(Error("Missing required parameters for a templated message")),f;z=g.a(Object.entries(K));for(K=z.next();!K.done;K=z.next()){var M=g.a(K.value);K=M.next().value;M=M.next().value;f=f.replace("{"+K+"}",M)}return f}; b8o=function(z){z=z===void 0?null:z;return z!=null&&(z=z.thumbnail,z!=null&&z.thumbnails!=null&&z.thumbnails.length!=0&&z.thumbnails[0].url!=null)?g.hR(z.thumbnails[0].url):""}; eWu=function(z){z=z===void 0?null:z;return z!=null&&(z=z.thumbnail,z!=null&&z.thumbnails!=null&&z.thumbnails.length!=0&&z.thumbnails[0].width!=null&&z.thumbnails[0].height!=null)?new g.W9(z.thumbnails[0].width||0,z.thumbnails[0].height||0):new g.W9(0,0)}; g.Lc=function(z){if(z.simpleText)return z.simpleText;if(z.runs){var K=[];z=g.a(z.runs);for(var f=z.next();!f.done;f=z.next())f=f.value,f.text&&K.push(f.text);return K.join("")}return""}; g.Ea=function(z){if(z.simpleText)return z=document.createTextNode(z.simpleText),z;var K=[];if(z.runs)for(var f=0;f1){for(var K=[z[0]],f=1;f0&&(this.S=new g.Kl(this.Vx,K,this),g.d(this,this.S));this.C=new g.Kl(this.Vx,f,this);g.d(this,this.C);this.D=mXo(this.Y,p,1,M);g.d(this,this.D);this.G=mXo(this.Y,0,M,1);g.d(this,this.G);this.J=new WK;g.d(this,this.J)}; yD=function(z,K,f){this.Y=z;this.isAsync=K;this.S=f}; Msv=function(z){switch(z){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:Tl(z,"unknown result type")}}; pkg=function(z,K){var f=1;z.isTrusted===!1&&(f=0);Ct("ISDSTAT",f);kk(f,"i.s_",{triggerContext:"sk",metadata:K});return f}; tsp=function(z,K){var f=[];K?K.isTrusted===!0?f.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):K.isTrusted===!1?f.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):f.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):f.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");kk(0,"a.s_",{metadata:z,states:f});Ct("ASDSTAT",0)}; kk=function(z,K,f){K=BDI[K];var M,p,t={detected:z===0,source:""+K.Y+((M=f.triggerContext)!=null?M:"")+((p=f.YY)!=null?p:""),detectionStates:f.states,durationMs:f.Ah};f.metadata&&(t.contentCpn=f.metadata.contentCpn,t.adCpn=f.metadata.adCpn);g.Ds("biscottiBasedDetection",t);K.S!==void 0&&(f=Number(g.zM("CATSTAT",0)),K.S!==void 0?(K=K.S,z=Msv(z),z=f&~(3<0}; E$=function(z,K,f,M,p,t){BP.call(this,z,{j:"div",K:"ytp-ad-skip-button-slot"},"skip-button",K,f,M,p);var B=this;this.l_=null;this.eV=!1;this.Xc=t;this.W=this.api.Z().experiments.sf("enable_modern_skip_button_on_web");this.VE=!1;this.J=new g.RT({j:"span",Wx:["ytp-ad-skip-button-container"]});this.W&&this.J.element.classList.add("ytp-ad-skip-button-container-detached");g.d(this,this.J);this.J.hL(this.element);this.Y=this.T=null;this.rE=new g.I3(this.J,500,!1,100,function(){return B.hide()}); g.d(this,this.rE);this.vx=new DW(this.J.element,15E3,5E3,.5,.5,this.W);g.d(this,this.vx);this.hide()}; vKo=function(z){z=z.l_&&z.l_.adRendererCommands;return(z&&z.clickCommand&&g.A(z.clickCommand,g.PP)&&g.A(z.clickCommand,g.PP).commands||[]).some(function(K){return K.adLifecycleCommand?NDS(K.adLifecycleCommand):!1})}; NDS=function(z){return z.action==="END_LINEAR_AD"||z.action==="END_LINEAR_AD_PLACEMENT"}; HP=function(z,K,f,M,p,t){BP.call(this,z,{j:"div",K:"ytp-ad-skip-ad-slot"},"skip-ad",K,f,M,p);this.l_=t;this.J=!1;this.W=0;this.T=this.Y=null;this.hide()}; IhS=function(z,K){z.J||(z.J=!0,z.Y&&(K?z.Y.l_.hide():z.Y.hide()),K?(z=z.T,z.rE.show(),z.show()):z.T.show())}; QD=function(z,K,f,M){jj.call(this,z,K,f,M,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; qS=function(z,K,f,M,p,t,B){t=t===void 0?!1:t;B=B===void 0?!1:B;Sj.call(this,z,{j:"span",K:"ytp-ad-simple-ad-badge"},"simple-ad-badge",K,f,M);this.T=p;this.S=this.dE("ytp-ad-simple-ad-badge");(this.Y=t)&&this.S.classList.add("ytp-ad-simple-ad-badge--clean-player");B&&this.S.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; mc=function(z,K,f,M,p){p=p===void 0?!1:p;wM.call(this,"player-overlay",z,{},K,M);this.videoAdDurationSeconds=f;this.interactionLoggingClientData=M;this.v_=p}; ls=function(z,K){g.Dv.call(this);this.api=z;this.durationMs=K;this.S=null;this.Nv=new WK(this);g.d(this,this.Nv);this.Y=G4S;this.Nv.X(this.api,"presentingplayerstatechange",this.xM);this.S=this.Nv.X(this.api,"onAdPlaybackProgress",this.C6)}; VD=function(z){g.Dv.call(this);this.S=!1;this.Ae=0;this.Nv=new WK(this);g.d(this,this.Nv);this.durationMs=z;this.QR=new g.YZ(100);g.d(this,this.QR);this.Nv.X(this.QR,"tick",this.C6);this.Y={seekableStart:0,seekableEnd:z/1E3,current:0};this.start()}; g.nd=function(z,K){var f=Math.abs(Math.floor(z)),M=Math.floor(f/86400),p=Math.floor(f%86400/3600),t=Math.floor(f%3600/60);f=Math.floor(f%60);if(K){K="";M>0&&(K+=" "+M+" Ng\u00e0y");if(M>0||p>0)K+=" "+p+" Gi\u1edd";K+=" "+t+" Ph\u00fat";K+=" "+f+" Gi\u00e2y";M=K.trim()}else{K="";M>0&&(K+=M+":",p<10&&(K+="0"));if(M>0||p>0)K+=p+":",t<10&&(K+="0");K+=t+":";f<10&&(K+="0");M=K+f}return z>=0?M:"-"+M}; g.WP=function(z){return(!("button"in z)||typeof z.button!=="number"||z.button===0)&&!("shiftKey"in z&&z.shiftKey)&&!("altKey"in z&&z.altKey)&&!("metaKey"in z&&z.metaKey)&&!("ctrlKey"in z&&z.ctrlKey)}; JP=function(z,K,f,M,p,t,B){BP.call(this,z,{j:"span",K:B?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",K,f,M,p);this.videoAdDurationSeconds=t;this.Y=null;B&&this.api.Z().Y&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),TN&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; is=function(z,K,f,M){pd.call(this,z,K,f,M,"ytp-video-ad-top-bar-title","ad-title")}; dc=function(z){this.content=z.content;if(z.commandRuns){z=g.a(z.commandRuns);for(var K=z.next();!K.done;K=z.next())K=K.value,this.loggingDirectives=g.A(K,bRu),K.onTap&&(this.interaction={onTap:K.onTap})}}; cP=function(z,K,f,M){Sj.call(this,z,{j:"div",K:"ad-simple-attributed-string"},"ad-simple-attributed-string",K,f,M);this.hide()}; s$=function(z,K,f,M,p){Sj.call(this,z,{j:"span",K:p?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",K,f,M);this.Y=p;this.adBadgeText=new cP(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq);this.adBadgeText.hL(this.element);g.d(this,this.adBadgeText);p?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),TN&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; AP=function(z,K,f,M){Sj.call(this,z,{j:"span",K:"ytp-ad-pod-index"},"ad-pod-index",K,f,M);this.api.Z().Y&&(this.element.classList.add("ytp-ad-pod-index--mweb"),TN&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; j$=function(z,K,f,M){Sj.call(this,z,{j:"div",K:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",K,f,M);this.hide()}; Yk=function(z,K){this.Y=z;this.S=K}; ex8=function(z,K){return z.Y+K*(z.S-z.Y)}; XN=function(z,K,f){return z.S-z.Y?g.qt((K-z.Y)/(z.S-z.Y),0,1):f!=null?f:Infinity}; xk=function(z,K,f,M){M=M===void 0?!1:M;g.RT.call(this,{j:"div",K:"ytp-ad-persistent-progress-bar-container",L:[{j:"div",K:"ytp-ad-persistent-progress-bar"}]});this.api=z;this.Y=K;this.T=f;M&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.d(this,this.Y);this.progressBar=this.dE("ytp-ad-persistent-progress-bar");this.S=-1;this.X(z,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; FN=function(z,K,f,M,p,t){Sj.call(this,z,{j:"div",K:"ytp-ad-player-overlay",L:[{j:"div",K:"ytp-ad-player-overlay-flyout-cta"},{j:"div",K:"ytp-ad-player-overlay-instream-info"},{j:"div",K:"ytp-ad-player-overlay-skip-or-preview"},{j:"div",K:"ytp-ad-player-overlay-progress-bar"},{j:"div",K:"ytp-ad-player-overlay-instream-user-sentiment"},{j:"div",K:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",K,f,M);this.N=t;this.W=this.dE("ytp-ad-player-overlay-flyout-cta");this.W.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.S=this.dE("ytp-ad-player-overlay-instream-info");this.J=null;wkW(this)&&(z=Us("div"),g.ey(z,"ytp-ad-player-overlay-top-bar-gradients"),K=this.S,K.parentNode&&K.parentNode.insertBefore(z,K),(K=this.api.getVideoData(2))&&K.isListed&&K.title&&(f=new is(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq),f.hL(z),f.init(ej("ad-title"),{text:K.title},this.macros),g.d(this,f)),this.J=z);this.T=null;this.Px=this.dE("ytp-ad-player-overlay-skip-or-preview");this.vx=this.dE("ytp-ad-player-overlay-progress-bar"); this.eV=this.dE("ytp-ad-player-overlay-instream-user-sentiment");this.l_=this.dE("ytp-ad-player-overlay-ad-disclosure-banner");this.Y=p;g.d(this,this.Y);this.hide()}; wkW=function(z){z=z.api.Z();return g.O$(z)&&z.Y}; g.rc=function(z){z&=16777215;var K=[(z&16711680)>>16,(z&65280)>>8,z&255];z=K[0];var f=K[1];K=K[2];z=Number(z);f=Number(f);K=Number(K);if(z!=(z&255)||f!=(f&255)||K!=(K&255))throw Error('"('+z+","+f+","+K+'") is not a valid RGB color');f=z<<16|f<<8|K;return z<16?"#"+(16777216|f).toString(16).slice(1):"#"+f.toString(16)}; ZW=function(z){this.S=new ix(z)}; DJu=function(){var z=!1;try{z=!!window.sessionStorage.getItem("session_logininfo")}catch(K){z=!0}return(g.zM("INNERTUBE_CLIENT_NAME")==="WEB"||g.zM("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&z}; o3=function(){var z=z===void 0?!0:z;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");Ct("LOGIN_INFO","");z&&window.sessionStorage.setItem("from_switch_account","1");z=!0;z=z===void 0?!1:z;var K,f=ycS;f||(f=document.querySelector("#persist_identity"));if(K=f){var M=K.src?(new URL(K.src)).origin:"*";if(z){var p;(p=K.contentWindow)==null||p.postMessage({action:"clear"},M)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var t=window.sessionStorage.getItem("session_logininfo");if(t){var B;(B=K.contentWindow)==null||B.postMessage({loginInfo:t},M)}}}}catch(v){}}; Cd=function(z){z&&(z.startsWith("https://accounts.google.com/AddSession")?o3():z.startsWith("https://accounts.google.com/ServiceLogin")?o3():z.startsWith("https://myaccount.google.com")&&g.hy(z).Y.endsWith("/youtubeoptions")&&o3());if(g.zM("LOGGED_IN",!0)&&DJu()){var K=g.zM("VALID_SESSION_TEMPDATA_DOMAINS",[]);var f=g.EW(window.location.href);f&&K.push(f);f=g.EW(z);g.h2(K,f)||!f&&yA(z,"/")?(K=Hv(z),(K=A$8(K))?(K=JVu(K),K=(K=g.YB(K)||null)?Nu(K):{}):K=null):K=null;K==null&&(K={});f=K;var M=void 0; DJu()?(M||(M=g.zM("LOGIN_INFO")),M?(f.session_logininfo=M,f=!0):f=!1):f=!1;f&&WM(z,K)}}; g.k4S=function(z){var K=K===void 0?{}:K;var f=f===void 0?"":f;var M=M===void 0?window:M;z=g.V8(z,K);Cd(z);f=g.rr(z+f);M=M.location;f=o9(f);f!==void 0&&(M.href=f)}; g.Ts=function(z,K,f){K=K===void 0?{}:K;f=f===void 0?!1:f;var M=g.zM("EVENT_ID");M&&(K.ei||(K.ei=M));K&&WM(z,K);f||(Cd(z),g.k4S(z))}; g.U$=function(z,K,f,M,p){p=p===void 0?!1:p;f&&WM(z,f);f=g.rr(z);var t=g.xo(f);z!=t&&pJ(Error("Unsafe window.open URL: "+z));z=t;K=K||az(z).toString(36);try{if(p)return p=z,p=bJI(p),Cd(p),g.$7(window,p,K,"attributionsrc")}catch(B){g.fJ(B)}Cd(z);return g.$7(window,f,K,M)}; hxu=function(z){z9=z}; ahS=function(z){Kp=z}; RxI=function(z){$5=z}; u$a=function(){SnI=$5=Kp=z9=null}; EKv=function(){var z=z===void 0?window.location.href:z;if(g.Hg("kevlar_disable_theme_param"))return null;var K=Pv(z);if(g.Hg("enable_dark_theme_only_on_shorts")&&K!=null&&K.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var f=g.Iw(z).theme;return LWS.get(f)||null}catch(M){}return null}; fp=function(){this.S={};if(this.Y=DcT()){var z=g.YB("CONSISTENCY");z&&Pa8(this,{encryptedTokenJarContents:z})}}; Pa8=function(z,K){if(K.encryptedTokenJarContents&&(z.S[K.encryptedTokenJarContents]=K,typeof K.expirationSeconds==="string")){var f=Number(K.expirationSeconds);setTimeout(function(){delete z.S[K.encryptedTokenJarContents]},f*1E3); z.Y&&g.jg("CONSISTENCY",K.encryptedTokenJarContents,f,void 0,!0)}}; pp=function(){this.Y=-1;var z=g.zM("LOCATION_PLAYABILITY_TOKEN");g.zM("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=MP(this))&&(z=this.localStorage.get("yt-location-playability-token"));z&&(this.locationPlayabilityToken=z,this.S=void 0)}; MP=function(z){return z.localStorage===void 0?new vJ("yt-client-location"):z.localStorage}; g.tE=function(z,K,f){K=K===void 0?!1:K;f=f===void 0?!1:f;var M=g.zM("INNERTUBE_CONTEXT");if(!M)return g.sm(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};M=g.fL(M);g.Hg("web_no_tracking_params_in_shell_killswitch")||delete M.clickTracking;M.client||(M.client={});var p=M.client;p.clientName==="MWEB"&&p.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(p.clientFormFactor=g.zM("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");p.screenWidthPoints=window.innerWidth;p.screenHeightPoints= window.innerHeight;p.screenPixelDensity=Math.round(window.devicePixelRatio||1);p.screenDensityFloat=window.devicePixelRatio||1;p.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var t=t===void 0?!1:t;g.OT();var B="USER_INTERFACE_THEME_LIGHT";g.r0(0,165)?B="USER_INTERFACE_THEME_DARK":g.r0(0,174)?B="USER_INTERFACE_THEME_LIGHT":!g.Hg("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (B="USER_INTERFACE_THEME_DARK");t=t?B:EKv()||B;p.userInterfaceTheme=t;if(!K){if(t=$i8())p.connectionType=t;g.Hg("web_log_effective_connection_type")&&(t=My8())&&(M.client.effectiveConnectionType=t)}var v;if(g.Hg("web_log_memory_total_kbytes")&&((v=g.ZT.navigator)==null?0:v.deviceMemory)){var I;v=(I=g.ZT.navigator)==null?void 0:I.deviceMemory;M.client.memoryTotalKbytes=""+v*1E6}g.Hg("web_gcf_hashes_innertube")&&(t=GES())&&(I=t.coldConfigData,v=t.coldHashData,t=t.hotHashData,M.client.configInfo=M.client.configInfo|| {},I&&(M.client.configInfo.coldConfigData=I),v&&(M.client.configInfo.coldHashData=v),t&&(M.client.configInfo.hotHashData=t));I=g.Iw(g.ZT.location.href);!g.Hg("web_populate_internal_geo_killswitch")&&I.internalcountrycode&&(p.internalGeo=I.internalcountrycode);p.clientName==="MWEB"||p.clientName==="WEB"?(p.mainAppWebInfo={graftUrl:g.ZT.location.href},g.Hg("kevlar_woffle")&&ZG5.instance&&(I=ZG5.instance,p.mainAppWebInfo.pwaInstallabilityStatus=!I.S&&I.Y?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),p.mainAppWebInfo.webDisplayMode=XH(),p.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):p.clientName==="TVHTML5"&&(!g.Hg("web_lr_app_quality_killswitch")&&(I=g.zM("LIVING_ROOM_APP_QUALITY"))&&(p.tvAppInfo=Object.assign(p.tvAppInfo||{},{appQuality:I})),I=g.zM("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(p.tvAppInfo=Object.assign(p.tvAppInfo||{},{certificationScope:I}));if(!g.Hg("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var G=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(V){}G=void 0}G&&(p.timeZone=G)}(G=qu())?p.experimentsToken=G:delete p.experimentsToken;G=mw();fp.instance||(fp.instance=new fp);M.request=Object.assign({},M.request,{internalExperimentFlags:G,consistencyTokenJars:g.O9(fp.instance.S)});!g.Hg("web_prequest_context_killswitch")&&(G=g.zM("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(M.request.externalPrequestContext=G);p=g.OT();G=g.r0(0,58);p=p.get("gsml","");M.user=Object.assign({}, M.user);G&&(M.user.enableSafetyMode=G);p&&(M.user.lockedSafetyMode=!0);g.Hg("warm_op_csn_cleanup")?f&&(K=g.Vz())&&(M.clientScreenNonce=K):!K&&(K=g.Vz())&&(M.clientScreenNonce=K);z&&(M.clickTracking={clickTrackingParams:z});if(z=g.CW("yt.mdx.remote.remoteClient_"))M.remoteClient=z;pp.getInstance().setLocationOnInnerTubeContext(M);try{var b=ha(),e=b.bid;delete b.bid;M.adSignalsInfo={params:[],bid:e};for(var w=g.a(Object.entries(b)),D=w.next();!D.done;D=w.next()){var y=g.a(D.value),R=y.next().value, S=y.next().value;b=R;e=S;z=void 0;(z=M.adSignalsInfo.params)==null||z.push({key:b,value:""+e})}var E,L;if(((E=M.client)==null?void 0:E.clientName)==="TVHTML5"||((L=M.client)==null?void 0:L.clientName)==="TVHTML5_UNPLUGGED"){var q=g.zM("INNERTUBE_CONTEXT");q.adSignalsInfo&&(M.adSignalsInfo.advertisingId=q.adSignalsInfo.advertisingId,M.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",M.adSignalsInfo.limitAdTracking=q.adSignalsInfo.limitAdTracking)}}catch(V){g.sm(V)}return M}; qnd=function(z,K){if(!z)return!1;var f,M=(f=g.A(z,HRa))==null?void 0:f.signal;if(M&&K.S8)return!!K.S8[M];var p;if((f=(p=g.A(z,QsS))==null?void 0:p.request)&&K.bQ)return!!K.bQ[f];for(var t in z)if(K.Os[t])return!0;return!1}; mJo=function(z){var K={"Content-Type":"application/json"};g.zM("EOM_VISITOR_DATA")?K["X-Goog-EOM-Visitor-Id"]=g.zM("EOM_VISITOR_DATA"):g.zM("VISITOR_DATA")&&(K["X-Goog-Visitor-Id"]=g.zM("VISITOR_DATA"));K["X-Youtube-Bootstrap-Logged-In"]=g.zM("LOGGED_IN",!1);g.zM("DEBUG_SETTINGS_METADATA")&&(K["X-Debug-Settings-Metadata"]=g.zM("DEBUG_SETTINGS_METADATA"));z!=="cors"&&((z=g.zM("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(K["X-Youtube-Client-Name"]=z),(z=g.zM("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(K["X-Youtube-Client-Version"]= z),(z=g.zM("CHROME_CONNECTED_HEADER"))&&(K["X-Youtube-Chrome-Connected"]=z),(z=g.zM("DOMAIN_ADMIN_STATE"))&&(K["X-Youtube-Domain-Admin-State"]=z),g.zM("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(z=g.zM("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(K["X-YouTube-Lava-Device-Context"]=z));return K}; lha=function(){this.S={}}; BR=function(){this.mappings=new lha}; hE=function(z){return function(){return new z}}; nK8=function(z){var K=K===void 0?"UNKNOWN_INTERFACE":K;if(z.length===1)return z[0];var f=Vsv[K];if(f){f=new RegExp(f);for(var M=g.a(z),p=M.next();!p.done;p=M.next())if(p=p.value,f.exec(p))return p}var t=[];Object.entries(Vsv).forEach(function(B){var v=g.a(B);B=v.next().value;v=v.next().value;K!==B&&t.push(v)}); f=new RegExp(t.join("|"));z.sort(function(B,v){return B.length-v.length}); M=g.a(z);for(p=M.next();!p.done;p=M.next())if(p=p.value,!f.exec(p))return p;return z[0]}; g.aV=function(z){return"/youtubei/v1/"+nK8(z)}; RV=function(){}; SX=function(){}; uz=function(){}; Lp=function(z){return g.CW("ytcsi."+(z||"")+"data_")||WWa(z)}; Jco=function(){var z=Lp();z.info||(z.info={});return z.info}; EG=function(z){z=Lp(z);z.metadata||(z.metadata={});return z.metadata}; PR=function(z){z=Lp(z);z.tick||(z.tick={});return z.tick}; HR=function(z){z=Lp(z);if(z.gel){var K=z.gel;K.gelInfos||(K.gelInfos={});K.gelTicks||(K.gelTicks={})}else z.gel={gelTicks:{},gelInfos:{}};return z.gel}; gKW=function(z){z=HR(z);z.gelInfos||(z.gelInfos={});return z.gelInfos}; Qx=function(z){var K=Lp(z).nonce;K||(K=g.q1(16),Lp(z).nonce=K);return K}; WWa=function(z){var K={tick:{},info:{}};g.ov("ytcsi."+(z||"")+"data_",K);return K}; qP=function(){var z=g.CW("ytcsi.debug");z||(z=[],g.ov("ytcsi.debug",z),g.ov("ytcsi.reference",{}));return z}; m$=function(z){z=z||"";var K=iR5();if(K[z])return K[z];var f=qP(),M={timerName:z,info:{},tick:{},span:{},jspbInfo:[]};f.push(M);return K[z]=M}; dJq=function(z){z=z||"";var K=iR5();K[z]&&delete K[z];var f=qP(),M={timerName:z,info:{},tick:{},span:{},jspbInfo:[]};f.push(M);K[z]=M}; iR5=function(){var z=g.CW("ytcsi.reference");if(z)return z;qP();return g.CW("ytcsi.reference")}; lz=function(z){return cc5[z]||"LATENCY_ACTION_UNKNOWN"}; Vx=function(z,K){hc.call(this,1,arguments);this.QR=K}; np=function(){this.S=0}; WR=function(){np.instance||(np.instance=new np);return np.instance}; gl=function(z,K){JE[K]=JE[K]||{count:0};var f=JE[K];f.count++;f.time=(0,g.X)();z.S||(z.S=g.Mg(0,function(){var M=(0,g.X)(),p;for(p in JE)JE[p]&&M-JE[p].time>6E4&&delete JE[p];z&&(z.S=0)},5E3)); return f.count>5?(f.count===6&&Math.random()*1E5<1&&(f=new g.UT("CSI data exceeded logging limit with key",K.split("_")),K.indexOf("plev")>=0||g.Al(f)),!0):!1}; ssv=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; Ac5=function(){var z;if(g.Hg("csi_use_performance_navigation_timing")){var K,f,M,p=iz==null?void 0:(z=iz.getEntriesByType)==null?void 0:(K=z.call(iz,"navigation"))==null?void 0:(f=K[0])==null?void 0:(M=f.toJSON)==null?void 0:M.call(f);p?(p.requestStart=dl(p.requestStart),p.responseEnd=dl(p.responseEnd),p.redirectStart=dl(p.redirectStart),p.redirectEnd=dl(p.redirectEnd),p.domainLookupEnd=dl(p.domainLookupEnd),p.connectStart=dl(p.connectStart),p.connectEnd=dl(p.connectEnd),p.responseStart=dl(p.responseStart), p.secureConnectionStart=dl(p.secureConnectionStart),p.domainLookupStart=dl(p.domainLookupStart),p.isPerformanceNavigationTiming=!0,z=p):z=iz.timing}else z=g.Hg("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(iz.timing)):iz.timing;return z}; dl=function(z){return Math.round(cR()+z)}; cR=function(){return(g.Hg("csi_use_time_origin")||g.Hg("csi_use_time_origin_tvhtml5"))&&iz.timeOrigin?Math.floor(iz.timeOrigin):iz.timing.navigationStart}; AE=function(z,K){sG("_start",z,K)}; jX=function(z,K){if(!g.Hg("web_csi_action_sampling_enabled")||!Lp(K).actionDisabled){var f=m$(K||"");kh(f.info,z);z.loadType&&(f=z.loadType,EG(K).loadType=f);kh(gKW(K),z);f=Qx(K);K=Lp(K).cttAuthInfo;WR().info(z,f,K)}}; js5=function(){var z,K,f,M;return((M=AY().resolve(gJ(es))==null?void 0:(z=wD())==null?void 0:(K=z.loggingHotConfig)==null?void 0:(f=K.csiConfig)==null?void 0:f.debugTicks)!=null?M:[]).map(function(p){return Object.values(p)[0]})}; sG=function(z,K,f){if(!g.Hg("web_csi_action_sampling_enabled")||!Lp(f).actionDisabled){var M=Qx(f),p;if(p=g.Hg("web_csi_debug_sample_enabled")&&M){(AY().resolve(gJ(es))==null?0:wD())&&!Ynp&&(Ynp=!0,sG("gcfl",(0,g.X)(),f));var t,B,v;p=(AY().resolve(gJ(es))==null?void 0:(t=wD())==null?void 0:(B=t.loggingHotConfig)==null?void 0:(v=B.csiConfig)==null?void 0:v.debugSampleWeight)||0;if(t=p!==0)b:{t=js5();if(t.length>0)for(B=0;Bf.duration?M:f},{duration:0}))&&K.startTime>0&&K.responseEnd>0&&(sG("wffs",dl(K.startTime)),sG("wffe",dl(K.responseEnd)))}; oK8=function(z,K,f){iz&&iz.measure&&(z.startsWith("measure_")||(z="measure_"+z),f?iz.measure(z,K,f):K?iz.measure(z,K):iz.measure(z))}; Caq=function(z){var K=Y5("aft",z);if(K)return K;K=g.zM((z||"")+"TIMING_AFT_KEYS",["ol"]);for(var f=K.length,M=0;M0&&jX(K);K={isNavigation:!0,actionType:lz(g.zM("TIMING_ACTION"))};var f=g.zM("PREVIOUS_ACTION");f&&(K.previousAction=lz(f));if(f=g.zM("CLIENT_PROTOCOL"))K.httpProtocol=f;if(f=g.zM("CLIENT_TRANSPORT"))K.transportProtocol=f;(f=g.Vz())&&f!=="UNDEFINED_CSN"&&(K.clientScreenNonce=f);f=FW5();if(f===1||f===-1)K.isVisible= !0;f=EG().loadType==="cold";var M=Jco();f||(f=M.yt_lt==="cold");if(f){K.loadType="cold";f=Jco();M=Ac5();var p=cR(),t=g.zM("CSI_START_TIMESTAMP_MILLIS",0);t>0&&!g.Hg("embeds_web_enable_csi_start_override_killswitch")&&(p=t);p&&(sG("srt",M.responseStart),f.prerender!==1&&AE(p));f=zqu();f>0&&sG("fpt",f);f=Ac5();f.isPerformanceNavigationTiming&&jX({performanceNavigationTiming:!0},void 0);sG("nreqs",f.requestStart,void 0);sG("nress",f.responseStart,void 0);sG("nrese",f.responseEnd,void 0);f.redirectEnd- f.redirectStart>0&&(sG("nrs",f.redirectStart,void 0),sG("nre",f.redirectEnd,void 0));f.domainLookupEnd-f.domainLookupStart>0&&(sG("ndnss",f.domainLookupStart,void 0),sG("ndnse",f.domainLookupEnd,void 0));f.connectEnd-f.connectStart>0&&(sG("ntcps",f.connectStart,void 0),sG("ntcpe",f.connectEnd,void 0));f.secureConnectionStart>=cR()&&f.connectEnd-f.secureConnectionStart>0&&(sG("nstcps",f.secureConnectionStart,void 0),sG("ntcpe",f.connectEnd,void 0));iz&&"getEntriesByType"in iz&&ZR8();f=[];if(document.querySelector&& iz&&iz.getEntriesByName)for(var B in F2)F2.hasOwnProperty(B)&&(M=F2[B],rcS(B,M)&&f.push(M));if(f.length>0)for(K.resourceInfo=[],B=g.a(f),f=B.next();!f.done;f=B.next())K.resourceInfo.push({resourceCache:f.value})}jX(K);K=HR();K.preLoggedGelInfos||(K.preLoggedGelInfos=[]);B=K.preLoggedGelInfos;K=gKW();f=void 0;for(M=0;M-1&&(delete yI["@type"],x=yI);R&&z.Y.has(R)&&z.Y.delete(R);((ra=K.config)==null?0:ra.KVE)&&rl(K.config.KVE);if(x||(Ho=z.T)==null||!Ho.uIc(K.input,K.Tc)){q8.jV(15);break}return g.l(q8,z.T.oXc(K.input,K.Tc),16);case 16:x=q8.S;case 15:return hqg(z, x,K),((I8=K.config)==null?0:I8.J$V)&&rl(K.config.J$V),M(),q8.return(x||void 0)}})}; eqT=function(z,K){a:{z=z.jT;var f,M=(f=g.A(K,HRa))==null?void 0:f.signal;if(M&&z.S8&&(f=z.S8[M])){var p=f();break a}var t;if((f=(t=g.A(K,QsS))==null?void 0:t.request)&&z.bQ&&(t=z.bQ[f])){p=t();break a}for(p in K)if(z.Os[p]&&(K=z.Os[p])){p=K();break a}p=void 0}if(p!==void 0)return Promise.resolve(p)}; D1W=function(z,K,f){var M,p,t,B,v,I,G;return g.n(function(b){if(b.Y==1){t=((M=K)==null?void 0:(p=M.Kk)==null?void 0:p.identity)||kK;I=(B=K)==null?void 0:(v=B.Kk)==null?void 0:v.sessionIndex;var e=g.WO(z.S.Cr(t,{sessionIndex:I}));return g.l(b,e,2)}G=b.S;return b.return(Promise.resolve(Object.assign({},mJo(f),G)))})}; wLq=function(z,K,f){var M,p=(K==null?void 0:(M=K.Kk)==null?void 0:M.identity)||kK,t;K=K==null?void 0:(t=K.Kk)==null?void 0:t.sessionIndex;z=z.S.Cr(p,{sessionIndex:K});return Object.assign({},mJo(f),z)}; fI=function(){}; Md=function(){}; pI=function(z){this.W=z}; t0=function(){}; BY=function(){}; Nd=function(){}; vY=function(){}; g.IU=function(z,K){var f=g.i8.apply(2,arguments);z=z===void 0?0:z;g.UT.call(this,K,f);this.errorType=z;Object.setPrototypeOf(this,this.constructor.prototype)}; Gv=function(z,K,f,M){this.S=z;this.Y=K;this.T=f;this.J=M}; RqS=function(z,K,f){if(z.S){var M=Pv(Jo(K,"key"))||"/UNKNOWN_PATH";z.S.start(M)}M=f;g.Hg("wug_networking_gzip_request")&&(M=jOd(f));var p;return new ((p=z.J)!=null?p:window.Request)(K,M)}; g.eh=function(z,K){if(!bf){var f=AY();ii(f,{EH:S2o,bD:Gv});var M={Os:{feedbackEndpoint:hE(t0),modifyChannelNotificationPreferenceEndpoint:hE(BY),playlistEditEndpoint:hE(Nd),shareEntityEndpoint:hE(pI),subscribeEndpoint:hE(fI),unsubscribeEndpoint:hE(Md),webPlayerShareEntityServiceEndpoint:hE(vY)}},p=pp.getInstance(),t={};p&&(t.client_location=p);z===void 0&&(z=ona());K===void 0&&(K=f.resolve(S2o));bvI(M,K,z,t);ii(f,{EH:urI,L1:zv.instance});bf=f.resolve(urI)}return bf}; LlS=function(z){var K=new kV;if(z.interpreterJavascript){var f=VII(z.interpreterJavascript);f=pm(f).toString();var M=new Df;BX(M,6,f);g.CP(K,Df,1,M,qW)}else z.interpreterUrl&&(f=ll(z.interpreterUrl),f=Yo(f).toString(),M=new y2,BX(M,4,f),g.CP(K,y2,2,M,qW));z.interpreterHash&&NM(K,3,z.interpreterHash,qW);z.program&&NM(K,4,z.program,qW);z.globalName&&NM(K,5,z.globalName,qW);z.clientExperimentsStateBlob&&NM(K,7,z.clientExperimentsStateBlob,qW);return K}; wz=function(z){var K={};z=z.split("&");z=g.a(z);for(var f=z.next();!f.done;f=z.next())f=f.value.split("="),f.length===2&&(K[f[0]]=f[1]);return K}; VUS=function(){if(g.Hg("bg_st_hr"))return"havuokmhhs-0";var z,K=((z=performance)==null?void 0:z.timeOrigin)||0;return"havuokmhhs-"+Math.floor(K)}; Dl=function(z){this.S=z}; Ehp=function(){return new Promise(function(z){var K=window.top;K.ntpevasrs!==void 0?z(new Dl(K.ntpevasrs)):(K.ntpqfbel===void 0&&(K.ntpqfbel=[]),K.ntpqfbel.push(function(f){z(new Dl(f))}))})}; HvT=function(){if(Nm()){var z=g.zM("PLAYER_VARS",{});if(g.zl(z,"privembed",!1)!="1"&&!u8o(z)){var K=function(){yN=!0;"google_ad_status"in window?Ct("DCLKSTAT",1):Ct("DCLKSTAT",2)}; try{g.eL("//static.doubleclick.net/instream/ad_status.js",K)}catch(f){}PiT.push(g.rh.DD(function(){if(!(yN||"google_ad_status"in window)){try{if(K){var f=""+g.M5(K),M=Pmq[f];M&&g.GW(M)}}catch(p){}yN=!0;Ct("DCLKSTAT",3)}},5E3))}}}; kH=function(){var z=Number(g.zM("DCLKSTAT",0));return isNaN(z)?0:z}; Sh=function(z,K,f){var M=this;this.network=z;this.options=K;this.Y=f;this.S=null;if(K.Uac){var p=new g.ai;this.S=p.promise;g.ZT.ytAtRC&&f8(function(){var t,B;return g.n(function(v){if(v.Y==1){if(!g.ZT.ytAtRC)return v.return();t=h0(null);return g.l(v,aU(M,t),2)}B=v.S;g.ZT.ytAtRC&&g.ZT.ytAtRC(JSON.stringify(B));g.Rv(v)})},2); Ehp().then(function(t){var B,v,I,G;return g.n(function(b){if(b.Y==1)return t.bindInnertubeChallengeFetcher(function(e){return aU(M,h0(e))}),g.l(b,IE(),2); B=b.S;v=t.getLatestChallengeResponse();I=v.challenge;if(!I)throw Error("BGE_MACIL");G={challenge:I,z7:wz(I),r3:B,bgChallenge:new kV};p.resolve(G);t.registerChallengeFetchedCallback(function(e){e=e.challenge;if(!e)throw Error("BGE_MACR");e={challenge:e,z7:wz(e),r3:B,bgChallenge:new kV};M.S=Promise.resolve(e)}); g.Rv(b)})})}else K.preload&&QPS(this,new Promise(function(t){g.Mg(0,function(){t(RU(M))},0)}))}; h0=function(z){var K={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};z&&(K.interpreterHash=z);return K}; RU=function(z,K){K=K===void 0?0:K;var f,M,p,t,B,v,I,G,b,e,w,D;return g.n(function(y){switch(y.Y){case 1:f=h0(uA().S);if(g.Hg("att_fet_ks"))return g.Sq(y,7),g.l(y,aU(z,f),9);g.Sq(y,4);return g.l(y,q2v(z,f),6);case 6:B=y.S;p=B.g8V;t=B.fvL;M=B;g.Eu(y,3);break;case 4:return g.QI(y),g.Al(Error("Failed to fetch attestation challenge after "+(K+" attempts; not retrying for 24h."))),uf(z,864E5),y.return({challenge:"",z7:{},r3:void 0,bgChallenge:void 0});case 9:M=y.S;if(!M)throw Error("Fetching Attestation challenge returned falsy"); if(!M.challenge)throw Error("Missing Attestation challenge");p=M.challenge;t=wz(p);if("c1a"in t&&(!M.bgChallenge||!M.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.Eu(y,3);break;case 7:v=g.QI(y);g.Al(v);K++;if(K>=5)return g.Al(Error("Failed to fetch attestation challenge after "+(K+" attempts; not retrying for 24h."))),uf(z,864E5),y.return({challenge:"",z7:{},r3:void 0,bgChallenge:void 0});I=1E3*Math.pow(2,K-1)+Math.random()*1E3;return y.return(new Promise(function(R){g.Mg(0, function(){R(RU(z,K))},I)})); case 3:G=Number(t.t)||7200;uf(z,G*1E3);b=void 0;if(!("c1a"in t&&M.bgChallenge)){y.jV(10);break}e=LlS(M.bgChallenge);g.Sq(y,11);return g.l(y,VrS(uA(),e),13);case 13:g.Eu(y,12);break;case 11:return w=g.QI(y),g.Al(w),y.return({challenge:p,z7:t,r3:b,bgChallenge:e});case 12:return g.Sq(y,14),b=new Ri({challenge:e,Py:{kx:"aGIf"}}),g.l(y,b.Jq,16);case 16:g.Eu(y,10);break;case 14:D=g.QI(y),g.Al(D),b=void 0;case 10:return y.return({challenge:p,z7:t,r3:b,bgChallenge:e})}})}; aU=function(z,K){var f;return g.n(function(M){f=z.Y;if(!f||f.d$())return M.return(aU(z.network,K));UG("att_pna",void 0,"attestation_challenge_fetch");return M.return(new Promise(function(p){f.Gf("publicytnetworkstatus-online",function(){aU(z.network,K).then(p)})}))})}; m1q=function(z){if(!z)throw Error("Fetching Attestation challenge returned falsy");if(!z.challenge)throw Error("Missing Attestation challenge");var K=z.challenge,f=wz(K);if("c1a"in f&&(!z.bgChallenge||!z.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},z,{g8V:K,fvL:f})}; q2v=function(z,K){var f,M,p,t,B;return g.n(function(v){switch(v.Y){case 1:f=void 0,M=0,p={};case 2:if(!(M<5)){v.jV(4);break}if(!(M>0)){v.jV(5);break}p.tE=1E3*Math.pow(2,M-1)+Math.random()*1E3;return g.l(v,new Promise(function(I){return function(G){g.Mg(0,function(){G(void 0)},I.tE)}}(p)),5); case 5:return g.Sq(v,7),g.l(v,aU(z,K),9);case 9:return t=v.S,v.return(m1q(t));case 7:f=B=g.QI(v),B instanceof Error&&g.Al(B);case 8:M++;p={tE:void 0};v.jV(2);break;case 4:throw f;}})}; QPS=function(z,K){z.S=K}; lpS=function(z){var K,f,M;return g.n(function(p){if(p.Y==1)return g.l(p,Promise.race([z.S,null]),2);K=p.S;var t=RU(z);z.S=t;(f=K)==null||(M=f.r3)==null||M.dispose();g.Rv(p)})}; uf=function(z,K){function f(){var p;return g.n(function(t){p=M-Date.now();return p<1E3?g.l(t,lpS(z),0):(f8(f,0,Math.min(p,6E4)),t.jV(0))})} var M=Date.now()+K;f()}; VLp=function(z,K){return new Promise(function(f){g.Mg(0,function(){f(K())},z)})}; g.nhq=function(z,K){var f;return g.n(function(M){var p=g.CW("yt.aba.att");return(f=p?p:Sh.instance!==void 0?Sh.instance.T.bind(Sh.instance):null)?M.return(f("ENGAGEMENT_TYPE_PLAYBACK",z,K)):M.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.WlW=function(){var z;return(z=(z=g.CW("yt.aba.att2"))?z:Sh.instance!==void 0?Sh.instance.J.bind(Sh.instance):null)?z():Promise.resolve(!1)}; gh5=function(z,K){var f=g.CW("ytDebugData.callbacks");f||(f={},g.ov("ytDebugData.callbacks",f));if(g.Hg("web_dd_iu")||JYo.includes(z))f[z]=K}; LI=function(){var z=ivT;var K=K===void 0?[]:K;var f=f===void 0?[]:f;K=PAp.apply(null,[HV8.apply(null,g.P(K))].concat(g.P(f)));this.store=qE8(z,void 0,K)}; g.EB=function(z,K,f){for(var M=Object.assign({},z),p=g.a(Object.keys(K)),t=p.next();!t.done;t=p.next()){t=t.value;var B=z[t],v=K[t];if(v===void 0)delete M[t];else if(B===void 0)M[t]=v;else if(Array.isArray(v)&&Array.isArray(B))M[t]=f?[].concat(g.P(B),g.P(v)):v;else if(!Array.isArray(v)&&g.$f(v)&&!Array.isArray(B)&&g.$f(B))M[t]=g.EB(B,v,f);else if(typeof v===typeof B)M[t]=v;else return K=new g.UT("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:t,vQa:B,updateValue:v}),g.sm(K), z}return M}; PY=function(z){var K=this;z=z===void 0?[]:z;this.S=[];this.T=this.Y=0;this.J=void 0;this.totalLength=0;z.forEach(function(f){K.append(f)})}; d1S=function(z,K){return z.S.length===0?!1:(z=z.S[z.S.length-1])&&z.buffer===K.buffer&&z.byteOffset+z.length===K.byteOffset}; HY=function(z,K){K=g.a(K.S);for(var f=K.next();!f.done;f=K.next())z.append(f.value)}; QN=function(z,K,f){return z.split(K).Ve.split(f).BJ}; qd=function(z){z.J=void 0;z.Y=0;z.T=0}; mk=function(z,K,f){z.isFocused(K);return K-z.T+f<=z.S[z.Y].length}; cY8=function(z){if(!z.J){var K=z.S[z.Y];z.J=new DataView(K.buffer,K.byteOffset,K.length)}return z.J}; sPS=function(z,K,f){K=K===void 0?0:K;f=f===void 0?-1:f;if(!z.totalLength||!f)return new DataView(new ArrayBuffer(0));f<0&&(f=z.totalLength-K);z.focus(K);if(!mk(z,K,f)){var M=z.Y,p=z.T;z.focus(K+f-1);p=new Uint8Array(z.T+z.S[z.Y].length-p);for(var t=0,B=M;B<=z.Y;B++)p.set(z.S[B],t),t+=z.S[B].length;z.S.splice(M,z.Y-M+1,p);qd(z);z.focus(K)}M=z.S[z.Y];return new DataView(M.buffer,M.byteOffset+K-z.T,f)}; lf=function(z,K,f){z=sPS(z,K===void 0?0:K,f===void 0?-1:f);return new Uint8Array(z.buffer,z.byteOffset,z.byteLength)}; VN=function(z,K,f){z=lf(z,K===void 0?0:K,f===void 0?-1:f);K=new Uint8Array(z.length);try{K.set(z)}catch(M){for(f=0;f>10;t=56320|t&1023}gz[p++]=t}}t=String.fromCharCode.apply(String,gz); p<1024&&(t=t.substring(0,p));f.push(t)}return f.join("")}; sB=function(z,K){var f;if((f=cY)==null?0:f.encodeInto)return K=cY.encodeInto(z,K),K.read>6|192:((p&64512)===55296&&M+1>18|240,K[f++]=p>>12&63|128):K[f++]=p>>12|224,K[f++]=p>>6&63|128),K[f++]=p&63|128)}return f}; A0=function(z){if(cY)return cY.encode(z);var K=new Uint8Array(Math.ceil(z.length*1.2)),f=sB(z,K);K.lengthf&&(K=K.subarray(0,f));return K}; jh=function(z){this.S=z;this.pos=0;this.Y=-1}; YH=function(z){var K=nI(z.S,z.pos);++z.pos;if(K<128)return K;for(var f=K&127,M=1;K>=128;)K=nI(z.S,z.pos),++z.pos,M*=128,f+=(K&127)*M;return f}; Xt=function(z,K){var f=z.Y;for(z.Y=-1;z.pos+1<=z.S.totalLength;){f<0&&(f=YH(z));var M=f>>3,p=f&7;if(M===K)return!0;if(M>K){z.Y=f;break}f=-1;switch(p){case 0:YH(z);break;case 1:z.pos+=8;break;case 2:M=YH(z);z.pos+=M;break;case 5:z.pos+=4}}return!1}; xH=function(z,K){if(Xt(z,K))return YH(z)}; Ft=function(z,K){if(Xt(z,K))return!!YH(z)}; OB=function(z,K){if(Xt(z,K)){K=YH(z);var f=lf(z.S,z.pos,K);z.pos+=K;return f}}; rz=function(z,K){if(z=OB(z,K))return g.dz(z)}; Zl=function(z,K,f){if(z=OB(z,K))return f(new jh(new PY([z])))}; oU=function(z,K){for(var f=[];Xt(z,K);)f.push(YH(z));return f.length?f:void 0}; CI=function(z,K,f){for(var M=[],p;p=OB(z,K);)M.push(f(new jh(new PY([p]))));return M.length?M:void 0}; Tv=function(z,K){z=z instanceof Uint8Array?new PY([z]):z;return K(new jh(z))}; Y2S=function(z,K,f){if(K&&f&&f.buffer===K.exports.memory.buffer){var M=K.realloc(f.byteOffset,z);if(M)return new Uint8Array(K.exports.memory.buffer,M,z)}z=K?new Uint8Array(K.exports.memory.buffer,K.malloc(z),z):new Uint8Array(z);f&&z.set(f);return z}; XLS=function(z,K){this.T=K;this.pos=0;this.Y=[];this.S=Y2S(z===void 0?4096:z,K);this.view=new DataView(this.S.buffer,this.S.byteOffset,this.S.byteLength)}; UB=function(z,K){K=z.pos+K;if(!(z.S.length>=K)){for(var f=z.S.length*2;f268435455){UB(z,4);for(var f=K&1073741823,M=0;M<4;M++)z.view.setUint8(z.pos,f&127|128),f>>=7,z.pos+=1;K=Math.floor(K/268435456)}for(UB(z,4);K>127;)z.view.setUint8(z.pos,K&127|128),K>>=7,z.pos+=1;z.view.setUint8(z.pos,K);z.pos+=1}; Kf=function(z,K,f){f!==void 0&&(zL(z,K*8),zL(z,f))}; $8=function(z,K,f){f!==void 0&&Kf(z,K,f?1:0)}; ff=function(z,K,f){f!==void 0&&(zL(z,K*8+2),K=f.length,zL(z,K),UB(z,K),z.S.set(f,z.pos),z.pos+=K)}; MA=function(z,K,f){f!==void 0&&(x1q(z,K,Math.ceil(Math.log2(f.length*4+2)/7)),UB(z,f.length*1.2),K=sB(f,z.S.subarray(z.pos)),z.pos+K>z.S.length&&(UB(z,K),K=sB(f,z.S.subarray(z.pos))),z.pos+=K,Fl8(z))}; x1q=function(z,K,f){f=f===void 0?2:f;zL(z,K*8+2);z.Y.push(z.pos);z.Y.push(f);z.pos+=f}; Fl8=function(z){for(var K=z.Y.pop(),f=z.Y.pop(),M=z.pos-f-K;K--;){var p=K?128:0;z.view.setUint8(f++,M&127|p);M>>=7}}; pf=function(z,K,f,M,p){f&&(x1q(z,K,p===void 0?3:p),M(z,f),Fl8(z))}; g.tM=function(z,K,f){f=new XLS(4096,f);K(f,z);return new Uint8Array(f.S.buffer,f.S.byteOffset,f.pos)}; g.B_=function(z){var K=new jh(new PY([Ij(decodeURIComponent(z))]));z=rz(K,2);K=xH(K,4);var f=OvI[K];if(typeof f==="undefined")throw z=new g.UT("Failed to recognize field number",{name:"EntityKeyHelperError",hjH:K}),g.sm(z),z;return{mO:K,entityType:f,entityId:z}}; g.NA=function(z,K){var f=f===void 0?0:f;var M=new XLS;ff(M,2,A0(z));z=rYa[K];if(typeof z==="undefined")throw f=new g.UT("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:K}),g.sm(f),f;Kf(M,4,z);Kf(M,5,1);K=new Uint8Array(M.S.buffer,M.S.byteOffset,M.pos);return encodeURIComponent(g.NW(K,f))}; a7=function(z,K,f,M){if(M===void 0)return M=Object.assign({},z[K]||{}),f=(delete M[f],M),M={},Object.assign({},z,(M[K]=f,M));var p={},t={};return Object.assign({},z,(t[K]=Object.assign({},z[K],(p[f]=M,p)),t))}; Zvg=function(z,K,f,M,p){var t=z[K];if(t==null||!t[f])return z;M=g.EB(t[f],M,p==="REPEATED_FIELDS_MERGE_OPTION_APPEND");p={};t={};return Object.assign({},z,(t[K]=Object.assign({},z[K],(p[f]=M,p)),t))}; oho=function(z,K){z=z===void 0?{}:z;switch(K.type){case "ENTITY_LOADED":return K.payload.reduce(function(M,p){var t,B=(t=p.options)==null?void 0:t.persistenceOption;if(B&&B!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&B!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return M;if(!p.entityKey)return g.sm(Error("Missing entity key")),M;if(p.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!p.payload)return p=new g.UT("REPLACE entity mutation is missing a payload",{entityKey:p.entityKey}),g.sm(p),M;var v=g.FT(p.payload); return a7(M,v,p.entityKey,p.payload[v])}if(p.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{p=p.entityKey;try{var I=g.B_(p).entityType;v=a7(M,I,p);break a}catch(e){if(e instanceof Error){p=new g.UT("Failed to deserialize entity key",{entityKey:p,originalMessage:e.message});g.sm(p);v=M;break a}throw e;}v=void 0}return v}if(p.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!p.payload)return p=new g.UT("UPDATE entity mutation is missing a payload",{entityKey:p.entityKey}),g.sm(p),M;v=g.FT(p.payload);var G,b;return Zvg(M, v,p.entityKey,p.payload[v],(G=p.fieldMask)==null?void 0:(b=G.mergeOptions)==null?void 0:b.repeatedFieldsMergeOption)}return M},z); case "REPLACE_ENTITY":var f=K.payload;return a7(z,f.entityType,f.key,f.W5);case "REPLACE_ENTITIES":return Object.keys(K.payload).reduce(function(M,p){var t=K.payload[p];return Object.keys(t).reduce(function(B,v){return a7(B,p,v,t[v])},M)},z); case "UPDATE_ENTITY":return f=K.payload,Zvg(z,f.entityType,f.key,f.W5,f.EQd);default:return z}}; R7=function(z,K,f){return z[K]?z[K][f]||null:null}; Sv=function(z){return window.Int32Array?new Int32Array(z):Array(z)}; Q7=function(z){g.J.call(this);this.counter=[0,0,0,0];this.Y=new Uint8Array(16);this.S=16;if(!Cio){var K,f=new Uint8Array(256),M=new Uint8Array(256);var p=1;for(K=0;K<256;K++)f[p]=K,M[K]=p,p^=p<<1^(p>>7&&283);uR=new Uint8Array(256);Lf=Sv(256);EI=Sv(256);P_=Sv(256);H_=Sv(256);for(var t=0;t<256;t++){p=t?M[255^f[t]]:0;p^=p<<1^p<<2^p<<3^p<<4;p=p&255^p>>>8^99;uR[t]=p;K=p<<1^(p>>7&&283);var B=K^p;Lf[t]=K<<24|p<<16|p<<8|B;EI[t]=B<<24|Lf[t]>>>8;P_[t]=p<<24|EI[t]>>>8;H_[t]=p<<24|P_[t]>>>8}Cio=!0}p=Sv(44);for(f= 0;f<4;f++)p[f]=z[4*f]<<24|z[4*f+1]<<16|z[4*f+2]<<8|z[4*f+3];for(M=1;f<44;f++)z=p[f-1],f%4||(z=(uR[z>>16&255]^M)<<24|uR[z>>8&255]<<16|uR[z&255]<<8|uR[z>>>24],M=M<<1^(M>>7&&283)),p[f]=p[f-4]^z;this.key=p}; qA=function(z,K){for(var f=0;f<4;f++)z.counter[f]=K[f*4]<<24|K[f*4+1]<<16|K[f*4+2]<<8|K[f*4+3];z.S=16}; TJo=function(z){for(var K=z.key,f=z.counter[0]^K[0],M=z.counter[1]^K[1],p=z.counter[2]^K[2],t=z.counter[3]^K[3],B=3;B>=0&&!(z.counter[B]=-~z.counter[B]);B--);for(var v,I,G=4;G<40;)B=Lf[f>>>24]^EI[M>>16&255]^P_[p>>8&255]^H_[t&255]^K[G++],v=Lf[M>>>24]^EI[p>>16&255]^P_[t>>8&255]^H_[f&255]^K[G++],I=Lf[p>>>24]^EI[t>>16&255]^P_[f>>8&255]^H_[M&255]^K[G++],t=Lf[t>>>24]^EI[f>>16&255]^P_[M>>8&255]^H_[p&255]^K[G++],f=B,M=v,p=I;z=z.Y;B=K[40];z[0]=uR[f>>>24]^B>>>24;z[1]=uR[M>>16&255]^B>>16&255;z[2]=uR[p>>8&255]^ B>>8&255;z[3]=uR[t&255]^B&255;B=K[41];z[4]=uR[M>>>24]^B>>>24;z[5]=uR[p>>16&255]^B>>16&255;z[6]=uR[t>>8&255]^B>>8&255;z[7]=uR[f&255]^B&255;B=K[42];z[8]=uR[p>>>24]^B>>>24;z[9]=uR[t>>16&255]^B>>16&255;z[10]=uR[f>>8&255]^B>>8&255;z[11]=uR[M&255]^B&255;B=K[43];z[12]=uR[t>>>24]^B>>>24;z[13]=uR[f>>16&255]^B>>16&255;z[14]=uR[M>>8&255]^B>>8&255;z[15]=uR[p&255]^B&255}; V7=function(){if(!mK&&!g.Ux){if(lR)return lR;var z;lR=(z=window.crypto)==null?void 0:z.subtle;var K,f,M;if(((K=lR)==null?0:K.importKey)&&((f=lR)==null?0:f.sign)&&((M=lR)==null?0:M.encrypt))return lR;lR=void 0}}; g.nf=function(z){this.Y=z}; U18=function(z,K,f,M){var p,t;return g.n(function(B){switch(B.Y){case 1:if(z.T){B.jV(2);break}return g.l(B,M.importKey("raw",z.Y,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:z.T=B.S;case 2:return p={name:"AES-CTR",counter:f,length:128},g.l(B,M.encrypt(p,z.T,K),4);case 4:return t=B.S,B.return(new Uint8Array(t))}})}; zUg=function(z,K,f){z.S||(z.S=new Q7(z.Y));qA(z.S,f);return z.S.encrypt(K)}; g.W_=function(z){this.Y=z}; JM=function(z){this.C=new Uint8Array(64);this.T=new Uint8Array(64);this.J=0;this.W=new Uint8Array(64);this.Y=0;this.C.set(z);this.T.set(z);for(z=0;z<64;z++)this.C[z]^=92,this.T[z]^=54;this.reset()}; Kxq=function(z,K,f){for(var M=z.G,p=z.S[0],t=z.S[1],B=z.S[2],v=z.S[3],I=z.S[4],G=z.S[5],b=z.S[6],e=z.S[7],w,D,y,R=0;R<64;)R<16?(M[R]=y=K[f]<<24|K[f+1]<<16|K[f+2]<<8|K[f+3],f+=4):(w=M[R-2],D=M[R-15],y=M[R-7]+M[R-16]+((w>>>17|w<<15)^(w>>>19|w<<13)^w>>>10)+((D>>>7|D<<25)^(D>>>18|D<<14)^D>>>3),M[R]=y),w=e+gQ[R]+y+((I>>>6|I<<26)^(I>>>11|I<<21)^(I>>>25|I<<7))+(I&G^~I&b),D=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&t^p&B^t&B),e=w+D,v+=w,R++,R<16?(M[R]=y=K[f]<<24|K[f+1]<<16|K[f+2]<<8|K[f+3],f+=4):(w= M[R-2],D=M[R-15],y=M[R-7]+M[R-16]+((w>>>17|w<<15)^(w>>>19|w<<13)^w>>>10)+((D>>>7|D<<25)^(D>>>18|D<<14)^D>>>3),M[R]=y),w=b+gQ[R]+y+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+(v&I^~v&G),D=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&p^e&t^p&t),b=w+D,B+=w,R++,R<16?(M[R]=y=K[f]<<24|K[f+1]<<16|K[f+2]<<8|K[f+3],f+=4):(w=M[R-2],D=M[R-15],y=M[R-7]+M[R-16]+((w>>>17|w<<15)^(w>>>19|w<<13)^w>>>10)+((D>>>7|D<<25)^(D>>>18|D<<14)^D>>>3),M[R]=y),w=G+gQ[R]+y+((B>>>6|B<<26)^(B>>>11|B<<21)^(B>>>25|B<<7))+(B&v^ ~B&I),D=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&e^b&p^e&p),G=w+D,t+=w,R++,R<16?(M[R]=y=K[f]<<24|K[f+1]<<16|K[f+2]<<8|K[f+3],f+=4):(w=M[R-2],D=M[R-15],y=M[R-7]+M[R-16]+((w>>>17|w<<15)^(w>>>19|w<<13)^w>>>10)+((D>>>7|D<<25)^(D>>>18|D<<14)^D>>>3),M[R]=y),w=I+gQ[R]+y+((t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7))+(t&B^~t&v),D=((G>>>2|G<<30)^(G>>>13|G<<19)^(G>>>22|G<<10))+(G&b^G&e^b&e),y=e,e=v,v=y,y=b,b=B,B=y,y=G,G=t,t=y,I=p+w,p=w+D,R++;z.S[0]=p+z.S[0]|0;z.S[1]=t+z.S[1]|0;z.S[2]=B+z.S[2]|0;z.S[3]= v+z.S[3]|0;z.S[4]=I+z.S[4]|0;z.S[5]=G+z.S[5]|0;z.S[6]=b+z.S[6]|0;z.S[7]=e+z.S[7]|0}; f6g=function(z){var K=new Uint8Array(32),f=64-z.Y;z.Y>55&&(f+=64);var M=new Uint8Array(f);M[0]=128;for(var p=z.J*8,t=1;t<9;t++){var B=p%256;M[f-t]=B;p=(p-B)/256}z.update(M);for(f=0;f<8;f++)K[f*4]=z.S[f]>>>24,K[f*4+1]=z.S[f]>>>16&255,K[f*4+2]=z.S[f]>>>8&255,K[f*4+3]=z.S[f]&255;$eq(z);return K}; $eq=function(z){z.S=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];z.G=[];z.G.length=64;z.J=0;z.Y=0}; M38=function(z){this.S=z}; pM8=function(z,K,f){z=new JM(z.S);z.update(K);z.update(f);K=f6g(z);z.update(z.C);z.update(K);K=f6g(z);z.reset();return K}; t3v=function(z){this.Y=z}; Bxq=function(z,K,f,M){var p,t,B;return g.n(function(v){switch(v.Y){case 1:if(z.S){v.jV(2);break}return g.l(v,M.importKey("raw",z.Y,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:z.S=v.S;case 2:return p=new Uint8Array(K.length+f.length),p.set(K),p.set(f,K.length),t={name:"HMAC",hash:"SHA-256"},g.l(v,M.sign(t,z.S,p),4);case 4:return B=v.S,v.return(new Uint8Array(B))}})}; Nx8=function(z,K,f){z.T||(z.T=new M38(z.Y));return pM8(z.T,K,f)}; vT5=function(z,K,f){var M,p;return g.n(function(t){if(t.Y==1){M=V7();if(!M)return t.return(Nx8(z,K,f));g.Sq(t,3);return g.l(t,Bxq(z,K,f,M),5)}if(t.Y!=3)return t.return(t.S);p=g.QI(t);g.Al(p);mK=!0;return t.return(Nx8(z,K,f))})}; Gu5=function(z){for(var K="",f=0;f=1?z[z.length-1]:null;for(var M=g.a(z),p=M.next();!p.done;p=M.next())if(p=p.value,p.width&&p.height&&(f&&p.width>=K||!f&&p.height>=K))return p;for(K=z.length-1;K>=0;K--)if(f&&z[K].width||!f&&z[K].height)return z[K];return z[0]}; dQ=function(){this.state=1;this.r3=null;this.c7=void 0}; Lx8=function(z,K,f,M,p,t){var B=B===void 0?"trayride":B;f?(z.Xr(2),g.eL(f,function(){if(window[B])uXo(z,M,B,p);else{z.Xr(3);var v=EBv(f),I=document.getElementById(v);I&&(usS(v),I.parentNode.removeChild(I));g.Al(new g.UT("BL:ULB",""+f))}},t)):K?(t=g.zi("SCRIPT"),K instanceof Mt?(t.textContent=pm(K),tR(t)):t.textContent=K,t.nonce=fm(document),document.head.appendChild(t),document.head.removeChild(t),window[B]?uXo(z,M,B,p):(z.Xr(4),g.Al(new g.UT("BL:ULBJ")))):g.Al(new g.UT("BL:ULV"))}; uXo=function(z,K,f,M){z.Xr(5);var p=!!z.c7&&ETI.includes(g.EW(z.c7)||"");try{var t=new Ri({program:K,globalName:f,Py:{disable:!g.Hg("att_web_record_metrics")||!g.Hg("att_skip_metrics_for_cookieless_domains_ks")&&p,kx:"aGIf"}});t.Jq.then(function(){z.Xr(6);M&&M(K)}); z.wH(t)}catch(B){z.Xr(7),B instanceof Error&&g.Al(B)}}; c_=function(){var z=g.CW("yt.abuse.playerAttLoader");return z&&["bgvma","bgvmb","bgvmc"].every(function(K){return K in z})?z:null}; sI=function(){dQ.apply(this,arguments)}; AM=function(){}; Pca=function(z,K,f){for(var M=!1,p=g.a(z.Sk.entries()),t=p.next();!t.done;t=p.next())t=g.a(t.value).next().value,t.slotType==="SLOT_TYPE_PLAYER_BYTES"&&t.fH==="core"&&(M=!0);if(M){a:if(!f){z=g.a(z.Sk.entries());for(f=z.next();!f.done;f=z.next())if(M=g.a(f.value),f=M.next().value,M=M.next().value,f.slotType==="SLOT_TYPE_IN_PLAYER"&&f.fH==="core"){f=M.layoutId;break a}f=void 0}f?K.Im(f):R3("No triggering layout ID available when attempting to mute.")}}; jv=function(z,K){this.CJ=z;this.yJ=K}; Y8=function(){}; XS=function(){}; Q2d=function(z){g.J.call(this);var K=this;this.VW=z;this.S=new Map;x8(this,"commandExecutorCommand",function(f,M,p){HQu(K,f.commands,M,p)}); x8(this,"clickTrackingParams",function(){})}; qmI=function(z,K){x8(z,K.CD(),function(f,M,p){K.BD(f,M,p)})}; x8=function(z,K,f){z.CH();z.S.get(K)&&g.sm(Error("Extension name "+K+" already registered"));z.S.set(K,f)}; HQu=function(z,K,f,M){K=K===void 0?[]:K;z.CH();var p=[],t=[];K=g.a(K);for(var B=K.next();!B.done;B=K.next())B=B.value,g.A(B,meq)||g.A(B,l6v)?p.push(B):t.push(B);p=g.a(p);for(K=p.next();!K.done;K=p.next())FS(z,K.value,f,M);t=g.a(t);for(p=t.next();!p.done;p=t.next())FS(z,p.value,f,M)}; FS=function(z,K,f,M){z.CH();K.loggingUrls&&V3I(z,"loggingUrls",K.loggingUrls,f,M);K=g.a(Object.entries(K));for(var p=K.next();!p.done;p=K.next()){var t=g.a(p.value);p=t.next().value;t=t.next().value;p==="openPopupAction"?z.VW.get().x$("innertubeCommand",{openPopupAction:t}):p==="confirmDialogEndpoint"?z.VW.get().x$("innertubeCommand",{confirmDialogEndpoint:t}):nTu.hasOwnProperty(p)||V3I(z,p,t,f,M)}}; V3I=function(z,K,f,M,p){if((z=z.S.get(K))&&typeof z==="function")try{z(f,M,p)}catch(t){g.sm(t)}else K=new g.UT("Unhandled field",K),g.Al(K)}; OI=function(z,K,f){this.Sv=z;this.S=K;this.Gh=f;ii(AY(),{EH:RUd,bD:a6u})}; rQ=function(z){this.value=z}; ZR=function(z){this.value=z}; o7=function(z){this.value=z}; Cf=function(z){this.value=z}; TL=function(z){this.value=z}; UI=function(z){this.value=z}; zj=function(z){this.value=z}; Ku=function(){rQ.apply(this,arguments)}; $9=function(z){this.value=z}; fu=function(z){this.value=z}; M3=function(z){this.value=z}; pu=function(z){this.value=z}; th=function(z){this.value=z}; BT=function(z){this.value=z}; N3=function(z){this.value=z}; vT=function(z){this.value=z}; ID=function(z){this.value=z}; Gj=function(z){this.value=z}; b5=function(){rQ.apply(this,arguments)}; eQ=function(z){this.value=z}; ww=function(z){this.value=z}; D2=function(z){this.value=z}; yg=function(z){this.value=z}; k9=function(z){this.value=z}; hh=function(z){this.value=z}; aD=function(z){this.value=z}; RD=function(z){this.value=z}; SQ=function(z){this.value=z}; u5=function(z){this.value=z}; Lu=function(z){this.value=z}; Ej=function(z){this.value=z}; PT=function(z){this.value=z}; HT=function(z){this.value=z}; Qg=function(z){this.value=z}; q3=function(z){this.value=z}; me=function(z){this.value=z}; l5=function(z){this.value=z}; Vg=function(z){this.value=z}; nu=function(z){this.value=z}; WT=function(z){this.value=z}; Jh=function(z){this.value=z}; gw=function(z){this.value=z}; i5=function(z){this.value=z}; dw=function(z){this.value=z}; cT=function(z){this.value=z}; sj=function(z){this.value=z}; Ah=function(z){this.value=z}; jQ=function(z){this.value=z}; Y9=function(z){this.value=z}; XM=function(z){this.value=z}; x9=function(z){this.value=z}; FM=function(z){this.value=z}; Oj=function(z){this.value=z}; rw=function(z){this.value=z}; Z2=function(z){this.value=z}; oD=function(z){this.value=z}; Cu=function(z){this.value=z}; Tj=function(){rQ.apply(this,arguments)}; Uj=function(z){this.value=z}; zn=function(){rQ.apply(this,arguments)}; Kh=function(){rQ.apply(this,arguments)}; $z=function(){rQ.apply(this,arguments)}; fh=function(){rQ.apply(this,arguments)}; Ma=function(){rQ.apply(this,arguments)}; ph=function(z){this.value=z}; tK=function(z){this.value=z}; Bd=function(z){this.value=z}; Na=function(z){this.value=z}; vd=function(z){this.value=z}; Gn=function(z,K,f){if(f&&!f.includes(z.layoutType))return!1;K=g.a(K);for(f=K.next();!f.done;f=K.next())if(!If(z.clientMetadata,f.value))return!1;return!0}; bY=function(){return""}; Wxg=function(z,K){switch(z){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return K(z),8}}; ei=function(z,K,f,M){M=M===void 0?!1:M;b_.call(this,z);this.TD=f;this.Pf=M;this.args=[];K&&this.args.push(K)}; C=function(z,K,f,M){M=M===void 0?!1:M;b_.call(this,z);this.TD=f;this.Pf=M;this.args=[];K&&this.args.push(K)}; w3=function(z){var K=new Map;z.forEach(function(f){K.set(f.S(),f)}); this.S=K}; If=function(z,K){return z.S.has(K)}; Dx=function(z,K){z=z.S.get(K);if(z!==void 0)return z.get()}; yc=function(z){return Array.from(z.S.keys())}; kz=function(z,K,f){if(f&&f!==z.slotType)return!1;K=g.a(K);for(f=K.next();!f.done;f=K.next())if(!If(z.clientMetadata,f.value))return!1;return!0}; gTv=function(z){var K;return((K=Jlv.get(z))==null?void 0:K.Yn)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; af=function(z,K){var f={type:K.slotType,controlFlowManagerLayer:iQS.get(K.fH)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};K.slotEntryTrigger&&(f.entryTriggerType=K.slotEntryTrigger.triggerType);K.slotPhysicalPosition!==1&&(f.slotPhysicalPosition=K.slotPhysicalPosition);if(z){f.debugData={slotId:K.slotId};if(z=K.slotEntryTrigger)f.debugData.slotEntryTriggerData=hK(z);z=K.slotFulfillmentTriggers;f.debugData.fulfillmentTriggerData=[];z=g.a(z);for(var M=z.next();!M.done;M=z.next())f.debugData.fulfillmentTriggerData.push(hK(M.value)); K=K.slotExpirationTriggers;f.debugData.expirationTriggerData=[];K=g.a(K);for(z=K.next();!z.done;z=K.next())f.debugData.expirationTriggerData.push(hK(z.value))}return f}; de8=function(z,K){var f={type:K.layoutType,controlFlowManagerLayer:iQS.get(K.fH)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};z&&(f.debugData={layoutId:K.layoutId});return f}; hK=function(z,K){var f={type:z.triggerType};K!=null&&(f.category=K);z.triggeringSlotId!=null&&(f.triggerSourceData||(f.triggerSourceData={}),f.triggerSourceData.associatedSlotId=z.triggeringSlotId);z.triggeringLayoutId!=null&&(f.triggerSourceData||(f.triggerSourceData={}),f.triggerSourceData.associatedLayoutId=z.triggeringLayoutId);return f}; clI=function(z,K,f,M){K={opportunityType:K};z&&(M||f)&&(M=g.UZ(M||[],function(p){return af(z,p)}),K.debugData=Object.assign({},f&&f.length>0?{associatedSlotId:f}:{},M.length>0?{slots:M}:{})); return K}; Si=function(z,K){return function(f){return s2u(Rf(z),K.slotId,K.slotType,K.slotPhysicalPosition,K.fH,K.slotEntryTrigger,K.slotFulfillmentTriggers,K.slotExpirationTriggers,f.layoutId,f.layoutType,f.fH)}}; s2u=function(z,K,f,M,p,t,B,v,I,G,b){return{adClientDataEntry:{slotData:af(z,{slotId:K,slotType:f,slotPhysicalPosition:M,fH:p,slotEntryTrigger:t,slotFulfillmentTriggers:B,slotExpirationTriggers:v,clientMetadata:new w3([])}),layoutData:de8(z,{layoutId:I,layoutType:G,fH:b,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],K6:[],qB:new Map,clientMetadata:new w3([]),GP:{}})}}}; Lh=function(z){this.Ef=z;z=Math.random();var K=this.Ef.get();K=g.uY(K.U.Z().experiments,"html5_debug_data_log_probability");K=Number.isFinite(K)&&K>=0&&K<=1?K:0;this.S=z1){g.Al(new g.UT("Exit already started",{current:z.currentState}));var f=!1}else f=!0;if(!f)return!1;z.currentState=2;z.S=K;return!0}; Hf=function(z){if(z.currentState!==2)return!1;z.currentState=3;return!0}; yPI=function(z,K){var f=new Map;z=g.a(z);for(var M=z.next();!M.done;M=z.next()){M=M.value;if(M.layoutType==="LAYOUT_TYPE_MEDIA")var p="v";else M.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(p=Dx(M.clientMetadata,"metadata_type_linked_in_player_layout_type"),p=p==="LAYOUT_TYPE_ENDCAP"||p==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":p==="LAYOUT_TYPE_SURVEY"?"s":p==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):p="u";f.set(M.layoutId,p);if(p==="u"){var t={};p=K;M=(t.c=M.layoutId,t);p.U.Th("uct",M)}}z= K.nJ();QR={contentCpn:z,QP:f};M={};f=(M.ct=f.size,M.c=z,M);K.U.Th("acc",f)}; ks8=function(){QR={contentCpn:"",QP:new Map}}; qT=function(z){var K;return(K=QR.QP.get(z))!=null?K:"u"}; mE=function(z,K,f){z.U.Th(K,f);hva(z)}; aWa=function(z){var K=z.layoutId,f=z.Mb;if(z.sP){var M={};mE(z.Sv,"slso",(M.ec=K,M.is=f,M.ctp=qT(K),M))}}; lB=function(z){var K=z.layoutId,f=z.Mb;if(z.sP){var M={};mE(z.Sv,"slse",(M.ec=K,M.is=f,M.ctp=qT(K),M))}}; Rv5=function(z){var K=z.layoutId,f=z.Mb,M=z.Sv;z.sP&&(z={},mE(M,"sleo",(z.xc=K,z.is=f,z.ctp=qT(K),z)),hva(M))}; S$g=function(z){var K=z.cpn,f=z.Sv;z=z.Mb;var M=f.nJ(),p={};mE(f,"ce",(p.ec=K,p.ia=K!==M,p.r=QR.QP.has(K),p.is=z,p.ctp=qT(K),p))}; hva=function(z){if(z.nJ()!==QR.contentCpn){var K={};K=(K.c=QR.contentCpn,K);z.U.Th("ccm",K)}}; uNo=function(z){var K=z.cpn,f=z.Sv;z=z.Mb;var M=f.nJ(),p={};mE(f,"cx",(p.xc=K,p.ia=K!==M,p.r=QR.QP.has(K),p.is=z,p.ctp=qT(K),p))}; LcW=function(z){this.params=z;this.S=new Set}; EkW=function(z,K,f){if(!z.S.has(K)){z.S.add(K);var M={};z.params.OT.Nc(K,Object.assign({},f,(M.p_ac=z.params.adCpn,M.p_isv=z.params.gY&&z.params.Zf,M)))}}; nn=function(z,K,f){if(VR(z.params.OT.Ef.get(),!0)){var M=f.flush,p={};EkW(z,K,(p.cts=f.currentTimeSec,p.f=M,p))}}; Psp=function(z,K){this.Sv=z;this.Ef=K}; Wf=function(z){var K=[];if(z){z=g.a(Object.entries(z));for(var f=z.next();!f.done;f=z.next()){var M=g.a(f.value);f=M.next().value;M=M.next().value;M!==void 0&&(M=typeof M==="boolean"?""+ +M:(""+M).replace(/[:,=]/g,"_"),K.push(f+"."+M))}}return K.join(";")}; Jq=function(z,K,f){K=K===void 0?{}:K;this.errorCode=z;this.details=K;this.severity=f===void 0?0:f}; gI=function(z){return z===1||z===2}; iB=function(z,K){K=K===void 0?0:K;if(z instanceof Jq)return z;z=z&&z instanceof Error?z:Error(""+z);gI(K)?g.sm(z):g.Al(z);return new Jq(K===1?"player.fatalexception":"player.exception",{name:""+z.name,message:""+z.message},K)}; Hd8=function(z,K){function f(){var M=g.i8.apply(0,arguments);z.removeEventListener("playing",f);K.apply(null,g.P(M))} z.addEventListener("playing",f)}; dI=function(){var z=g.CW("yt.player.utils.videoElement_");z||(z=g.zi("VIDEO"),g.ov("yt.player.utils.videoElement_",z));return z}; cf=function(z){var K=dI();return!!(K&&K.canPlayType&&K.canPlayType(z))}; Aq=function(z){if(/opus/.test(z)&&g.sq&&!nl("38")&&!g.CJ())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(z);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(z);if(/webm/.test(z)&&!hbI())return!1;z==='audio/mp4; codecs="mp4a.40.2"'&&(z='video/mp4; codecs="avc1.4d401f"');return!!cf(z)}; Q3T=function(z){try{var K=Aq('video/mp4; codecs="avc1.42001E"')||Aq('video/webm; codecs="vp9"');return(Aq('audio/mp4; codecs="mp4a.40.2"')||Aq('audio/webm; codecs="opus"'))&&(K||!z)||cf('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(f){return"html5.missingapi"}}; YI=function(){var z=dI();return!(!z.webkitSupportsPresentationMode||typeof z.webkitSetPresentationMode!=="function")}; XI=function(){var z=dI();try{var K=z.muted;z.muted=!K;return z.muted!==K}catch(f){}return!1}; q$S=function(){var z;return((z=navigator.connection)==null?void 0:z.type)||""}; g.xI=function(){WK.apply(this,arguments)}; FI=function(z,K,f,M,p,t,B,v){this.sampleRate=z===void 0?0:z;this.numChannels=K===void 0?0:K;this.spatialAudioType=f===void 0?"SPATIAL_AUDIO_TYPE_NONE":f;this.S=M===void 0?!1:M;this.T=p;this.J=t;this.audioQuality=B===void 0?"AUDIO_QUALITY_UNKNOWN":B;this.Y=v===void 0?!1:v}; Z8=function(z,K,f,M,p,t,B,v,I){this.width=z;this.height=K;this.quality=t||Oq(z,K);this.qualityOrdinal=g.rI[this.quality];this.fps=f||0;this.stereoLayout=!p||M!=null&&M!=="UNKNOWN"&&M!=="RECTANGULAR"?0:p;this.projectionType=M?M==="EQUIRECTANGULAR"&&p===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":M:"UNKNOWN";(z=B)||(z=g.rI[this.quality],z===0?z="T\u01b0\u0323 \u0111\u00f4\u0323ng":(K=this.fps,f=this.projectionType,z=z.toString()+(f==="EQUIRECTANGULAR"||f==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||f==="MESH"? "s":"p")+(K>55?"60":K>49?"50":K>39?"48":"")));this.qualityLabel=z;this.S=v||"";this.primaries=I||""}; Oq=function(z,K){var f=Math.max(z,K);z=Math.min(z,K);K=oA[0];for(var M=0;M=Math.floor(t*16/9)*1.3||z>=t*1.3)return K;K=p}return"tiny"}; Uq=function(z,K,f){f=f===void 0?{}:f;this.id=z;this.mimeType=K;f.yE>0||(f.yE=16E3);Object.assign(this,f);z=g.a(this.id.split(";"));this.itag=z.next().value;this.S=z.next().value;this.containerType=Cn(K);this.Ra=T5[this.itag]||""}; zr=function(z){return z.Ra==="9"||z.Ra==="("||z.Ra==="9h"||z.Ra==="(h"}; mS8=function(z){return z.Ra==="H"||z.Ra==="h"}; KZ=function(z){return z.Ra==="9h"||z.Ra==="(h"}; lWW=function(z){return!!z.UW&&!!z.UW.fairplay&&(z.Ra==="("||z.Ra==="(h"||z.Ra==="A"||z.Ra==="MEAC3")||$r&&!!z.UW&&z.Ra==="1e"}; fZ=function(z){return z.Ra==="1"||z.Ra==="1h"||$r&&z.Ra==="1e"}; Mh=function(z){return z.Ra==="mac3"||z.Ra==="meac3"||z.Ra==="m"||z.Ra==="i"}; pZ=function(z){return z.Ra==="MAC3"||z.Ra==="MEAC3"||z.Ra==="M"||z.Ra==="I"}; g.tn=function(z){return z.containerType===1}; V$I=function(z){return z.Ra==="("||z.Ra==="(h"||z.Ra==="H"||$r&&z.Ra==="1e"}; BA=function(z){return z.mimeType==="application/x-mpegURL"}; g.Nh=function(z,K){return{itag:+z.itag,lmt:K?0:z.lastModified,xtags:z.S||""}}; nka=function(z){var K=navigator.mediaCapabilities;if(K==null||!K.decodingInfo||z.Ra==="f")return Promise.resolve();var f={type:z.audio&&z.video?"file":"media-source"};z.video&&(f.video={contentType:z.mimeType,width:z.video.width||640,height:z.video.height||360,bitrate:z.yE*8||1E6,framerate:z.video.fps||30});z.audio&&(f.audio={contentType:z.mimeType,channels:""+(z.audio.numChannels||2),bitrate:z.yE*8||128E3,samplerate:z.audio.sampleRate||44100});return K.decodingInfo(f).then(function(M){z.Y=M})}; vA=function(z){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(z)}; IC=function(z){return/(vp9|vp09|vp8|avc1|av01)/.test(z)}; Gr=function(z){return z.includes("vtt")||z.includes("text/mp4")}; Cn=function(z){return z.indexOf("/mp4")>=0?1:z.indexOf("/webm")>=0?2:z.indexOf("/x-flv")>=0?3:z.indexOf("/vtt")>=0?4:0}; bh=function(z,K,f,M,p,t){var B=new FI;K in g.rI||(K="small");K==="light"&&(K="tiny");M&&p?(p=Number(p),M=Number(M)):(p=g.rI[K],M=Math.round(p*16/9));t=new Z8(M,p,0,null,void 0,K,t);z=unescape(z.replace(/"/g,'"'));return new Uq(f,z,{audio:B,video:t})}; el=function(z){var K="id="+z.id;z.video&&(K+=", res="+z.video.qualityLabel);var f,M;return K+", byterate=("+((f=z.X8)==null?void 0:f.toFixed(0))+", "+((M=z.yE)==null?void 0:M.toFixed(0))+")"}; wn=function(z,K){return{start:function(f){return z[f]}, end:function(f){return K[f]}, length:z.length}}; Wca=function(z,K,f){for(var M=[],p=[],t=0;t=K)return f}catch(M){}return-1}; kr=function(z,K){return yr(z,K)>=0}; JPp=function(z,K){if(!z)return NaN;K=yr(z,K);return K>=0?z.start(K):NaN}; hn=function(z,K){if(!z)return NaN;K=yr(z,K);return K>=0?z.end(K):NaN}; aC=function(z){return z&&z.length?z.end(z.length-1):NaN}; RC=function(z){return aC(z)>0}; Sl=function(z,K){z=hn(z,K);return z>=0?z-K:0}; rn=function(z,K,f){for(var M=[],p=[],t=0;tf||(M.push(Math.max(K,z.start(t))-K),p.push(Math.min(f,z.end(t))-K));return wn(M,p)}; Z0=function(z,K,f,M){g.Dv.call(this);var p=this;this.oF=z;this.start=K;this.end=f;this.isActive=M;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.Yz={error:function(){!p.CH()&&p.isActive&&p.publish("error",p)}, updateend:function(){!p.CH()&&p.isActive&&p.publish("updateend",p)}}; this.oF.Qw(this.Yz);this.tq=this.isActive}; CZ=function(z,K,f,M,p,t){g.Dv.call(this);var B=this;this.P1=z;this.Ur=K;this.id=f;this.containerType=M;this.Ra=p;this.Zf=t;this.Hp=this.Uh=this.NT=null;this.zp=!1;this.appendWindowStart=this.timestampOffset=0;this.mX=wn([],[]);this.g9=!1;this.h7=[];this.mF=oC?[]:void 0;this.Nv=function(I){return B.publish(I.type,B)}; var v;if((v=this.P1)==null?0:v.addEventListener)this.P1.addEventListener("updateend",this.Nv),this.P1.addEventListener("error",this.Nv)}; Tr=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; U3=function(z,K){this.eE=z;this.S=K===void 0?!1:K;this.Y=!1}; zx=function(z,K,f){f=f===void 0?!1:f;g.J.call(this);this.mediaElement=z;this.u_=K;this.isView=f;this.W=0;this.J=!1;this.C=!0;this.N=0;this.callback=null;this.D=!1;this.u_||(this.Ur=this.mediaElement.H1());this.events=new g.xI(this);g.d(this,this.events);this.T=new U3(this.u_?window.URL.createObjectURL(this.u_):this.Ur.webkitMediaSourceURL,!0);z=this.u_||this.Ur;JV(this.events,z,["sourceopen","webkitsourceopen"],this.jcL);JV(this.events,z,["sourceclose","webkitsourceclose"],this.dLL);this.G={updateend:this.cq}}; gkp=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; idW=function(z,K){Kw(z)?g.mZ(function(){K(z)}):z.callback=K}; dSW=function(z,K,f){if($m){var M;fw(z.mediaElement,{l:"mswssb",sr:(M=z.mediaElement.AL)==null?void 0:M.o1()},!1);K.Qw(z.G,z);f.Qw(z.G,z)}z.S=K;z.Y=f;g.d(z,K);g.d(z,f)}; MB=function(z){return!!z.S||!!z.Y}; Kw=function(z){try{return pw(z)==="open"}catch(K){return!1}}; pw=function(z){if(z.u_)return z.u_.readyState;switch(z.Ur.webkitSourceState){case z.Ur.SOURCE_OPEN:return"open";case z.Ur.SOURCE_ENDED:return"ended";default:return"closed"}}; tj=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; cPo=function(z){Kw(z)&&(z.u_?z.u_.endOfStream():z.Ur.webkitSourceEndOfStream(z.Ur.EOS_NO_ERROR))}; s3W=function(z,K,f,M){if(!z.S||!z.Y)return null;var p=z.S.isView()?z.S.oF:z.S,t=z.Y.isView()?z.Y.oF:z.Y,B=new zx(z.mediaElement,z.u_,!0);B.T=z.T;dSW(B,new Z0(p,K,f,M),new Z0(t,K,f,M));Kw(z)||z.S.nG(z.S.MB());return B}; APS=function(z){var K;(K=z.S)==null||K.RA();var f;(f=z.Y)==null||f.RA();z.C=!1}; BC=function(){var z=this;this.JY=this.sI=aTS;this.promise=new g.Vh(function(K,f){z.sI=K;z.JY=f})}; NB=function(){g.J.call(this);this.FZ=!1;this.eE=null;this.G=this.W=!1;this.J=new g.kZ;this.AL=null;g.d(this,this.J)}; vC=function(z){z=z.F3();return z.length<1?NaN:z.end(z.length-1)}; j3a=function(z){!z.Y&&gkp()&&(z.T?z.T.then(function(){return j3a(z)}):z.yc()||(z.Y=z.HC()))}; Y$v=function(z){z.Y&&(z.Y.dispose(),z.Y=void 0)}; fw=function(z,K,f){var M;((M=z.AL)==null?0:M.i8())&&z.AL.Th("rms",K,f===void 0?!1:f)}; XPd=function(z,K,f){z.isPaused()||z.getCurrentTime()>K||f>10||(z.play(),g.Sg(function(){XPd(z,z.getCurrentTime(),f+1)},500))}; xSq=function(z,K){z.eE&&z.eE.equals(K)||(z.eE&&z.eE.dispose(),z.eE=K)}; I4=function(z){return Sl(z.MV(),z.getCurrentTime())}; Fco=function(z,K){if(z.S_()===0||z.hasError())return!1;var f=z.getCurrentTime()>0;return K>=0&&(z=z.F3(),z.length||!f)?kr(z,K):f}; Gx=function(z){z.yc()&&(z.AL&&z.AL.Vz("rs_s"),TN&&z.getCurrentTime()>0&&z.seekTo(0),z.bu(),z.load(),xSq(z,null));delete z.T}; bq=function(z){switch(z.Ko()){case 2:return"progressive.net.retryexhausted";case 3:return z=z.qV(),(z==null?0:z.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||OdT&&(z==null?0:z.includes("audio_output_change"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; g.ex=function(z,K,f){this.Pj=K===void 0?null:K;this.seekSource=f===void 0?null:f;this.state=z||64}; wf=function(z,K,f){f=f===void 0?!1:f;return rPg(z,K.getCurrentTime(),(0,g.X)(),I4(K),f)}; Db=function(z,K,f,M){if(!(K===z.state&&f===z.Pj&&M===z.seekSource||K!==void 0&&(K&128&&!f||K&2&&K&16))){var p;if(p=K)p=K||z.state,p=!!(p&16||p&32);z=new g.ex(K,f,p?M?M:z.seekSource:null)}return z}; yW=function(z,K,f){return Db(z,z.state|K,null,f===void 0?null:f)}; km=function(z,K){return Db(z,z.state&~K,null,null)}; hj=function(z,K,f,M){return Db(z,(z.state|K)&~f,null,M===void 0?null:M)}; g.Z=function(z,K){return!!(z.state&K)}; g.a4=function(z,K){return K.state===z.state&&K.Pj===z.Pj}; R4=function(z){return z.isPlaying()&&!g.Z(z,16)&&!g.Z(z,32)}; Sx=function(z){return g.Z(z,128)?-1:g.Z(z,2)?0:g.Z(z,2048)?3:g.Z(z,64)?-1:g.Z(z,1)&&!g.Z(z,32)?3:g.Z(z,8)?1:g.Z(z,4)?2:-1}; Lw=function(z,K,f,M,p,t,B,v,I,G,b,e,w,D,y,R,S){g.J.call(this);var E=this;this.xR=z;this.slot=K;this.layout=f;this.Gh=M;this.E3=p;this.i_=t;this.Uf=B;this.c8=v;this.v1=I;this.iy=G;this.position=e;this.W=w;this.Ef=D;this.QO=y;this.DU=R;this.context=S;this.s1=!0;this.C=!1;this.yh="not_rendering";this.Y=!1;this.T=new Eq;z=Dx(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Mc=new gE(f.qB,this.Gh,z,f.layoutId);var L;z=((L=uq(this))==null?void 0:L.progressCommands)||[];this.J=new Oco(I, z,f.layoutId,function(){return E.B$()}); this.S=new LcW({adCpn:this.layout.layoutId,OT:S.OT,gY:this.QO,Zf:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; EL=function(z){return{layoutId:z.GA(),Mb:z.QO,Sv:z.i_.get(),sP:z.xd()}}; PC=function(z,K){return K.layoutId!==z.layout.layoutId?(z.xR.aX(z.slot,K,new ei("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+z.layout.layoutId+("and LayoutType: "+z.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; HC=function(z){z.yh="rendering_start_requested";z.iy(-1)}; uq=function(z){return Dx(z.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; Zda=function(z){R3("Received layout exit signal when not in layout exit flow.",z.slot,z.layout)}; okS=function(z){var K;return((K=QW(z.i_.get(),2))==null?void 0:K.clientPlaybackNonce)||""}; qB=function(z,K){switch(K){case "normal":z.fI("complete");break;case "skipped":z.fI("skip");break;case "abandoned":jN(z.Mc,"impression")&&z.fI("abandon")}}; mf=function(z,K){z.C||(K=new g.S$(K.state,new g.ex),z.C=!0);return K}; lq=function(z,K){RA(K)?z.iy(1):g.Ld(K,4)&&!g.Ld(K,2)&&z.Q9();us(K,4)<0&&!(us(K,2)<0)&&z.V9()}; Csv=function(z){z.position===0&&(z.c8.get(),z=Dx(z.layout.clientMetadata,"metadata_type_ad_placement_config").kind,z={adBreakType:VW(z)},rl("ad_bl"),g.ZE(z))}; nw=function(z,K){s4(z.Mc,K,!z.Y)}; USg=function(z){var K;return(((K=uq(z))==null?void 0:K.progressCommands)||[]).findIndex(function(f){return!!g.A(f==null?void 0:f.command,Tcd)})!==-1}; WC=function(z,K){var f=Dx(z.clientMetadata,"metadata_type_eligible_for_ssap");return f===void 0?(R3("Expected SSAP eligibility in PlayerBytes factory",z),!1):K.xd(f)}; Jj=function(z,K){if(!MI(K.get(),"html5_ssap_pass_transition_reason"))return 3;switch(z){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return R3("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return R3("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:z}),3;default:Tl(z,"unknown layoutExitReason")}}; zPq=function(z){R3("getExitReason: unexpected reason",void 0,void 0,{reason:z})}; gf=function(z,K){if(MI(K.get(),"html5_ssap_pass_transition_reason"))switch(z){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return zPq(z),"abandoned";case 3:case 1:return zPq(z),"error";default:Tl(z,"unexpected transition reason")}else switch(z){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return R3("getExitReason: unexpected reason",void 0,void 0,{reason:z}),"error";default:Tl(z,"unexpected transition reason")}}; g.iq=function(z,K,f){Cp(z,f)||UG(z,K,f);Cp(z,"video_to_ad")||UG(z,K,"video_to_ad");Cp(z,"ad_to_video")||UG(z,K,"ad_to_video");Cp(z,"ad_to_ad")||UG(z,K,"ad_to_ad")}; df=function(z,K,f,M,p,t,B,v,I,G,b,e,w,D,y,R,S,E){Lw.call(this,z,K,f,M,p,t,B,v,G,b,e,w,D,y,R,S,E);var L=this;this.VW=I;this.l4=e;this.VQ=!0;this.Wp=this.Ae=0;this.jf=k0(function(){aWa(EL(L));L.xR.Rp(L.slot,L.layout)}); this.bZ=k0(function(){Rv5(EL(L));L.yh!=="rendering_stop_requested"&&L.l4(L);L.layoutExitReason?L.xR.e3(L.slot,L.layout,L.layoutExitReason):Zda(L)}); this.QR=new g.YZ(200);this.QR.listen("tick",function(){L.C6()}); g.d(this,this.QR)}; sL=function(z){z.Wp=Date.now();cC(z,z.Ae);z.QR.start()}; K$I=function(z){z.Ae=z.B$();z.EV(z.Ae/1E3,!0);cC(z,z.Ae)}; cC=function(z,K){K={current:K/1E3,duration:z.B$()/1E3};z.VW.get().x$("onAdPlaybackProgress",K)}; Aj=function(z){df.call(this,z.xR,z.slot,z.Wm,z.Gh,z.E3,z.i_,z.Uf,z.c8,z.VW,z.v1,z.iy,z.l4,z.Zx,z.X5,z.Ef,z.QO,z.DU,z.context)}; jx=function(z){df.call(this,z.xR,z.slot,z.Wm,z.Gh,z.E3,z.i_,z.Uf,z.c8,z.VW,z.v1,z.iy,z.l4,z.Zx,z.X5,z.Ef,z.QO,z.DU,z.context)}; Ym=function(){jx.apply(this,arguments)}; $Pa=function(z){return WC(z.slot,z.Ef.get())?new Ym(z):new Aj(z)}; Fv=function(z){Lw.call(this,z.callback,z.slot,z.Wm,z.Gh,z.E3,z.i_,z.Uf,z.c8,z.v1,z.iy,z.l4,z.Zx,z.X5,z.Ef,z.QO,z.DU,z.context);var K=this;this.adCpn="";this.kz=this.PT=0;this.jf=k0(function(){aWa(EL(K));K.xR.Rp(K.slot,K.layout)}); this.bZ=k0(function(){Rv5(EL(K));K.yh!=="rendering_stop_requested"&&K.l4(K);K.layoutExitReason?K.xR.e3(K.slot,K.layout,K.layoutExitReason):Zda(K)}); this.kd=z.kd;this.j3=z.j3;this.P8=z.P8;this.VW=z.VW;this.Kz=z.Kz;this.l4=z.l4;if(!this.xd()){MI(this.Ef.get(),"html5_disable_media_load_timeout")||(this.eB=new g.Kl(function(){K.D4("load_timeout",new ei("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); z=Xv(this.Ef.get());var f=xm(this.Ef.get());z&&f&&(this.Gn=new g.Kl(function(){var M=Dx(K.layout.clientMetadata,"metadata_type_preload_player_vars");M&&K.j3.get().U.preloadVideoByPlayerVars(M,2,300)}))}}; MXS=function(z,K){var f=Dx(K.clientMetadata,"metadata_type_ad_video_id"),M=Dx(K.clientMetadata,"metadata_type_legacy_info_card_vast_extension");f&&M&&z.Kz.get().U.Z().vx.add(f,{Tp:M});(K=Dx(K.clientMetadata,"metadata_type_sodar_extension_data"))&&pWp(z.kd.get(),K);fES(z.Uf.get(),!1)}; pRW=function(z){fES(z.Uf.get(),!0);var K;((K=z.shrunkenPlayerBytesConfig)==null?0:K.shouldRequestShrunkenPlayerBytes)&&z.Uf.get().u4(!1)}; tXq=function(z){return new OL(z)}; rf=function(){Fv.apply(this,arguments)}; OL=function(){rf.apply(this,arguments)}; BlT=function(z){return $Pa(Object.assign({},z,{xR:z.callback,iy:function(){}}))}; Nlg=function(z){return new Fv(Object.assign({},z,{iy:function(K){z.VW.get().x$("onAdIntroStateChange",K)}}))}; v58=function(z){function K(f){z.VW.get().CU(f)} return WC(z.slot,z.Ef.get())?tXq(Object.assign({},z,{iy:K})):new Fv(Object.assign({},z,{iy:K}))}; Zb=function(z){for(var K=z.Wm,f=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],M=g.a(iS()),p=M.next();!p.done;p=M.next())f.push(p.value);if(pn(K,{A9:f,sW:["LAYOUT_TYPE_MEDIA_BREAK"]}))return BlT(z);K=z.Wm;f=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];M=g.a(iS());for(p=M.next();!p.done;p=M.next())f.push(p.value);if(pn(K,{A9:f,sW:["LAYOUT_TYPE_MEDIA"]}))return If(z.Wm.clientMetadata,"metadata_type_ad_intro")?Nlg(z):v58(z)}; G9u=function(z){var K=Dx(z.clientMetadata,"metadata_type_ad_placement_config").kind,f=Dx(z.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:z.layoutId,adType:IEp(f),adBreakType:VW(K)}}; VW=function(z){switch(z){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}}; IEp=function(z){switch(z){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; bpp=function(z){try{return new o4(z.Pn,z.slot,z.layout,z.h9,z.jt,z.i_,z.n6,z.j3,z.Yb,z.Uf,z.mVe,z)}catch(K){}}; o4=function(z,K,f,M,p,t,B,v,I,G,b,e){g.J.call(this);this.Pn=z;this.slot=K;this.layout=f;this.h9=M;this.jt=p;this.i_=t;this.n6=B;this.j3=v;this.Yb=I;this.Uf=G;this.params=e;this.s1=!0;z=Zb(b);if(!z)throw Error("Invalid params for sublayout");this.f6=z}; eP8=function(){this.S=1;this.Y=new Eq}; Cw=function(z,K,f,M,p,t,B,v,I,G,b,e,w,D){g.J.call(this);this.callback=z;this.i_=K;this.n6=f;this.j3=M;this.Uf=p;this.U1=t;this.c8=B;this.Hg=v;this.slot=I;this.layout=G;this.h9=b;this.Kb=e;this.Yb=w;this.Ef=D;this.s1=!0;this.mB=!1;this.g$=[];this.C5=-1;this.tI=!1;this.oD=new eP8}; wRp=function(z){var K;return(K=z.layout.Om)!=null?K:Dx(z.layout.clientMetadata,"metadata_type_sub_layouts")}; Tx=function(z){return{Sv:z.i_.get(),Mb:!1,sP:z.xd()}}; DPT=function(z,K,f){if(z.zD()===z.g$.length-1){var M,p;R3("Unexpected skip requested during the last sublayout",(M=z.rh())==null?void 0:M.u8(),(p=z.rh())==null?void 0:p.gE(),{requestingSlot:K,requestingLayout:f})}}; yES=function(z,K,f){return f.layoutId!==UL(z,K,f)?(R3("onSkipRequested for a PlayerBytes layout that is not currently active",z.u8(),z.gE()),!1):!0}; k9d=function(z){z.zD()===z.g$.length-1&&R3("Unexpected skip with target requested during the last sublayout")}; hPI=function(z,K,f){return f.renderingContent===void 0&&f.layoutId!==UL(z,K,f)?(R3("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",z.u8(),z.gE(),{requestingSlot:K,requestingLayout:f}),!1):!0}; aEu=function(z,K,f,M){var p=Dx(K.gE().clientMetadata,"metadata_type_ad_pod_skip_target");if(p&&p>0&&p0)){R3("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",z.slot,z.layout,{indexToPlay:K,layoutId:z.layout.layoutId});break a}z.C5=K;K=z.rh();if(z.zD()>0&&!z.xd()){var f=z.c8.get();f.Y=!1;var M={};f.S&&f.videoId&&(M.cttAuthInfo={token:f.S,videoId:f.videoId});oV("ad_to_ad",M)}z.eL(K)}}; fb=function(z){Cw.call(this,z.Pn,z.i_,z.n6,z.j3,z.Uf,z.U1,z.c8,z.Hg,z.slot,z.layout,z.h9,z.Kb,z.Yb,z.Ef)}; u25=function(z){(z=z.rh())&&z.u1()}; MZ=function(z){Cw.call(this,z.Pn,z.i_,z.n6,z.j3,z.Uf,z.U1,z.c8,z.Hg,z.slot,z.layout,z.h9,z.Kb,z.Yb,z.Ef);this.h$=void 0}; L$S=function(z,K){z.KK()&&!Hf(z.oD.Y)||z.callback.e3(z.slot,z.layout,K)}; pb=function(z){return MI(z.Ef.get(),"html5_ssap_pass_transition_reason")}; E5q=function(z,K,f){K.GR().currentState<2&&(f=gf(f,z.Ef),K.wO(K.gE(),f));f=K.GR().S;z.MN(z.slot,K.gE(),f)}; PzS=function(z,K){if(z.oD.Y.currentState<2){var f=gf(K,z.Ef);f==="error"?z.callback.aX(z.slot,z.layout,new ei("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:K},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):$q(z.Kb,z.layout,f)}}; tQ=function(z,K,f){K.GR().currentState>=2||(K.wO(K.gE(),f),Hf(K.GR())&&(cd(z.Hg,z.slot,K.gE(),f),z.h$=void 0))}; Hpd=function(z,K){z.oD.S===2&&K!==z.nJ()&&R3("onClipEntered: unknown cpn",z.slot,z.layout,{cpn:K})}; QVg=function(z,K){var f=z.rh();if(f){var M=f.gE().layoutId,p=z.zD()+1;z.KK()?tQ(z,f,K):f.wO(f.gE(),K);p>=0&&pp&&B.gW(b,p-M);return b}; ipa=function(z,K,f){var M=Dx(K.clientMetadata,"metadata_type_sodar_extension_data");if(M)try{pWp(f,M)}catch(p){R3("Unexpected error when loading Sodar",z,K,{error:p})}}; dP8=function(z,K,f,M,p,t,B){e7(z,K,new g.S$(f,new g.ex),M,p,B,!1,t)}; e7=function(z,K,f,M,p,t,B,v){B=B===void 0?!0:B;RA(f)&&Sa(p,0,null)&&(!jN(z,"impression")&&v&&v(),z.fI("impression"));jN(z,"impression")&&(g.Ld(f,4)&&!g.Ld(f,2)&&z.ZU("pause"),us(f,4)<0&&!(us(f,2)<0)&&z.ZU("resume"),g.Ld(f,16)&&p>=.5&&z.ZU("seek"),B&&g.Ld(f,2)&&wi(z,f.state,K,M,p,t))}; wi=function(z,K,f,M,p,t,B,v){jN(z,"impression")&&(t?(t=p-M,t=t>=-1&&t<=2):t=Math.abs(M-p)<=1,DM(z,K,t?M:p,f,M,B,v&&t),t&&z.fI("complete"))}; DM=function(z,K,f,M,p,t,B){AA(z,f*1E3,B);p<=0||f<=0||(K==null?0:g.Z(K,16))||(K==null?0:g.Z(K,32))||(Sa(f,p*.25,M)&&(t&&!jN(z,"first_quartile")&&t("first"),z.fI("first_quartile")),Sa(f,p*.5,M)&&(t&&!jN(z,"midpoint")&&t("second"),z.fI("midpoint")),Sa(f,p*.75,M)&&(t&&!jN(z,"third_quartile")&&t("third"),z.fI("third_quartile")))}; cEa=function(z,K){jN(z,"impression")&&z.ZU(K?"fullscreen":"end_fullscreen")}; sV5=function(z){jN(z,"impression")&&z.ZU("clickthrough")}; AE8=function(z){z.ZU("active_view_measurable")}; jVT=function(z){jN(z,"impression")&&!jN(z,"seek")&&z.ZU("active_view_fully_viewable_audible_half_duration")}; YGS=function(z){jN(z,"impression")&&!jN(z,"seek")&&z.ZU("active_view_viewable")}; XRS=function(z){jN(z,"impression")&&!jN(z,"seek")&&z.ZU("audio_audible")}; xPS=function(z){jN(z,"impression")&&!jN(z,"seek")&&z.ZU("audio_measurable")}; F$8=function(z,K,f,M,p,t,B,v,I,G,b,e){this.callback=z;this.slot=K;this.layout=f;this.n6=M;this.Mc=p;this.Uf=t;this.QM=B;this.E3=v;this.kd=I;this.Ef=G;this.Gh=b;this.i_=e;this.VQ=!0;this.O0=this.yh=null;this.adCpn=void 0;this.S=!1}; Op8=function(z,K,f){var M;bb(z.Gh.get(),"ads_qua","cpn."+Dx(z.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((M=QW(z.i_.get(),2))==null?void 0:M.clientPlaybackNonce)+";qt."+K+";clr."+f)}; rES=function(z,K){var f,M;bb(z.Gh.get(),"ads_imp","cpn."+Dx(z.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((f=QW(z.i_.get(),2))==null?void 0:f.clientPlaybackNonce)+";clr."+K+";skp."+!!g.A((M=Dx(z.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:M.skipOrPreviewRenderer,yk))}; kq=function(z){return{enterMs:Dx(z.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:Dx(z.clientMetadata,"metadata_type_layout_exit_ms")}}; hQ=function(z,K,f,M,p,t,B,v,I,G,b,e,w,D){NZ.call(this,z,K,f,M,p,B,v,I,G,e);this.QM=t;this.kd=b;this.E3=w;this.Ef=D;this.O0=this.yh=null}; ZpW=function(z,K){var f;bb(z.Gh.get(),"ads_imp","acpn."+((f=QW(z.i_.get(),2))==null?void 0:f.clientPlaybackNonce)+";clr."+K)}; o5u=function(z,K,f){var M;bb(z.Gh.get(),"ads_qua","cpn."+Dx(z.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((M=QW(z.i_.get(),2))==null?void 0:M.clientPlaybackNonce)+";qt."+K+";clr."+f)}; a$=function(z,K,f,M,p,t,B,v,I,G,b,e,w,D,y,R,S,E,L,q,V,c){this.Yb=z;this.h9=K;this.Kb=f;this.i_=M;this.n6=p;this.Uf=t;this.U1=B;this.Gh=v;this.QM=I;this.ML=G;this.E3=b;this.kd=e;this.j3=w;this.P8=D;this.c8=y;this.VW=R;this.v1=S;this.Kz=E;this.Ef=L;this.S=q;this.context=V;this.DU=c}; R$=function(z,K,f,M,p,t,B,v,I,G,b,e,w,D,y,R,S,E,L){this.Yb=z;this.h9=K;this.Kb=f;this.Gh=M;this.E3=p;this.kd=t;this.j3=B;this.i_=v;this.Uf=I;this.U1=G;this.P8=b;this.c8=e;this.VW=w;this.v1=D;this.Kz=y;this.Ef=R;this.n6=S;this.context=E;this.DU=L}; Cz5=function(z,K,f,M){wM.call(this,"survey-interstitial",z,K,f,M)}; S7=function(z,K,f,M,p){QU.call(this,f,z,K,M);this.Gh=p;z=Dx(K.clientMetadata,"metadata_type_ad_placement_config");this.Mc=new gE(K.qB,p,z,K.layoutId)}; ub=function(z){return Math.round(z.width)+"x"+Math.round(z.height)}; ES=function(z,K,f){f=f===void 0?Lb:f;f.widthz.width*z.height*.2)return{JG:3,VF:501,errorMessage:"ad("+ub(f)+") to container("+ub(z)+") ratio exceeds limit."};if(f.height>z.height/3-K)return{JG:3,VF:501,errorMessage:"ad("+ub(f)+") covers container("+ub(z)+") center."}}; Tld=function(z,K){var f=Dx(z.clientMetadata,"metadata_type_ad_placement_config");return new gE(z.qB,K,f,z.layoutId)}; Pp=function(z){return Dx(z.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; Hp=function(z,K,f,M){wM.call(this,"invideo-overlay",z,K,f,M);this.interactionLoggingClientData=M}; Qk=function(z,K,f,M,p,t,B,v,I,G,b,e){QU.call(this,t,z,K,p);this.Gh=f;this.J=B;this.Uf=v;this.v1=I;this.Ef=G;this.W=b;this.C=e;this.Mc=Tld(K,f)}; UP5=function(){var z=["metadata_type_invideo_overlay_ad_renderer"];iS().forEach(function(K){z.push(K)}); return{A9:z,sW:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; qZ=function(z,K,f,M,p,t,B,v,I,G,b,e,w){QU.call(this,t,z,K,p);this.Gh=f;this.J=B;this.D=v;this.Uf=I;this.v1=G;this.Ef=b;this.W=e;this.C=w;this.Mc=Tld(K,f)}; zfd=function(){for(var z=["metadata_type_invideo_overlay_ad_renderer"],K=g.a(iS()),f=K.next();!f.done;f=K.next())z.push(f.value);return{A9:z,sW:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; m3=function(z){this.Uf=z;this.S=!1}; Kkd=function(z,K,f){wM.call(this,"survey",z,{},K,f)}; lb=function(z,K,f,M,p,t,B){QU.call(this,f,z,K,M);this.J=p;this.Uf=t;this.Ef=B}; $dS=function(z,K,f,M,p,t,B,v,I,G){this.qv=z;this.Uf=K;this.Gh=f;this.J=M;this.E3=p;this.Y=t;this.T=B;this.v1=v;this.Ef=I;this.S=G}; flI=function(z,K,f,M,p,t,B,v,I,G){this.qv=z;this.Uf=K;this.Gh=f;this.J=M;this.E3=p;this.Y=t;this.T=B;this.v1=v;this.Ef=I;this.S=G}; Vk=function(z,K,f,M,p,t,B,v,I,G){G5.call(this,z,K,f,M,p,t,B,I);this.YI=v;this.i_=G}; Mhv=function(){var z=IWT();z.A9.push("metadata_type_ad_info_ad_metadata");return z}; pY5=function(z,K,f,M,p,t,B){this.qv=z;this.Uf=K;this.Gh=f;this.Y=M;this.YI=p;this.S=t;this.i_=B}; thp=function(z,K,f,M,p,t,B,v){this.qv=z;this.Uf=K;this.Gh=f;this.Y=M;this.YI=p;this.S=t;this.Ef=B;this.i_=v}; nb=function(z,K){this.slotId=K;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=z(this.triggerType)}; Wp=function(z,K){this.adPodIndex=z;this.S=K.length;this.adBreakLengthSeconds=K.reduce(function(M,p){return M+p},0); var f=0;for(z+=1;z0}; y3=function(z){return!!(z.GO&&z.slot&&z.layout)}; kP=function(z){var K,f=(K=z.config)==null?void 0:K.adPlacementConfig;z=z.renderer;return!(!f||f.kind==null||!z)}; Rfv=function(z){if(!vI(z.adLayoutMetadata))return!1;z=z.renderingContent;return g.A(z,kI)||g.A(z,hq)||g.A(z,D8)||g.A(z,yR)?!0:!1}; hv=function(z){return z.playerVars!==void 0&&z.pings!==void 0&&z.externalVideoId!==void 0}; nU=function(z){if(!vI(z.adLayoutMetadata))return!1;z=z.renderingContent;var K=g.A(z,ax);return K?Q3(K):(K=g.A(z,qv))?hv(K):(K=g.A(z,ms))?K.playerVars!==void 0:(K=g.A(z,kI))?K.durationMilliseconds!==void 0:g.A(z,lJ)||g.A(z,V3)?!0:!1}; Q3=function(z){z=(z.sequentialLayouts||[]).map(function(K){return g.A(K,WI)}); return z.length>0&&z.every(nU)}; gb=function(z){return vI(z.adLayoutMetadata)?(z=g.A(z.renderingContent,Jv))&&z.pings?!0:!1:!1}; HIS=function(z){if(!vI(z.adLayoutMetadata))return!1;if(g.A(z.renderingContent,SBS)||g.A(z.renderingContent,utS))return!0;var K=g.A(z.renderingContent,iJ);return g.A(z.renderingContent,db)||g.A(K==null?void 0:K.sidePanel,Lkv)||g.A(K==null?void 0:K.sidePanel,EHg)||g.A(K==null?void 0:K.sidePanel,PfS)?!0:!1}; Vhq=function(z){var K;(K=!z)||(K=z.adSlotMetadata,K=!((K==null?void 0:K.slotId)!==void 0&&(K==null?void 0:K.slotType)!==void 0));if(K||!(QU5(z)||z.slotEntryTrigger&&z.slotFulfillmentTriggers&&z.slotExpirationTriggers))return!1;var f;z=(f=z.fulfillmentContent)==null?void 0:f.fulfilledLayout;return(f=g.A(z,WI))?nU(f):(f=g.A(z,cI))?HIS(f):(f=g.A(z,qBd))?Rfv(f):(f=g.A(z,mdu))?hfv(f):(f=g.A(z,lla))?vI(f.adLayoutMetadata)?g.A(f.renderingContent,Ix)?!0:!1:!1:(z=g.A(z,sF))?gb(z):!1}; QU5=function(z){var K;z=g.A((K=z.fulfillmentContent)==null?void 0:K.fulfilledLayout,cI);var f;return z&&((f=z.adLayoutMetadata)==null?void 0:f.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&z.layoutExitNormalTriggers===void 0}; nH8=function(z){var K;return(z==null?void 0:(K=z.adSlotMetadata)==null?void 0:K.slotType)==="SLOT_TYPE_IN_PLAYER"}; J0v=function(z,K){var f;if((f=z.questions)==null||!f.length||!z.playbackCommands||(K===void 0||!K)&&z.questions.length!==1)return!1;z=g.a(z.questions);for(K=z.next();!K.done;K=z.next()){K=K.value;var M=f=void 0,p=((f=g.A(K,Av))==null?void 0:f.surveyAdQuestionCommon)||((M=g.A(K,je))==null?void 0:M.surveyAdQuestionCommon);if(!WkW(p))return!1}return!0}; gHW=function(z){z=((z==null?void 0:z.playerOverlay)||{}).instreamSurveyAdRenderer;var K;if(z)if(z.playbackCommands&&z.questions&&z.questions.length===1){var f,M=((K=g.A(z.questions[0],Av))==null?void 0:K.surveyAdQuestionCommon)||((f=g.A(z.questions[0],je))==null?void 0:f.surveyAdQuestionCommon);K=WkW(M)}else K=!1;else K=!1;return K}; WkW=function(z){if(!z)return!1;z=g.A(z.instreamAdPlayerOverlay,YP);var K=g.A(z==null?void 0:z.skipOrPreviewRenderer,yk),f=g.A(z==null?void 0:z.adInfoRenderer,Xd);return(g.A(z==null?void 0:z.skipOrPreviewRenderer,xP)||K)&&f?!0:!1}; iIW=function(z){return z.linearAds!=null&&vI(z.adLayoutMetadata)}; ddS=function(z){return z.linearAd!=null&&z.adVideoStart!=null}; c0o=function(z){if(isNaN(Number(z.timeoutSeconds))||!z.text||!z.ctaButton||!g.A(z.ctaButton,g.Fd)||!z.brandImage)return!1;var K;return z.backgroundImage&&g.A(z.backgroundImage,OF)&&((K=g.A(z.backgroundImage,OF))==null?0:K.landscape)?!0:!1}; rb=function(z,K,f,M,p,t,B,v){g.J.call(this);this.Ef=z;this.S=K;this.Y=M;this.i_=p;this.J=t;this.T=B;this.j3=v}; jUq=function(z,K,f){var M,p=((M=f.adSlots)!=null?M:[]).map(function(v){return g.A(v,ZI)}); if(f.RM)if(Dx(K.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))L6(z.S.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},K.slotId); else{if(z.Ef.get().U.Z().B("h5_check_forecasting_renderer_for_throttled_midroll")){var t=f.GB.filter(function(v){var I;return((I=v.renderer)==null?void 0:I.clientForecastingAdRenderer)!=null}); t.length!==0?sUS(z.T,t,p,K.slotId,f.ssdaiAdsConfig):L6(z.S.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},K.slotId)}else L6(z.S.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},K.slotId); A0I(z.J,K)}else{var B;M={zK:Math.round(((t=Dx(K.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:t.zK)||0),EU:(B=Dx(K.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:B.EU};sUS(z.T,f.GB,p,K.slotId,f.ssdaiAdsConfig,M)}}; xdg=function(z,K,f,M,p,t,B){var v=QW(z.i_.get(),1);if(YB8(z.Ef.get())){var I=ox(z.Y.get(),f,M,p,v.clientPlaybackNonce,v.ZD,v.daiEnabled,v,t,B);XYg(z,I);L6(z.S.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return I},K)}else L6(z.S.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return ox(z.Y.get(),f,M,p,v.clientPlaybackNonce,v.ZD,v.daiEnabled,v,t,B)},K)}; XYg=function(z,K){K=g.a(K);for(var f=K.next();!f.done;f=K.next()){var M=f.value;if(M.slotType==="SLOT_TYPE_PLAYER_BYTES"&&M.fulfilledLayout)if(f=void 0,M.fulfilledLayout.renderingContent)f=Dx(M.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(M.fulfilledLayout.Om){M=g.a(M.fulfilledLayout.Om);for(var p=M.next();!p.done&&(p=p.value,!p.renderingContent||!(f=Dx(p.clientMetadata,"metadata_type_player_vars")));p=M.next());}}else f=void 0;if(f){z.j3.get().U.preloadVideoByPlayerVars(f, 2,300);break}}}; OII=function(z,K,f,M,p,t,B){K=FkI(K,t,Number(M.prefetchMilliseconds)||0,B);z=K instanceof C?K:CU(z,M,p,K,f);return z instanceof C?z:[z]}; r0S=function(z,K,f,M,p){var t=E4(z.Y.get(),"SLOT_TYPE_AD_BREAK_REQUEST");M=[new Oj({getAdBreakUrl:M.getAdBreakUrl,zK:0,EU:0}),new Bd(!0)];z=K.pauseDurationMs?K.lactThresholdMs?{slotId:t,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new Mv(z.S,t),slotFulfillmentTriggers:[new Nza(z.S)],slotExpirationTriggers:[new Cb(z.S,p),new KU(z.S,t)],fH:"core",clientMetadata:new w3(M),adSlotLoggingData:f}:new C("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new C("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return z instanceof C?z:[z]}; ZI5=function(z){var K,f;return((K=z.renderer)==null?void 0:(f=K.adBreakServiceRenderer)==null?void 0:f.getAdBreakUrl)!==void 0}; Tc=function(z,K,f){if(z.beforeContentVideoIdStartedTrigger)z=z.beforeContentVideoIdStartedTrigger?new JQ(bY,K,z.id):new C("Not able to create BeforeContentVideoIdStartedTrigger");else{if(z.layoutIdExitedTrigger){var M;K=(M=z.layoutIdExitedTrigger)!=null&&M.triggeringLayoutId?new AQ(bY,z.layoutIdExitedTrigger.triggeringLayoutId,z.id):new C("Not able to create LayoutIdExitedTrigger")}else{if(z.layoutExitedForReasonTrigger){var p,t;((p=z.layoutExitedForReasonTrigger)==null?0:p.triggeringLayoutId)&&((t= z.layoutExitedForReasonTrigger)==null?0:t.layoutExitReason)?(K=vHo(z.layoutExitedForReasonTrigger.layoutExitReason),z=K instanceof C?K:new sS(bY,z.layoutExitedForReasonTrigger.triggeringLayoutId,[K],z.id)):z=new C("Not able to create LayoutIdExitedForReasonTrigger")}else{if(z.onLayoutSelfExitRequestedTrigger){var B;K=(B=z.onLayoutSelfExitRequestedTrigger)!=null&&B.triggeringLayoutId?new o$(bY,z.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,z.id):new C("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(z.onNewPlaybackAfterContentVideoIdTrigger)z= z.onNewPlaybackAfterContentVideoIdTrigger?new Cb(bY,K,z.id):new C("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(z.skipRequestedTrigger){var v;K=(v=z.skipRequestedTrigger)!=null&&v.triggeringLayoutId?new US(bY,z.skipRequestedTrigger.triggeringLayoutId,z.id):new C("Not able to create SkipRequestedTrigger")}else if(z.slotIdEnteredTrigger){var I;K=(I=z.slotIdEnteredTrigger)!=null&&I.triggeringSlotId?new zc(bY,z.slotIdEnteredTrigger.triggeringSlotId,z.id):new C("Not able to create SlotIdEnteredTrigger")}else if(z.slotIdExitedTrigger){var G; K=(G=z.slotIdExitedTrigger)!=null&&G.triggeringSlotId?new KU(bY,z.slotIdExitedTrigger.triggeringSlotId,z.id):new C("Not able to create SkipRequestedTrigger")}else if(z.surveySubmittedTrigger){var b;K=(b=z.surveySubmittedTrigger)!=null&&b.triggeringLayoutId?new tv(bY,z.surveySubmittedTrigger.triggeringLayoutId,z.id):new C("Not able to create SurveySubmittedTrigger")}else{if(z.mediaResumedTrigger)z=z.mediaResumedTrigger&&z.id?new IlI(z.id):new C("Not able to create MediaResumedTrigger");else{if(z.closeRequestedTrigger){var e; K=(e=z.closeRequestedTrigger)!=null&&e.triggeringLayoutId?new gi(bY,z.closeRequestedTrigger.triggeringLayoutId,z.id):new C("Not able to create CloseRequestedTrigger")}else if(z.slotIdScheduledTrigger){var w;K=(w=z.slotIdScheduledTrigger)!=null&&w.triggeringSlotId?new Mv(bY,z.slotIdScheduledTrigger.triggeringSlotId,z.id):new C("Not able to create SlotIdScheduledTrigger")}else{if(z.mediaTimeRangeTrigger){var D;M=Number((D=z.mediaTimeRangeTrigger)==null?void 0:D.offsetStartMilliseconds);var y;B=Number((y= z.mediaTimeRangeTrigger)==null?void 0:y.offsetEndMilliseconds);isFinite(M)&&isFinite(B)?(y=B,y===-1&&(y=f),f=M>y?new C("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:M,offsetEndMs:y},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",y===f&&M-500<=y):new lx(M,y),z=f instanceof C?f:new F0(bY,K,f,!1,z.id)):z=new C("Not able to create MediaTimeRangeTrigger")}else if(z.contentVideoIdEndedTrigger)z=z.contentVideoIdEndedTrigger?new ib(bY,K,!1,z.id):new C("Not able to create ContentVideoIdEndedTrigger"); else{if(z.layoutIdEnteredTrigger){var R;K=(R=z.layoutIdEnteredTrigger)!=null&&R.triggeringLayoutId?new cp(bY,z.layoutIdEnteredTrigger.triggeringLayoutId,z.id):new C("Not able to create LayoutIdEnteredTrigger")}else if(z.timeRelativeToLayoutEnterTrigger){var S;K=(S=z.timeRelativeToLayoutEnterTrigger)!=null&&S.triggeringLayoutId?new BI(bY,Number(z.timeRelativeToLayoutEnterTrigger.durationMs),z.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,z.id):new C("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(z.onDifferentLayoutIdEnteredTrigger){var E; K=(E=z.onDifferentLayoutIdEnteredTrigger)!=null&&E.triggeringLayoutId&&z.onDifferentLayoutIdEnteredTrigger.slotType&&z.onDifferentLayoutIdEnteredTrigger.layoutType?new ri(bY,z.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,z.onDifferentLayoutIdEnteredTrigger.slotType,z.onDifferentLayoutIdEnteredTrigger.layoutType,z.id):new C("Not able to create CloseRequestedTrigger")}else{if(z.liveStreamBreakStartedTrigger)z=z.liveStreamBreakStartedTrigger&&z.id?new xq(bY,z.id):new C("Not able to create LiveStreamBreakStartedTrigger"); else if(z.liveStreamBreakEndedTrigger)z=z.liveStreamBreakEndedTrigger&&z.id?new j7(bY,z.id):new C("Not able to create LiveStreamBreakEndedTrigger");else{if(z.liveStreamBreakScheduledDurationMatchedTrigger){var L;K=(L=z.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&L.breakDurationMs?new Yq(Number(z.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,z.id):new C("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(z.liveStreamBreakScheduledDurationNotMatchedTrigger){var q; K=(q=z.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&q.breakDurationMs?new X0(Number(z.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,z.id):new C("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(z.newSlotScheduledWithBreakDurationTrigger){var V;K=(V=z.newSlotScheduledWithBreakDurationTrigger)!=null&&V.breakDurationMs?new OS(Number(z.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,z.id):new C("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else K= z.prefetchCacheExpiredTrigger?new Tp(bY,z.id):new C("Not able to convert an AdsControlflowTrigger.");z=K}K=z}z=K}K=z}z=K}K=z}z=K}K=z}z=K}K=z}z=K}return z}; UF=function(z,K){K.S>=2&&(z.slot_pos=K.adPodIndex);z.autoplay="1"}; CfT=function(z,K,f,M,p,t,B,v){return K===null?new C("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:K,ActionCompanionAdRenderer:M}):[oH5(z,K,B,t,function(I){var G=I.slotId;I=v(I);var b=M.adLayoutLoggingData,e=new w3([new ZR(M),new BT(p)]);G=p6(f.Y.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",G);var w={layoutId:G,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",fH:"core"};return{layoutId:G,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",qB:new Map, layoutExitNormalTriggers:[new Cb(f.S,B)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],K6:[],fH:"core",clientMetadata:e,GP:I(w),adLayoutLoggingData:b}})]}; Tza=function(z,K,f,M,p,t,B,v){return K===null?new C("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:K,TopBannerImageTextIconButtonedLayoutViewModel:M}):[oH5(z,K,B,t,function(I){var G=I.slotId;I=v(I);var b=M.adLayoutLoggingData,e=new w3([new o7(M),new BT(p)]);G=p6(f.Y.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",G);var w={layoutId:G,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",fH:"core"};return{layoutId:G,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", qB:new Map,layoutExitNormalTriggers:[new Cb(f.S,B)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],K6:[],fH:"core",clientMetadata:e,GP:I(w),adLayoutLoggingData:b}})]}; $AW=function(z,K,f,M,p,t){if(!t)for(K=g.a(K),t=K.next();!t.done;t=K.next())t=t.value,z6(z,t.renderer,t.config.adPlacementConfig.kind);z=Array.from(z.values()).filter(function(b){return Udv(b)}); K=[];t=g.a(z);for(var B=t.next(),v={};!B.done;v={QS:void 0},B=t.next()){v.QS=B.value;B=g.a(v.QS.lQ);for(var I=B.next(),G={};!I.done;G={lB:void 0},I=B.next())G.lB=I.value,I=function(b,e){return function(w){return b.lB.RT(w,e.QS.instreamVideoAdRenderer.elementId,b.lB.YN)}}(G,v),G.lB.isContentVideoCompanion?K.push(z6u(f,M,p,v.QS.instreamVideoAdRenderer.elementId,G.lB.associatedCompositePlayerBytesLayoutId,G.lB.adSlotLoggingData,I)):z.length>1?K.push(KKW(f,M,p,v.QS.instreamVideoAdRenderer.elementId,G.lB.adSlotLoggingData, function(b,e){return function(w){return b.lB.RT(w,e.QS.instreamVideoAdRenderer.elementId,b.lB.YN,b.lB.associatedCompositePlayerBytesLayoutId)}}(G,v))):K.push(KKW(f,M,p,v.QS.instreamVideoAdRenderer.elementId,G.lB.adSlotLoggingData,I))}return K}; z6=function(z,K,f){if(K=fRS(K)){K=g.a(K);for(var M=K.next();!M.done;M=K.next())if((M=M.value)&&M.externalVideoId){var p=K9(z,M.externalVideoId);p.instreamVideoAdRenderer||(p.instreamVideoAdRenderer=M,p.Yf=f)}else R3("InstreamVideoAdRenderer without externalVideoId")}}; fRS=function(z){var K=[],f=z.sandwichedLinearAdRenderer&&z.sandwichedLinearAdRenderer.linearAd&&g.A(z.sandwichedLinearAdRenderer.linearAd,qv);if(f)return K.push(f),K;if(z.instreamVideoAdRenderer)return K.push(z.instreamVideoAdRenderer),K;if(z.linearAdSequenceRenderer&&z.linearAdSequenceRenderer.linearAds){z=g.a(z.linearAdSequenceRenderer.linearAds);for(f=z.next();!f.done;f=z.next())f=f.value,g.A(f,qv)&&K.push(g.A(f,qv));return K}return null}; Udv=function(z){if(z.instreamVideoAdRenderer===void 0)return R3("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var K=g.a(z.lQ),f=K.next();!f.done;f=K.next()){f=f.value;if(f.RT===void 0)return!1;if(f.YN===void 0)return R3("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(z.Yf===void 0||f.Zn===void 0||z.Yf!==f.Zn&&f.Zn!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(z.instreamVideoAdRenderer.elementId===void 0)return R3("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:z.Yf,"matching APSR kind":f.Zn}),!1}return!0}; K9=function(z,K){z.has(K)||z.set(K,{instreamVideoAdRenderer:void 0,Yf:void 0,adVideoId:K,lQ:[]});return z.get(K)}; $c=function(z,K,f,M,p,t,B,v,I){p?K9(z,p).lQ.push({CaV:K,Zn:f,isContentVideoCompanion:M,YN:B,associatedCompositePlayerBytesLayoutId:t,adSlotLoggingData:v,RT:I}):R3("Companion AdPlacementSupportedRenderer without adVideoId")}; f9=function(z){var K=0;z=g.a(z.questions);for(var f=z.next();!f.done;f=z.next())if(f=f.value,f=g.A(f,Av)||g.A(f,je)){var M=void 0;K+=((M=f.surveyAdQuestionCommon)==null?void 0:M.durationMilliseconds)||0}return K}; MG=function(z){var K,f,M,p,t=((f=g.A((K=z.questions)==null?void 0:K[0],Av))==null?void 0:f.surveyAdQuestionCommon)||((p=g.A((M=z.questions)==null?void 0:M[0],je))==null?void 0:p.surveyAdQuestionCommon),B;K=[].concat(g.P(((B=z.playbackCommands)==null?void 0:B.instreamAdCompleteCommands)||[]),g.P((t==null?void 0:t.timeoutCommands)||[]));var v,I,G,b,e,w,D,y,R,S,E,L,q,V,c,O,x,T,M8,$S;return{impressionCommands:(v=z.playbackCommands)==null?void 0:v.impressionCommands,errorCommands:(I=z.playbackCommands)== null?void 0:I.errorCommands,muteCommands:(G=z.playbackCommands)==null?void 0:G.muteCommands,unmuteCommands:(b=z.playbackCommands)==null?void 0:b.unmuteCommands,pauseCommands:(e=z.playbackCommands)==null?void 0:e.pauseCommands,rewindCommands:(w=z.playbackCommands)==null?void 0:w.rewindCommands,resumeCommands:(D=z.playbackCommands)==null?void 0:D.resumeCommands,skipCommands:(y=z.playbackCommands)==null?void 0:y.skipCommands,progressCommands:(R=z.playbackCommands)==null?void 0:R.progressCommands,OG_:(S= z.playbackCommands)==null?void 0:S.clickthroughCommands,fullscreenCommands:(E=z.playbackCommands)==null?void 0:E.fullscreenCommands,activeViewViewableCommands:(L=z.playbackCommands)==null?void 0:L.activeViewViewableCommands,activeViewMeasurableCommands:(q=z.playbackCommands)==null?void 0:q.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(V=z.playbackCommands)==null?void 0:V.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(c=z.playbackCommands)== null?void 0:(O=c.activeViewTracking)==null?void 0:O.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(x=z.playbackCommands)==null?void 0:(T=x.activeViewTracking)==null?void 0:T.activeViewAudioMeasurableCommands,endFullscreenCommands:(M8=z.playbackCommands)==null?void 0:M8.endFullscreenCommands,abandonCommands:($S=z.playbackCommands)==null?void 0:$S.abandonCommands,completeCommands:K}}; p_a=function(z,K,f,M,p,t,B){return function(v,I){return MvS(z,I.slotId,v,t,function(G,b){var e=I.layoutId;G=B(G);return p9(K,e,b,p,G,"LAYOUT_TYPE_SURVEY",[new Lu(f),M],f.adLayoutLoggingData)})}}; NQd=function(z,K,f,M,p,t,B){if(!tvd(z))return new C("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:z});var v=z.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[BQu(t,K,f,M,function(I){var G=I.slotId;I=B(I);G=p6(p.Y.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",G);var b={layoutId:G,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",fH:"core"},e=new AQ(p.S,M);return{layoutId:G,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",qB:new Map,layoutExitNormalTriggers:[e], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],K6:[],fH:"core",clientMetadata:new w3([new Ej(v)]),GP:I(b)}})]}; tvd=function(z){z=g.A(z==null?void 0:z.additionalPlayerOverlay,v85);if(!z)return!1;var K=z.slidingMessages;return z.title&&K&&K.length!==0?!0:!1}; GLW=function(z,K,f,M,p){var t;if((t=z.playerOverlay)==null||!t.instreamSurveyAdRenderer)return function(){return[]}; if(!gHW(z))return function(){return new C("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:z})}; var B=z.playerOverlay.instreamSurveyAdRenderer,v=f9(B);return v<=0?function(){return new C("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:B})}:function(I,G){var b=IRT(I,f,M,function(e){var w=e.slotId; e=G(e);var D=MG(B);w=p6(p.Y.get(),"LAYOUT_TYPE_SURVEY",w);var y={layoutId:w,layoutType:"LAYOUT_TYPE_SURVEY",fH:"core"},R=new AQ(p.S,M),S=new US(p.S,w),E=new tv(p.S,w),L=new wY5(p.S);return{layoutId:w,layoutType:"LAYOUT_TYPE_SURVEY",qB:new Map,layoutExitNormalTriggers:[R,L],layoutExitSkipTriggers:[S],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[E],K6:[],fH:"core",clientMetadata:new w3([new u5(B),new BT(K),new oD(v/1E3),new zn(D)]),GP:e(y),adLayoutLoggingData:B.adLayoutLoggingData}}); I=NQd(z,f,b.slotId,M,p,I,G);return I instanceof C?I:[b].concat(g.P(I))}}; h68=function(z,K,f,M,p,t,B){B=B===void 0?!1:B;var v=[];try{var I=[];if(f.renderer.linearAdSequenceRenderer)var G=function(R){R=bf8(R.slotId,f,K,p(R),M,t,B);I=R.BIE;return R.oh}; else if(f.renderer.instreamVideoAdRenderer)G=function(R){var S=R.slotId;R=p(R);var E=B,L=f.config.adPlacementConfig,q=e68(L),V=q.tK,c=q.yD;q=f.renderer.instreamVideoAdRenderer;var O;if(q==null?0:(O=q.playerOverlay)==null?0:O.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var x=tk(q,E);O=Math.min(V+x.videoLengthSeconds*1E3,c);E=new Wp(0,[x.videoLengthSeconds]);c=x.videoLengthSeconds;var T=x.playerVars,M8=x.instreamAdPlayerOverlayRenderer,$S=x.playerOverlayLayoutRenderer, td=x.adVideoId,r=w_p(f),yI=x.qB;x=x.bO;var H5=q==null?void 0:q.adLayoutLoggingData;q=q==null?void 0:q.sodarExtensionData;S=p6(K.Y.get(),"LAYOUT_TYPE_MEDIA",S);var ra={layoutId:S,layoutType:"LAYOUT_TYPE_MEDIA",fH:"core"};return{layoutId:S,layoutType:"LAYOUT_TYPE_MEDIA",qB:yI,layoutExitNormalTriggers:[new j7(K.S)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],K6:[],fH:"core",clientMetadata:new w3([new eQ(M),new Jh(c),new gw(T),new cT(V),new sj(O),M8&&new ww(M8), $S&&new D2($S),new BT(L),new b5(td),new N3(E),new x9(r),q&&new dw(q),new l5({current:null}),new jQ({}),new fh(x)].filter(DAT)),GP:R(ra),adLayoutLoggingData:H5}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var b=yMS(z,M,f.adSlotLoggingData,G);v.push(b);for(var e=g.a(I),w=e.next();!w.done;w=e.next()){var D=w.value,y=D(z,p);if(y instanceof C)return y;v.push.apply(v,g.P(y))}}catch(R){return new C(R,{errorMessage:R.message,AdPlacementRenderer:f,numberOfSurveyRenderers:kLv(f)})}return v}; kLv=function(z){z=(z.renderer.linearAdSequenceRenderer||{}).linearAds;return z!=null&&z.length?z.filter(function(K){var f,M;return((f=g.A(K,qv))==null?void 0:(M=f.playerOverlay)==null?void 0:M.instreamSurveyAdRenderer)!=null}).length:0}; bf8=function(z,K,f,M,p,t,B){var v=K.config.adPlacementConfig,I=e68(v),G=I.tK,b=I.yD;I=(K.renderer.linearAdSequenceRenderer||{}).linearAds;if(I==null||!I.length)throw new TypeError("Expected linear ads");var e=[],w={U5:G,Zx:0,v91:e};I=I.map(function(y){return aRS(z,y,w,f,M,v,p,b,B)}).map(function(y,R){R=new Wp(R,e); return y(R)}); var D=I.map(function(y){return y.Sr}); return{oh:R68(f,z,G,D,v,w_p(K),M,b,t),BIE:I.map(function(y){return y.CWL})}}; aRS=function(z,K,f,M,p,t,B,v,I){var G=tk(g.A(K,qv),I),b=f.U5,e=f.Zx,w=Math.min(b+G.videoLengthSeconds*1E3,v);f.U5=w;f.Zx++;f.v91.push(G.videoLengthSeconds);var D,y,R=(D=g.A(K,qv))==null?void 0:(y=D.playerOverlay)==null?void 0:y.instreamSurveyAdRenderer;if(G.adVideoId==="nPpU29QrbiU"&&R==null)throw new TypeError("Survey slate media has no survey overlay");return function(S){UF(G.playerVars,S);var E,L,q=G.videoLengthSeconds,V=G.playerVars,c=G.qB,O=G.bO,x=G.instreamAdPlayerOverlayRenderer,T=G.playerOverlayLayoutRenderer, M8=G.adVideoId,$S=(E=g.A(K,qv))==null?void 0:E.adLayoutLoggingData;E=(L=g.A(K,qv))==null?void 0:L.sodarExtensionData;L=p6(M.Y.get(),"LAYOUT_TYPE_MEDIA",z);var td={layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA",fH:"adapter"};S={layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA",qB:c,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],K6:[],fH:"adapter",clientMetadata:new w3([new eQ(B),new Jh(q),new gw(V),new cT(b),new sj(w),new Ah(e),new l5({current:null}), x&&new ww(x),T&&new D2(T),new BT(t),new b5(M8),new N3(S),E&&new dw(E),R&&new $z(R),new jQ({}),new fh(O)].filter(DAT)),GP:p(td),adLayoutLoggingData:$S};q=GLW(g.A(K,qv),t,B,S.layoutId,M);return{Sr:S,CWL:q}}}; tk=function(z,K){if(!z)throw new TypeError("Expected instream video ad renderer");if(!z.playerVars)throw new TypeError("Expected player vars in url encoded string");var f=Nu(z.playerVars),M=Number(f.length_seconds);if(isNaN(M))throw new TypeError("Expected valid length seconds in player vars");var p=Number(z.trimmedMaxNonSkippableAdDurationMs);M=isNaN(p)?M:Math.min(M,p/1E3);p=z.playerOverlay||{};p=p.instreamAdPlayerOverlayRenderer===void 0?null:p.instreamAdPlayerOverlayRenderer;var t=z.playerOverlay|| {};t=t.playerOverlayLayoutRenderer===void 0?null:t.playerOverlayLayoutRenderer;var B=f.video_id;B||(B=(B=z.externalVideoId)?B:void 0);if(!B)throw new TypeError("Expected valid video id in IVAR");if(K&&M===0){var v;K=(v=SI5[B])!=null?v:M}else K=M;return{playerVars:f,videoLengthSeconds:K,instreamAdPlayerOverlayRenderer:p,playerOverlayLayoutRenderer:t,adVideoId:B,qB:z.pings?JA(z.pings):new Map,bO:Wt(z.pings)}}; w_p=function(z){z=Number(z.driftRecoveryMs);return isNaN(z)||z<=0?null:z}; e68=function(z){var K=z.adTimeOffset||{};z=K.offsetEndMilliseconds;K=Number(K.offsetStartMilliseconds);if(isNaN(K))throw new TypeError("Expected valid start offset");z=Number(z);if(isNaN(z))throw new TypeError("Expected valid end offset");return{tK:K,yD:z}}; uSW=function(z){var K,f=(K=Dx(z.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:K.current;if(!f)return null;K=Dx(z.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var M=z.layoutId,p=Dx(z.clientMetadata,"metadata_type_content_cpn"),t=Dx(z.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),B=Dx(z.clientMetadata,"metadata_type_player_underlay_renderer"),v=Dx(z.clientMetadata,"metadata_type_ad_placement_config"),I=Dx(z.clientMetadata,"metadata_type_video_length_seconds"); var G=If(z.clientMetadata,"metadata_type_layout_enter_ms")&&If(z.clientMetadata,"metadata_type_layout_exit_ms")?(Dx(z.clientMetadata,"metadata_type_layout_exit_ms")-Dx(z.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{VM:M,contentCpn:p,Lm:f,Tj:K,instreamAdPlayerOverlayRenderer:t,instreamAdPlayerUnderlayRenderer:B,adPlacementConfig:v,videoLengthSeconds:I,HL:G,inPlayerLayoutId:Dx(z.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Dx(z.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; PRo=function(z,K,f,M,p,t,B,v,I,G,b,e,w,D,y){M=E4(M,"SLOT_TYPE_PLAYER_BYTES");z=LKq(p,z,B,f,M,I,G);if(z instanceof C)return z;var R;G=(R=Dx(z.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:R.layoutId;if(!G)return new C("Invalid adNotify layout");K=E8o(G,p,t,f,v,K,I,b,e,w,D,y,B);return K instanceof C?K:[z].concat(g.P(K))}; E8o=function(z,K,f,M,p,t,B,v,I,G,b,e,w){f=Hf8(K,f,M,t,B,v,I,G,b,e,w);if(f instanceof C)return f;z=Q7S(K,z,B,p,f);return z instanceof C?z:[].concat(g.P(z.vA),[z.Bd])}; mAS=function(z,K,f,M,p,t,B,v,I,G,b,e,w,D){K=Hf8(z,K,f,p,t,v,I,G,b,e,w,D);if(K instanceof C)return K;z=qIu(z,f,t,B,M,v.CI,K);return z instanceof C?z:z.vA.concat(z.Bd)}; Hf8=function(z,K,f,M,p,t,B,v,I,G,b,e){var w=Ba(M,f,G);return w instanceof ei?new C(w):G.U.Z().experiments.sf("html5_refactor_in_player_slot_generation")?function(D){var y=new Wp(0,[w.FI]);D=lRv(K,w.layoutId,w.Wg,f,NG(w.playerVars,w.jh,t,I,y),w.FI,p,y,B(D),v.get(w.Wg.externalVideoId),e);y=[];if(w.Wg.playerOverlay.instreamAdPlayerOverlayRenderer){var R=uSW(D);if(!R)return R3("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,D),{layout:D,vA:[]}; y=[VvW(z,R.contentCpn,R.VM,function(E){return va(K,E.slotId,"core",R,Si(b,E))},R.inPlayerSlotId)].concat(g.P(y)); if(R.instreamAdPlayerUnderlayRenderer&&Id(G)){var S=R.instreamAdPlayerUnderlayRenderer;y=[n8S(z,R.contentCpn,R.VM,function(E){return WKu(K,E.slotId,S,R.adPlacementConfig,R.VM,Si(b,E))})].concat(g.P(y))}}return{layout:D, vA:y}}:function(D){var y=new Wp(0,[w.FI]); return{layout:lRv(K,w.layoutId,w.Wg,f,NG(w.playerVars,w.jh,t,I,y),w.FI,p,y,B(D),v.get(w.Wg.externalVideoId),e),vA:[]}}}; Ba=function(z,K,f){if(!z.playerVars)return new ei("No playerVars available in InstreamVideoAdRenderer.");var M,p;if(z.elementId==null||z.playerVars==null||z.playerOverlay==null||((M=z.playerOverlay)==null?void 0:M.instreamAdPlayerOverlayRenderer)==null&&((p=z.playerOverlay)==null?void 0:p.playerOverlayLayoutRenderer)==null||z.pings==null||z.externalVideoId==null)return new ei("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:z});M=Nu(z.playerVars);p=Number(M.length_seconds); isNaN(p)&&(p=0,R3("Expected valid length seconds in player vars but got NaN"));if(f.xd(K.kind==="AD_PLACEMENT_KIND_START")){if(z.layoutId===void 0)return new ei("Expected server generated layout ID in instreamVideoAdRenderer");K=z.layoutId}else K=z.elementId;return{layoutId:K,Wg:z,playerVars:M,jh:z.playerVars,FI:p}}; NG=function(z,K,f,M,p){z.iv_load_policy=M;K=Nu(K);if(K.cta_conversion_urls)try{z.cta_conversion_urls=JSON.parse(K.cta_conversion_urls)}catch(t){R3(t)}f.ya&&(z.ctrl=f.ya);f.O8&&(z.ytr=f.O8);f.M$&&(z.ytrcc=f.M$);f.isMdxPlayback&&(z.mdx="1");z.vvt&&(z.vss_credentials_token=z.vvt,f.kq&&(z.vss_credentials_token_type=f.kq),f.mdxEnvironment&&(z.mdx_environment=f.mdxEnvironment));UF(z,p);return z}; JMS=function(z){var K=new Map;z=g.a(z);for(var f=z.next();!f.done;f=z.next())(f=f.value.renderer.remoteSlotsRenderer)&&f.hostElementId&&K.set(f.hostElementId,f);return K}; G6=function(z){return z.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; g8q=function(z){return z!=null}; YIT=function(z,K,f,M,p,t,B,v,I,G,b,e,w,D){for(var y=[],R=g.a(z),S=R.next();!S.done;S=R.next())if(S=S.value,!QU5(S)&&!nH8(S)){var E=G6(S)&&!!S.slotEntryTrigger.beforeContentVideoIdStartedTrigger,L=I.xd(E),q=ifv(S,G,M,f.ZD,L);if(q instanceof C)return q;var V=void 0,c={slotId:S.adSlotMetadata.slotId,slotType:S.adSlotMetadata.slotType,slotPhysicalPosition:(V=S.adSlotMetadata.slotPhysicalPosition)!=null?V:1,fH:"core",slotEntryTrigger:q.slotEntryTrigger,slotFulfillmentTriggers:q.slotFulfillmentTriggers, slotExpirationTriggers:q.slotExpirationTriggers},O=g.A(S.fulfillmentContent.fulfilledLayout,WI);if(O){if(!nU(O))return new C("Invalid PlayerBytesAdLayoutRenderer");V=e&&!(G6(S)&&S.slotEntryTrigger.beforeContentVideoIdStartedTrigger);q=q.slotFulfillmentTriggers.some(function(x){return x instanceof Yq}); L=V?dAg(c,S.adSlotMetadata.triggerEvent,O,f,M,t,G,z,L,w,q,D):cMT(c,S.adSlotMetadata.triggerEvent,O,K,f,M,p,t,B,v,I,G,z,b,L,S.adSlotMetadata.triggeringSourceLayoutId);if(L instanceof C)return L;q=[];G6(S)&&q.push(new Na({ZO:G6(S)&&!!S.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));V&&q.push(new jQ({}));f.CI&&q.push(new Kh({}));q.push(new tK(E));S=Object.assign({},c,{clientMetadata:new w3(q),fulfilledLayout:L.layout,adSlotLoggingData:S.adSlotMetadata.adSlotLoggingData});y.push.apply(y,g.P(L.vA)); y.push(S)}else if(E=g.A(S.fulfillmentContent.fulfilledLayout,cI)){if(!HIS(E))return new C("Invalid PlayerUnderlayAdLayoutRenderer");E=s7a(E,M,f.ZD,t,c,S.adSlotMetadata.triggerEvent,S.adSlotMetadata.triggeringSourceLayoutId);if(E instanceof C)return E;S=Object.assign({},c,{clientMetadata:new w3([]),fulfilledLayout:E,adSlotLoggingData:S.adSlotMetadata.adSlotLoggingData});y.push(S)}else if(E=g.A(S.fulfillmentContent.fulfilledLayout,mdu)){if(!hfv(E))return new C("Invalid AboveFeedAdLayoutRenderer");E= AM8(E,M,f.ZD,t,c,S.adSlotMetadata.triggerEvent,S.adSlotMetadata.triggeringSourceLayoutId);if(E instanceof C)return E;S=Object.assign({},c,{clientMetadata:new w3([]),fulfilledLayout:E,adSlotLoggingData:S.adSlotMetadata.adSlotLoggingData});y.push(S)}else if(E=g.A(S.fulfillmentContent.fulfilledLayout,lla)){if(!vI(E.adLayoutMetadata)||!g.A(E.renderingContent,Ix))return new C("Invalid BelowPlayerAdLayoutRenderer");E=AM8(E,M,f.ZD,t,c,S.adSlotMetadata.triggerEvent,S.adSlotMetadata.triggeringSourceLayoutId); if(E instanceof C)return E;S=Object.assign({},c,{clientMetadata:new w3([]),fulfilledLayout:E,adSlotLoggingData:S.adSlotMetadata.adSlotLoggingData});y.push(S)}else if(E=g.A(S.fulfillmentContent.fulfilledLayout,sF)){if(!gb(E))return new C("Invalid PlayerBytesSequenceItemAdLayoutRenderer");E=j7I(E,M,f.ZD,t,c,S.adSlotMetadata.triggerEvent);if(E instanceof C)return E;S=Object.assign({},c,{clientMetadata:new w3([]),fulfilledLayout:E,adSlotLoggingData:S.adSlotMetadata.adSlotLoggingData});y.push(S)}else return new C("Unable to retrieve a client slot ["+ c.slotType+"] from a given AdSlotRenderer")}return y}; j7I=function(z,K,f,M,p,t){var B={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType,fH:"core"};K=bk(z,K,f);return K instanceof C?K:(f=g.A(z.renderingContent,Jv))&&f.pings?Object.assign({},B,{renderingContent:z.renderingContent,qB:JA(f.pings)},K,{GP:Si(M,p)(B),clientMetadata:new w3([new BT(eb(t))]),adLayoutLoggingData:z.adLayoutMetadata.adLayoutLoggingData}):new C("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; AM8=function(z,K,f,M,p,t,B){var v={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType,fH:"core"};K=bk(z,K,f);if(K instanceof C)return K;f=[];f.push(new BT(eb(t)));t==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&B!==void 0&&f.push(new PT(B));return Object.assign({},v,{renderingContent:z.renderingContent,qB:new Map([["impression",X_S(z)]])},K,{GP:Si(M,p)(v),clientMetadata:new w3(f),adLayoutLoggingData:z.adLayoutMetadata.adLayoutLoggingData})}; s7a=function(z,K,f,M,p,t,B){if(z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(B=g.A(z.renderingContent,iJ))if(B=g.A(B.sidePanel,EHg)){var v={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType,fH:"core"};K=bk(z,K,f);z=K instanceof C?K:Object.assign({},v,{renderingContent:z.renderingContent,qB:new Map([["impression",B.impressionPings||[]],["resume",B.resumePings||[]]])},K,{GP:Si(M,p)(v),clientMetadata:new w3([new BT(eb(t))]),adLayoutLoggingData:z.adLayoutMetadata.adLayoutLoggingData})}else z= new C("DismissablePanelTextPortraitImageRenderer is missing");else z=new C("SqueezebackPlayerSidePanelRenderer is missing");else z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.A(z.renderingContent,SBS)?(B={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType,fH:"core"},K=bk(z,K,f),z=K instanceof C?K:Object.assign({},B,{renderingContent:z.renderingContent,qB:new Map},K,{GP:Si(M,p)(B),clientMetadata:new w3([new BT(eb(t))]),adLayoutLoggingData:z.adLayoutMetadata.adLayoutLoggingData})): z=new C("CounterfactualRenderer is missing"):z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?z=new C("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?z=new C("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.A(z.renderingContent,db)?(t={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType, fH:"core"},K=bk(z,K,f),z=K instanceof C?K:B?Object.assign({},t,{renderingContent:z.renderingContent,qB:new Map},K,{GP:Si(M,p)(t),clientMetadata:new w3([new PT(B)]),adLayoutLoggingData:z.adLayoutMetadata.adLayoutLoggingData}):new C("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):z=new C("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.A(z.renderingContent,utS)? (t={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType,fH:"core"},K=bk(z,K,f),z=K instanceof C?K:Object.assign({},t,{renderingContent:z.renderingContent,qB:new Map([])},K,{GP:Si(M,p)(t),adLayoutLoggingData:z.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new w3([])})):z=new C("AdsEngagementPanelSectionListViewModel is missing"):z=new C("LayoutType ["+z.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return z}; dAg=function(z,K,f,M,p,t,B,v,I,G,b,e){if((e==null?void 0:e.zK)===void 0||(e==null?void 0:e.EU)===void 0)return new C("Cached ad break range from cue point is missing");var w=bk(f,p,M.ZD);if(w instanceof C)return w;w={layoutExitMuteTriggers:[],layoutExitNormalTriggers:w.layoutExitNormalTriggers,layoutExitSkipTriggers:[],K6:[],layoutExitUserInputSubmittedTriggers:[]};if(g.A(f.renderingContent,qv))return z=xAd(z,K,f,w,p,t,v,I,M.ZD,B,e.zK,e.EU),z instanceof C?z:z.Zv===void 0?new C("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:z.layout,vA:[z.Zv]};var D=g.A(f.renderingContent,ax);if(D){if(!vI(f.adLayoutMetadata))return new C("Invalid ad layout metadata");if(!Q3(D))return new C("Invalid sequential layout");D=D.sequentialLayouts.map(function(y){return y.playerBytesAdLayoutRenderer}); z=FKv(z,K,f,w,D,p,M,t,B,I,v,G,e.zK,e.EU,b);return z instanceof C?z:{layout:z.QV,vA:z.vA}}return new C("Not able to convert a sequential layout")}; FKv=function(z,K,f,M,p,t,B,v,I,G,b,e,w,D,y){var R=OfW(p,w,D);if(R instanceof C)return R;var S=[],E=[];R=g.a(R);for(var L=R.next();!L.done;L=R.next()){var q=L.value;L=z;var V=p[q.Zx],c=q,O=K;q=t;var x=B,T=v,M8=I,$S=G,td=b,r=wU(V);if(r instanceof C)L=r;else{var yI={layoutId:V.adLayoutMetadata.layoutId,layoutType:V.adLayoutMetadata.layoutType,fH:"adapter"};c=rMT(O,V,c,q);c instanceof C?L=c:(L=Object.assign({},yI,DX,{qB:r,renderingContent:V.renderingContent,clientMetadata:new w3(c),GP:Si(T,L)(yI),adLayoutLoggingData:V.adLayoutMetadata.adLayoutLoggingData}), L=(V=yE(td,L,q,x.ZD,T,M8,$S,void 0,!0))?V instanceof C?V:{layout:L,Zv:V}:new C("Expecting associatedInPlayerSlot"))}if(L instanceof C)return L;S.push(L.layout);E.push(L.Zv)}p={layoutId:f.adLayoutMetadata.layoutId,layoutType:f.adLayoutMetadata.layoutType,fH:"core"};K=[new x9(Number(f.driftRecoveryMs)),new cT(w),new sj(D),new BT(eb(K)),new ph(e),new jQ({})];y&&K.push(new vd({}));return{QV:Object.assign({},p,M,{Om:S,qB:new Map,clientMetadata:new w3(K),GP:Si(v,z)(p)}),vA:E}}; xAd=function(z,K,f,M,p,t,B,v,I,G,b,e){if(!nU(f))return new C("Invalid PlayerBytesAdLayoutRenderer");var w=wU(f);if(w instanceof C)return w;var D={layoutId:f.adLayoutMetadata.layoutId,layoutType:f.adLayoutMetadata.layoutType,fH:"core"},y=g.A(f.renderingContent,qv);if(!y)return new C("Invalid rendering content for DAI media layout");y=tk(y,!1);b={U2:y,Zx:0,U5:b,dQ:Math.min(b+y.videoLengthSeconds*1E3,e),KG:new Wp(0,[y.videoLengthSeconds])};var R;e=(R=Number(f.driftRecoveryMs))!=null?R:void 0;K=rMT(K, f,b,p,e);if(K instanceof C)return K;z=Object.assign({},D,M,{qB:w,renderingContent:f.renderingContent,clientMetadata:new w3(K),GP:Si(t,z)(D),adLayoutLoggingData:f.adLayoutMetadata.adLayoutLoggingData});return(p=yE(B,z,p,I,t,G,v,void 0,!0))?p instanceof C?p:{layout:z,Zv:p}:new C("Expecting associatedInPlayerSlot")}; cMT=function(z,K,f,M,p,t,B,v,I,G,b,e,w,D,y,R){var S=bk(f,t,p.ZD);if(S instanceof C)return S;if(g.A(f.renderingContent,qv)){I=Zfu([f],p,I);if(I instanceof C)return I;if(I.length!==1)return new C("Only expected one media layout.");z=o88(z,K,f,S,I[0],void 0,"core",M,t,B,v,G,w,D,y,p.ZD,e,void 0,R);return z instanceof C?z:{layout:z.layout,vA:z.Zv?[z.Zv]:[]}}var E=g.A(f.renderingContent,ax);if(E){if(!vI(f.adLayoutMetadata))return new C("Invalid ad layout metadata");if(!Q3(E))return new C("Invalid sequential layout"); E=E.sequentialLayouts.map(function(L){return L.playerBytesAdLayoutRenderer}); z=CRd(z,K,f.adLayoutMetadata,S,E,M,t,p,I,B,v,G,b,e,y,w,D,R);return z instanceof C?z:{layout:z.QV,vA:z.vA}}return new C("Not able to convert a sequential layout")}; CRd=function(z,K,f,M,p,t,B,v,I,G,b,e,w,D,y,R,S,E){var L=new Gj({current:null}),q=Zfu(p,v,I);if(q instanceof C)return q;I=[];for(var V=[],c=void 0,O=0;O0&&(O.push(E),O.push(new ID(c.adPodSkipTarget)));(t=G.get(c.externalVideoId))&&O.push(new Z2(t));t=O}else t=new C("Invalid vod media renderer")}if(t instanceof C)return t;z=Object.assign({},B,M,{qB:q,renderingContent:f.renderingContent,clientMetadata:new w3(t),GP:Si(b,z)(B),adLayoutLoggingData:f.adLayoutMetadata.adLayoutLoggingData});f=g.A(f.renderingContent,qv);if(!f||!hv(f))return new C("Invalid meida renderer");e=K9(e,f.externalVideoId);e.instreamVideoAdRenderer=f;e.Yf="AD_PLACEMENT_KIND_START";return D?(I=yE(w,z,I,R,b,S,y,E,!1),I instanceof C?I:zoq(z.layoutId,w)&&I?{layout:Object.assign({},z,{clientMetadata:new w3(t.concat(new hh(I)))})}:{layout:z,Zv:I}): {layout:z}}; TQp=function(z,K,f,M,p){if(!nU(K))return new C("Invalid PlayerBytesAdLayoutRenderer");var t=g.A(K.renderingContent,kI);if(!t||t.durationMilliseconds===void 0)return new C("Invalid endcap renderer");var B={layoutId:K.adLayoutMetadata.layoutId,layoutType:K.adLayoutMetadata.layoutType,fH:"adapter"};M=[new Cu(t.durationMilliseconds),new zn({impressionCommands:void 0,abandonCommands:t.abandonCommands?[{commandExecutorCommand:t.abandonCommands}]:void 0,completeCommands:t.completionCommands}),new BT(M), new Qg("LAYOUT_TYPE_ENDCAP")];if(p){M.push(new vT(p.KG.adPodIndex-1));M.push(new Ah(p.KG.adPodIndex));var v;M.push(new ID((v=p.adPodSkipTarget)!=null?v:-1))}return Object.assign({},B,DX,{renderingContent:K.renderingContent,clientMetadata:new w3(M),qB:t.skipPings?new Map([["skip",t.skipPings]]):new Map,GP:Si(f,z)(B),adLayoutLoggingData:K.adLayoutMetadata.adLayoutLoggingData})}; yE=function(z,K,f,M,p,t,B,v,I){z=z.filter(function(b){return b.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&b.adSlotMetadata.triggeringSourceLayoutId===K.layoutId}); if(z.length!==0){if(z.length!==1)return new C("Invalid InPlayer slot association for the given PlayerBytes layout");z=z[0];B=ifv(z,t,f,M,B);if(B instanceof C)return B;var G;t={slotId:z.adSlotMetadata.slotId,slotType:z.adSlotMetadata.slotType,slotPhysicalPosition:(G=z.adSlotMetadata.slotPhysicalPosition)!=null?G:1,fH:"core",slotEntryTrigger:B.slotEntryTrigger,slotFulfillmentTriggers:B.slotFulfillmentTriggers,slotExpirationTriggers:B.slotExpirationTriggers};G=g.A(z.fulfillmentContent.fulfilledLayout, qBd);if(!G||!Rfv(G))return new C("Invalid InPlayerAdLayoutRenderer");B={layoutId:G.adLayoutMetadata.layoutId,layoutType:G.adLayoutMetadata.layoutType,fH:"core"};f=bk(G,f,M);if(f instanceof C)return f;M=[];I&&M.push(new jQ({}));if(G.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")M.push.apply(M,g.P(Kev(z.adSlotMetadata.triggerEvent,K)));else if(G.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")M.push(new BT(eb(z.adSlotMetadata.triggerEvent))),v&&M.push(v);else return new C("Not able to parse an SDF InPlayer layout"); p=Object.assign({},B,f,{renderingContent:G.renderingContent,qB:new Map,GP:Si(p,t)(B),clientMetadata:new w3(M),adLayoutLoggingData:G.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},t,{fulfilledLayout:p,clientMetadata:new w3([])})}}; Kev=function(z,K){var f=[];f.push(new BT(eb(z)));f.push(new PT(K.layoutId));(z=Dx(K.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&f.push(new l5(z));(z=Dx(K.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&f.push(new Gj(z));(z=Dx(K.clientMetadata,"metadata_type_remote_slots_data"))&&f.push(new Z2(z));(z=Dx(K.clientMetadata,"metadata_type_ad_next_params"))&&f.push(new UI(z));(z=Dx(K.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&f.push(new zj(z));(z= Dx(K.clientMetadata,"metadata_type_ad_pod_info"))&&f.push(new N3(z));(K=Dx(K.clientMetadata,"metadata_type_ad_video_id"))&&f.push(new b5(K));return f}; UAg=function(z,K,f,M,p,t){function B(G){return kc(K,G)} var v=M.X4.inPlayerSlotId,I={layoutId:M.X4.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",fH:"core"};f={slotId:v,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,fH:"core",slotEntryTrigger:new cp(B,z),slotFulfillmentTriggers:[new zc(B,v)],slotExpirationTriggers:[new KU(B,v),new Cb(B,f)]};z=Object.assign({},I,{layoutExitNormalTriggers:[new AQ(B,z)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],K6:[],qB:new Map,clientMetadata:new w3([new RD(M.X4), new BT(M.adPlacementConfig),p]),GP:Si(t,f)(I),adLayoutLoggingData:M.X4.adLayoutLoggingData});return Object.assign({},f,{clientMetadata:new w3([new FM(z)])})}; zoq=function(z,K){K=g.a(K);for(var f=K.next();!f.done;f=K.next())if(f=f.value,f.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var M=g.A(f.fulfillmentContent.fulfilledLayout,cI);if(M&&(M=g.A(M.renderingContent,iJ))&&M.associatedPlayerBytesLayoutId===z)return f}}; ifv=function(z,K,f,M,p){var t=$38(Tc(z.slotEntryTrigger,f,M),p,z,K);if(t instanceof C)return t;for(var B=[],v=g.a(z.slotFulfillmentTriggers),I=v.next();!I.done;I=v.next()){I=Tc(I.value,f,M);if(I instanceof C)return I;B.push(I)}B=f2I(B,p,z,K);K=[];z=g.a(z.slotExpirationTriggers);for(p=z.next();!p.done;p=z.next()){p=Tc(p.value,f,M);if(p instanceof C)return p;K.push(p)}return{slotEntryTrigger:t,slotFulfillmentTriggers:B,slotExpirationTriggers:K}}; $38=function(z,K,f,M){return K&&f.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&z instanceof JQ?new nb(function(p){return kc(M,p)},f.adSlotMetadata.slotId):z}; f2I=function(z,K,f,M){return K&&f.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?z.map(function(p){return p instanceof zc?new Mv(function(t){return kc(M,t)},f.adSlotMetadata.slotId):p}):z}; bk=function(z,K,f){for(var M=[],p=g.a(z.layoutExitNormalTriggers||[]),t=p.next();!t.done;t=p.next()){t=Tc(t.value,K,f);if(t instanceof C)return t;M.push(t)}p=[];t=g.a(z.layoutExitSkipTriggers||[]);for(var B=t.next();!B.done;B=t.next()){B=Tc(B.value,K,f);if(B instanceof C)return B;p.push(B)}t=[];B=g.a(z.layoutExitMuteTriggers||[]);for(var v=B.next();!v.done;v=B.next()){v=Tc(v.value,K,f);if(v instanceof C)return v;t.push(v)}B=[];z=g.a(z.layoutExitUserInputSubmittedTriggers||[]);for(v=z.next();!v.done;v= z.next()){v=Tc(v.value,K,f);if(v instanceof C)return v;B.push(v)}return{layoutExitNormalTriggers:M,layoutExitSkipTriggers:p,layoutExitMuteTriggers:t,layoutExitUserInputSubmittedTriggers:B,K6:[]}}; wU=function(z){var K=g.A(z.renderingContent,qv);if(K==null?0:K.pings)return JA(K.pings);z=g.A(z.renderingContent,kI);return(z==null?0:z.skipPings)?new Map([["skip",z.skipPings]]):new Map}; rMT=function(z,K,f,M,p){K=g.A(K.renderingContent,qv);if(!K)return new C("Invalid rendering content for DAI media layout");z=[new eQ(M),new Jh(f.U2.videoLengthSeconds),new gw(f.U2.playerVars),new cT(f.U5),new sj(f.dQ),new Ah(f.Zx),new BT(eb(z)),new b5(f.U2.adVideoId),new N3(f.KG),K.sodarExtensionData&&new dw(K.sodarExtensionData),new l5({current:null}),new jQ({}),new fh(Wt(K.pings))].filter(g8q);p!==void 0&&z.push(new x9(p));return z}; OfW=function(z,K,f){z=z.map(function(I){return tk(g.A(I.renderingContent,qv),!1)}); var M=z.map(function(I){return I.videoLengthSeconds}),p=M.map(function(I,G){return new Wp(G,M)}),t=K,B=f,v=[]; z.forEach(function(I,G){B=Math.min(t+I.videoLengthSeconds*1E3,f);UF(I.playerVars,p[G]);v.push({U2:I,U5:t,dQ:B,Zx:G,KG:p[G]});t=B}); return v}; Zfu=function(z,K,f){for(var M=[],p=g.a(z),t=p.next();!t.done;t=p.next())if(t=g.A(t.value.renderingContent,qv)){if(!hv(t))return new C("Invalid vod media renderer");M.push(MQu(t))}p=M.map(function(e){return e.FI}); t=[];for(var B=0,v=0;v0?$S:-1;else if(yI=g.A(r,kI)){r=D3T(z,K,f,yI, t,R,v,x,$S);if(r instanceof C){D=r;break a}r=r(w);S.push(r.Wm);E=[].concat(g.P(r.pY),g.P(E));L=[].concat(g.P(r.TU),g.P(L));r.Zv&&(M8=[r.Zv].concat(g.P(M8)))}else if(yI=g.A(r,lJ)){if(D===void 0){D=new C("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:yI});break a}r=hoo(z,K,f,t,yI,O,v,D,R,MI(b,"supports_multi_step_on_desktop"));if(r instanceof C){D=r;break a}r=r(w);S.push(r.Wm);r.Zv&&M8.push(r.Zv);E=[].concat(g.P(r.pY),g.P(E));L=[].concat(g.P(r.TU), g.P(L));q=[].concat(g.P(r.Sg),g.P(q));V=[].concat(g.P(r.oA),g.P(V));c=[O].concat(g.P(c))}else if(r=g.A(r,V3)){r=a2S(z,K,f,t,r,O,v,R);if(r instanceof C){D=r;break a}r=r(w);S.push(r.Wm);r.Zv&&M8.push(r.Zv);L=[].concat(g.P(r.TU),g.P(L))}else{D=new C("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}D={Om:S,layoutExitSkipTriggers:E,layoutExitUserInputSubmittedTriggers:q,K6:V,layoutExitMuteTriggers:L,yk:c,vA:M8}}}else a:if(R=QDS(M,f,b),R instanceof C)D=R;else{S=0;E=[];L=[];q=[];V=[];c= [];O=[];x=new Vg({current:null});T=new Gj({current:null});M8=!1;td=[];$S=-1;y=g.a(M);for(r=y.next();!r.done;r=y.next())if(r=r.value,g.A(r,ms)){r=yhd(K,f,g.A(r,ms),v);if(r instanceof C){D=r;break a}r=r(w);E.push(r.Wm);L=[].concat(g.P(r.pY),g.P(L));q=[].concat(g.P(r.TU),g.P(q));r.Zv&&(td=[r.Zv].concat(g.P(td)))}else if(g.A(r,qv)){$S=Ba(g.A(r,qv),f,b);if($S instanceof ei){D=new C($S);break a}r=new Wp(S,R);r=qjg(K,$S.layoutId,$S.Wg,f,NG($S.playerVars,$S.jh,B,G,r),$S.FI,t,r,v(w),T,I.get($S.Wg.externalVideoId), void 0,e);S++;E.push(r.Wm);L=[].concat(g.P(r.pY),g.P(L));q=[].concat(g.P(r.TU),g.P(q));M8||(O.push(T),M8=!0);$S=($S=$S.Wg.adPodSkipTarget)&&$S>0?$S:-1}else if(g.A(r,kI)){r=D3T(z,K,f,g.A(r,kI),t,S,v,T,$S);if(r instanceof C){D=r;break a}r=r(w);E.push(r.Wm);L=[].concat(g.P(r.pY),g.P(L));q=[].concat(g.P(r.TU),g.P(q));r.Zv&&(td=[r.Zv].concat(g.P(td)))}else if(g.A(r,lJ)){if(D===void 0){D=new C("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.A(r,lJ)}); break a}r=hoo(z,K,f,t,g.A(r,lJ),x,v,D,S,MI(b,"supports_multi_step_on_desktop"));if(r instanceof C){D=r;break a}r=r(w);E.push(r.Wm);r.Zv&&td.push(r.Zv);L=[].concat(g.P(r.pY),g.P(L));q=[].concat(g.P(r.TU),g.P(q));V=[].concat(g.P(r.Sg),g.P(V));c=[].concat(g.P(r.oA),g.P(c));O=[x].concat(g.P(O))}else if(g.A(r,V3)){r=a2S(z,K,f,t,g.A(r,V3),x,v,S);if(r instanceof C){D=r;break a}r=r(w);E.push(r.Wm);r.Zv&&td.push(r.Zv);q=[].concat(g.P(r.TU),g.P(q))}else{D=new C("Unsupported linearAd found in LinearAdSequenceRenderer."); break a}D={Om:E,layoutExitSkipTriggers:L,layoutExitUserInputSubmittedTriggers:V,K6:c,layoutExitMuteTriggers:q,yk:O,vA:td}}D instanceof C?w=D:(c=w.slotId,R=D.Om,S=D.layoutExitSkipTriggers,E=D.layoutExitMuteTriggers,L=D.layoutExitUserInputSubmittedTriggers,q=D.yk,w=v(w),V=p?p.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",c=p?p.layoutId:p6(K.Y.get(),V,c),O={layoutId:c,layoutType:V,fH:"core"},w={layout:{layoutId:c,layoutType:V,qB:new Map,layoutExitNormalTriggers:[new o$(K.S,c)],layoutExitSkipTriggers:S, layoutExitMuteTriggers:E,layoutExitUserInputSubmittedTriggers:L,K6:[],fH:"core",clientMetadata:new w3([new nu(R)].concat(g.P(q))),GP:w(O)},vA:D.vA});return w}}; QDS=function(z,K,f){var M=[];z=g.a(z);for(var p=z.next();!p.done;p=z.next())if(p=p.value,g.A(p,qv)){p=Ba(g.A(p,qv),K,f);if(p instanceof ei)return new C(p);M.push(p.FI)}return M}; l2I=function(z,K,f,M,p,t,B,v){if(!J0v(f,v===void 0?!1:v))return new C("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:f});var I=f9(f);if(I<=0)return new C("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:f});var G=new Vg({current:null}),b=p_a(z,K,f,G,M,t,B);return m3u(z,M,t,I,p,function(e,w){var D=e.slotId,y=MG(f);e=B(e);var R,S=(R=Sb(K,M,f.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?R: p6(K.Y.get(),"LAYOUT_TYPE_MEDIA_BREAK",D);D={layoutId:S,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",fH:"core"};R=b(S,w);var E=Dx(R.clientMetadata,"metadata_type_fulfilled_layout");E||R3("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");y=[new BT(M),new Cu(I),new zn(y),G];E&&y.push(new Qg(E.layoutType));return{jaq:{layoutId:S,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",qB:new Map,layoutExitNormalTriggers:[new o$(K.S,S)],layoutExitSkipTriggers:[new US(K.S, w.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new tv(K.S,w.layoutId)],K6:[],fH:"core",clientMetadata:new w3(y),GP:e(D)},Hl:R}})}; VQ5=function(z){if(!ddS(z))return!1;var K=g.A(z.adVideoStart,Ha);return K?g.A(z.linearAd,qv)&&y3(K)?!0:(R3("Invalid Sandwich with notify"),!1):!1}; n9u=function(z){if(z.linearAds==null)return!1;z=g.A(z.adStart,Ha);return z?y3(z)?!0:(R3("Invalid LASR with notify"),!1):!1}; WeT=function(z){if(!iIW(z))return!1;z=g.A(z.adStart,Ha);return z?y3(z)?!0:(R3("Invalid LASR with notify"),!1):!1}; QE=function(z,K,f,M,p,t,B,v,I,G){this.J=z;this.Y=K;this.S=f;this.Ef=M;this.ac=p;this.T=t;this.Uf=B;this.JU=v;this.Qn=I;this.loadPolicy=G===void 0?1:G}; ox=function(z,K,f,M,p,t,B,v,I,G){var b=[];if(K.length===0&&M.length===0&&f.length===0)return b;K=K.filter(kP);var e=f.filter(Vhq),w=M.filter(kP),D=new Map,y=JMS(K),R=f.some(function(H5){var ra;return(H5==null?void 0:(ra=H5.adSlotMetadata)==null?void 0:ra.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),S=f.some(function(H5){var ra; return(H5==null?void 0:(ra=H5.adSlotMetadata)==null?void 0:ra.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),E=f.some(function(H5){var ra; return(H5==null?void 0:(ra=H5.adSlotMetadata)==null?void 0:ra.slotType)==="SLOT_TYPE_IN_PLAYER"}),L=f.some(function(H5){var ra,Ho; return(H5==null?void 0:(ra=H5.adSlotMetadata)==null?void 0:ra.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(H5==null?void 0:(Ho=H5.adSlotMetadata)==null?void 0:Ho.slotType)==="SLOT_TYPE_ABOVE_FEED"}); f=f.some(function(H5){var ra;return(H5==null?void 0:(ra=H5.adSlotMetadata)==null?void 0:ra.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(R||S||E||L||f)G=YIT(e,K,v,p,y,z.ac.get(),z.loadPolicy,D,z.Ef.get(),z.J.get(),E,B,I,G),G instanceof C?R3(G,void 0,void 0,{contentCpn:p}):b.push.apply(b,g.P(G));G=g.a(K);for(f=G.next();!f.done;f=G.next())f=f.value,S=Jha(z,D,f,p,t,B,R,v,y,I,e),S instanceof C?R3(S,void 0,void 0,{renderer:f.renderer,config:f.config.adPlacementConfig,kind:f.config.adPlacementConfig.kind,contentCpn:p,daiEnabled:B}):b.push.apply(b,g.P(S));g9d(z.Ef.get())||(t=iuo(z,w,p,v,y,D),b.push.apply(b,g.P(t)));if(z.T===null||B&&!v.F1){var q, V,c;z=v.CI&&K.length===1&&((q=K[0].config)==null?void 0:(V=q.adPlacementConfig)==null?void 0:V.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((c=K[0].renderer)==null?void 0:c.adBreakServiceRenderer);if(!b.length&&!z){var O,x,T,M8;R3("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":K.length,contentCpn:p,"first APR kind":(O=K[0])==null?void 0:(x=O.config)==null?void 0:(T=x.adPlacementConfig)==null?void 0:T.kind,renderer:(M8=K[0])==null?void 0:M8.renderer})}return b}q= M.filter(kP);b.push.apply(b,g.P($AW(D,q,z.Y.get(),z.T,p,R)));if(!b.length){var $S,td,r,yI;R3("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":K.length,contentCpn:p,daiEnabled:B.toString(),"first APR kind":($S=K[0])==null?void 0:(td=$S.config)==null?void 0:(r=td.adPlacementConfig)==null?void 0:r.kind,renderer:(yI=K[0])==null?void 0:yI.renderer})}return b}; iuo=function(z,K,f,M,p,t){function B(w){return Si(z.ac.get(),w)} var v=[];K=g.a(K);for(var I=K.next();!I.done;I=K.next()){I=I.value;var G=I.renderer,b=G.sandwichedLinearAdRenderer,e=G.linearAdSequenceRenderer;b&&VQ5(b)?(R3("Found AdNotify with SandwichedLinearAdRenderer"),e=g.A(b.adVideoStart,Ha),b=g.A(b.linearAd,qv),z6(t,G,I.config.adPlacementConfig.kind),G=void 0,e=E8o((G=e)==null?void 0:G.layout.layoutId,z.Y.get(),z.S.get(),I.config.adPlacementConfig,I.adSlotLoggingData,b,f,M,B,p,z.loadPolicy,z.Ef.get(),z.ac.get()),e instanceof C?R3(e):v.push.apply(v,g.P(e))): e&&(!e.adLayoutMetadata&&n9u(e)||e.adLayoutMetadata&&WeT(e))&&(R3("Found AdNotify with LinearAdSequenceRenderer"),z6(t,G,I.config.adPlacementConfig.kind),G=void 0,b=RoS((G=g.A(e.adStart,Ha))==null?void 0:G.layout.layoutId,z.Y.get(),z.S.get(),I.config.adPlacementConfig,I.adSlotLoggingData,e.linearAds,vI(e.adLayoutMetadata)?e.adLayoutMetadata:void 0,f,M,B,p,z.loadPolicy,z.Ef.get()),b instanceof C?R3(b):v.push.apply(v,g.P(b)))}return v}; Jha=function(z,K,f,M,p,t,B,v,I,G,b){function e(E){return Si(z.ac.get(),E)} var w=f.renderer,D=f.config.adPlacementConfig,y=D.kind,R=f.adSlotLoggingData,S=v.F1&&y==="AD_PLACEMENT_KIND_START";S=t&&!S;if(w.adsEngagementPanelRenderer!=null)return $c(K,f.elementId,y,w.adsEngagementPanelRenderer.isContentVideoEngagementPanel,w.adsEngagementPanelRenderer.adVideoId,w.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,D,R,function(E,L,q,V){var c=z.S.get(),O=E.slotId,x=w.adsEngagementPanelRenderer;E=Si(z.ac.get(),E);return qG(c,O,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new Cf(x),L,q,x.impressionPings,E,w.adsEngagementPanelRenderer.adLayoutLoggingData,V)}),[]; if(w.adsEngagementPanelLayoutViewModel)return $c(K,f.elementId,y,w.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,w.adsEngagementPanelLayoutViewModel.adVideoId,w.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,D,R,function(E,L,q,V){var c=z.S.get(),O=E.slotId,x=w.adsEngagementPanelLayoutViewModel;E=Si(z.ac.get(),E);return mo(c,O,"LAYOUT_TYPE_PANEL",new TL(x),L,q,E,w.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,V)}),[]; if(w.actionCompanionAdRenderer!=null){if(w.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return CfT(z.Y.get(),z.T,z.S.get(),w.actionCompanionAdRenderer,D,R,M,e);$c(K,f.elementId,y,w.actionCompanionAdRenderer.isContentVideoCompanion,w.actionCompanionAdRenderer.adVideoId,w.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,D,R,function(E,L,q,V){var c=z.S.get(),O=E.slotId,x=w.actionCompanionAdRenderer;E=Si(z.ac.get(),E);return qG(c,O,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new ZR(x),L,q,x.impressionPings,E,w.actionCompanionAdRenderer.adLayoutLoggingData,V)})}else if(w.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(w.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return Tza(z.Y.get(),z.T,z.S.get(),w.topBannerImageTextIconButtonedLayoutViewModel,D,R,M,e); $c(K,f.elementId,y,w.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,w.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,w.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,D,R,function(E,L,q,V){var c=z.S.get(),O=E.slotId,x=w.topBannerImageTextIconButtonedLayoutViewModel;E=Si(z.ac.get(),E);return mo(c,O,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new o7(x),L,q,E,w.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,V)})}else if(w.imageCompanionAdRenderer)$c(K, f.elementId,y,w.imageCompanionAdRenderer.isContentVideoCompanion,w.imageCompanionAdRenderer.adVideoId,w.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,D,R,function(E,L,q,V){var c=z.S.get(),O=E.slotId,x=w.imageCompanionAdRenderer; E=Si(z.ac.get(),E);return qG(c,O,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new $9(x),L,q,x.impressionPings,E,w.imageCompanionAdRenderer.adLayoutLoggingData,V)}); else if(w.bannerImageLayoutViewModel)$c(K,f.elementId,y,w.bannerImageLayoutViewModel.isContentVideoCompanion,w.bannerImageLayoutViewModel.adVideoId,w.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,D,R,function(E,L,q,V){var c=z.S.get(),O=E.slotId,x=w.bannerImageLayoutViewModel;E=Si(z.ac.get(),E);return mo(c,O,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new fu(x),L,q,E,w.bannerImageLayoutViewModel.adLayoutLoggingData,V)}); else if(w.shoppingCompanionCarouselRenderer)$c(K,f.elementId,y,w.shoppingCompanionCarouselRenderer.isContentVideoCompanion,w.shoppingCompanionCarouselRenderer.adVideoId,w.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,D,R,function(E,L,q,V){var c=z.S.get(),O=E.slotId,x=w.shoppingCompanionCarouselRenderer;E=Si(z.ac.get(),E);return qG(c,O,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new M3(x),L,q,x.impressionPings,E,w.shoppingCompanionCarouselRenderer.adLayoutLoggingData,V)}); else if(w.adBreakServiceRenderer){if(!ZI5(f))return[];if(y==="AD_PLACEMENT_KIND_PAUSE")return r0S(z.Y.get(),D,R,f.renderer.adBreakServiceRenderer,M);if(y!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&y!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return OII(z.Y.get(),D,R,f.renderer.adBreakServiceRenderer,M,p,t);v.CI||R3("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:y,adPlacementConfig:D,daiEnabledForContentVideo:String(t),isServedFromLiveInfra:String(v.CI),clientPlaybackNonce:v.clientPlaybackNonce}); if(y==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!z.Uf)return new C("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!z.Qn)return new C("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");z.Qn.Sw({adPlacementRenderer:f,contentCpn:M,ZD:p});p=z.Uf.get().getCurrentTimeSec(1,!1);return d3I(z.Y.get(),f.renderer.adBreakServiceRenderer,D,p,M,R,t)}if(!z.JU)return new C("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); z.JU.Sw({adPlacementRenderer:f,contentCpn:M,ZD:p})}else{if(w.clientForecastingAdRenderer)return NwI(z.Y.get(),z.S.get(),D,R,w.clientForecastingAdRenderer,M,p,e);if(w.invideoOverlayAdRenderer)return buI(z.Y.get(),z.S.get(),D,R,w.invideoOverlayAdRenderer,M,p,e);if(w.instreamAdPlayerOverlayRenderer)return I25(z.Y.get(),z.S.get(),D,R,w.instreamAdPlayerOverlayRenderer,M,e);if((w.linearAdSequenceRenderer||w.instreamVideoAdRenderer)&&S)return h68(z.Y.get(),z.S.get(),f,M,e,G,!z.Ef.get().U.Z().B("html5_override_ad_video_length_killswitch")); if(w.linearAdSequenceRenderer&&!S){if(B)return[];z6(K,w,y);if(w.linearAdSequenceRenderer.adLayoutMetadata){if(!iIW(w.linearAdSequenceRenderer))return new C("Received invalid LinearAdSequenceRenderer.")}else if(w.linearAdSequenceRenderer.linearAds==null)return new C("Received invalid LinearAdSequenceRenderer.");if(g.A(w.linearAdSequenceRenderer.adStart,Ha)){R3("Found AdNotify in LinearAdSequenceRenderer");f=g.A(w.linearAdSequenceRenderer.adStart,Ha);if(!al8(f))return new C("Invalid AdMessageRenderer."); t=w.linearAdSequenceRenderer.linearAds;return Sjq(z.J.get(),z.Y.get(),z.S.get(),z.ac.get(),D,R,f,vI(w.linearAdSequenceRenderer.adLayoutMetadata)?w.linearAdSequenceRenderer.adLayoutMetadata:void 0,t,M,p,v,e,I,z.loadPolicy,z.Ef.get())}return Huo(z.Y.get(),z.S.get(),D,R,w.linearAdSequenceRenderer.linearAds,vI(w.linearAdSequenceRenderer.adLayoutMetadata)?w.linearAdSequenceRenderer.adLayoutMetadata:void 0,M,p,v,e,I,z.loadPolicy,z.Ef.get(),b)}if(!w.remoteSlotsRenderer||t){if(w.instreamVideoAdRenderer&& !S){if(B)return[];z6(K,w,y);return mAS(z.Y.get(),z.S.get(),D,R,w.instreamVideoAdRenderer,M,p,v,e,I,z.loadPolicy,z.Ef.get(),z.ac.get(),b)}if(w.instreamSurveyAdRenderer)return l2I(z.Y.get(),z.S.get(),w.instreamSurveyAdRenderer,D,R,M,e,MI(z.Ef.get(),"supports_multi_step_on_desktop"));if(w.sandwichedLinearAdRenderer!=null)return ddS(w.sandwichedLinearAdRenderer)?g.A(w.sandwichedLinearAdRenderer.adVideoStart,Ha)?(R3("Found AdNotify in SandwichedLinearAdRenderer"),f=g.A(w.sandwichedLinearAdRenderer.adVideoStart, Ha),al8(f)?(t=g.A(w.sandwichedLinearAdRenderer.linearAd,qv))?PRo(f,t,D,z.J.get(),z.Y.get(),z.S.get(),z.ac.get(),R,M,p,v,e,I,z.loadPolicy,z.Ef.get()):new C("Missing IVAR from Sandwich"):new C("Invalid AdMessageRenderer.")):Huo(z.Y.get(),z.S.get(),D,R,[w.sandwichedLinearAdRenderer.adVideoStart,w.sandwichedLinearAdRenderer.linearAd],void 0,M,p,v,e,I,z.loadPolicy,z.Ef.get()):new C("Received invalid SandwichedLinearAdRenderer.");if(w.videoAdTrackingRenderer!=null)return tQd(z.Y.get(),z.S.get(),w.videoAdTrackingRenderer, D,R,M,p,v.WW,e)}}return[]}; lk=function(z,K,f,M,p,t,B,v){g.J.call(this);var I=this;this.Y=z;this.T=K;this.ML=M;this.Uf=p;this.Ef=t;this.Gh=B;this.n6=v;this.S=null;f.get().addListener(this);this.addOnDisposeCallback(function(){f.CH()||f.get().removeListener(I)}); M.get().addListener(this);this.addOnDisposeCallback(function(){M.CH()||M.get().removeListener(I)})}; sDd=function(z,K,f){var M=z.Uf.get().getCurrentTimeSec(1,!1);z.Ef.get().U.Z().i8()&&bb(z.Gh.get(),"sdai","onopp.1;evt."+f.event+";start."+f.startSecs.toFixed(3)+";d."+f.mP.toFixed(3));L6(z.Y.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var p=z.T.get(),t=K.adPlacementRenderer.renderer.adBreakServiceRenderer,B=K.contentCpn,v=K.adPlacementRenderer.adSlotLoggingData,I=VE(z.Ef.get()),G=z.Gh;if(p.Ef.get().U.Z().experiments.sf("enable_smearing_expansion_dai")){var b=p.Ef.get();b=g.uY(b.U.Z().experiments, "max_prefetch_window_sec_for_livestream_optimization");I=p.Ef.get();var e=g.uY(I.U.Z().experiments,"min_prefetch_offset_sec_for_livestream_optimization");I={F_:chd(f),nf:!1,cueProcessedMs:M*1E3};var w=f.startSecs+f.mP;if(M===0)I.vV=new lx(0,w*1E3);else{e=f.startSecs-e;var D=e-M;I.vV=D<=0?new lx(e*1E3,w*1E3):new lx(Math.floor(M+Math.random()*Math.min(D,b))*1E3,w*1E3)}b=I}else b={F_:chd(f),nf:!1},w=f.startSecs+f.mP,f.startSecs<=M?I=new lx((f.startSecs-4)*1E3,w*1E3):(e=Math.max(0,f.startSecs-M-10),I= new lx(Math.floor(M+Math.random()*(I?M===0?0:Math.min(e,5):e))*1E3,w*1E3)),b.vV=I;t=CU(p,t,B,b,v,[new WT(f)]);n9(p.Ef.get())&&bb(G.get(),"abrsm","cpi."+f.identifier+";cps."+f.startSecs+";cpd."+f.mP+";cts."+M+";rbf."+b.vV.start);G.get().U.U9(f.startSecs-M,b.vV.start/1E3-M);return[t]})}; Wa=function(z){var K,f=(K=Dx(z.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:K.current;if(!f)return null;K=Dx(z.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var M=z.layoutId,p=Dx(z.clientMetadata,"metadata_type_content_cpn"),t=Dx(z.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),B=Dx(z.clientMetadata,"metadata_type_player_overlay_layout_renderer"),v=Dx(z.clientMetadata,"metadata_type_player_underlay_renderer"),I=Dx(z.clientMetadata, "metadata_type_ad_placement_config"),G=Dx(z.clientMetadata,"metadata_type_video_length_seconds");var b=If(z.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?Dx(z.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):If(z.clientMetadata,"metadata_type_layout_enter_ms")&&If(z.clientMetadata,"metadata_type_layout_exit_ms")?(Dx(z.clientMetadata,"metadata_type_layout_exit_ms")-Dx(z.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{VM:M,contentCpn:p,Lm:f,Tj:K,instreamAdPlayerOverlayRenderer:t, playerOverlayLayoutRenderer:B,instreamAdPlayerUnderlayRenderer:v,adPlacementConfig:I,videoLengthSeconds:G,HL:b,inPlayerLayoutId:Dx(z.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Dx(z.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; jDS=function(z,K){return AhI(z,K)}; Yj5=function(z,K){K=AhI(z,K);if(!K)return null;var f;K.HL=(f=Dx(z.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:f.adBreakRemainingLengthSeconds;return K}; AhI=function(z,K){var f,M=(f=Dx(z.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:f.current;if(!M)return null;f=BcT(z,K);return{o8:t$o(z,K),adPlacementConfig:Dx(z.clientMetadata,"metadata_type_ad_placement_config"),l5:f,contentCpn:Dx(z.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:Dx(z.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Dx(z.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:Dx(z.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,HL:void 0,Lm:M,VM:z.layoutId,videoLengthSeconds:Dx(z.clientMetadata,"metadata_type_video_length_seconds")}}; Jk=function(z,K,f,M,p,t,B,v,I){g.J.call(this);this.J=z;this.W=K;this.C=f;this.T=M;this.S=p;this.Y=t;this.ac=B;this.Ef=v;this.i_=I;this.s1=!0}; XTS=function(z,K,f){return n8S(z.S.get(),K.contentCpn,K.VM,function(M){return WKu(z.Y.get(),M.slotId,f,K.adPlacementConfig,K.VM,Si(z.ac.get(),M))})}; gU=function(z,K,f,M,p,t,B,v){g.J.call(this);this.Y=z;this.S=K;this.T=f;this.Ef=M;this.J=p;this.i_=t;this.Uf=B;this.c8=v}; ik=function(z){g.J.call(this);this.S=z}; L6=function(z,K,f,M){z.S().iW(K,M);f=f();z=z.S();z.KI.HY("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",K,M,f);K=g.a(f);for(f=K.next();!f.done;f=K.next())a:{M=z;f=f.value;M.KI.Nr("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",f);M.KI.Nr("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",f);try{var p=M.S;if(g.h6(f.slotId))throw new C("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(lY(p,f))throw new C("Duplicate registration for slot.",{slotId:f.slotId,slotEntryTriggerType:f.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!p.Wj.pO.has(f.slotType))throw new C("No fulfillment adapter factory registered for slot of type: "+f.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!p.Wj.uv.has(f.slotType))throw new C("No SlotAdapterFactory registered for slot of type: "+f.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");r3(p,"TRIGGER_CATEGORY_SLOT_ENTRY",f.slotEntryTrigger?[f.slotEntryTrigger]:[]);r3(p,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", f.slotFulfillmentTriggers);r3(p,"TRIGGER_CATEGORY_SLOT_EXPIRATION",f.slotExpirationTriggers);var t=M.S,B=f.slotType+"_"+f.slotPhysicalPosition,v=Yz(t,B);if(lY(t,f))throw new C("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");v.set(f.slotId,new UeI(f));t.S.set(B,v)}catch(T){T instanceof C&&T.TD?(M.KI.ye("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",T.TD,f),R3(T,f,void 0,void 0,T.Pf)):(M.KI.ye("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", f),R3(T,f));break a}lY(M.S,f).W=!0;try{var I=M.S,G=lY(I,f),b=f.slotEntryTrigger,e=I.Wj.M2.get(b.triggerType);e&&(e.f7("TRIGGER_CATEGORY_SLOT_ENTRY",b,f,null),G.nH.set(b.triggerId,e));for(var w=g.a(f.slotFulfillmentTriggers),D=w.next();!D.done;D=w.next()){var y=D.value,R=I.Wj.M2.get(y.triggerType);R&&(R.f7("TRIGGER_CATEGORY_SLOT_FULFILLMENT",y,f,null),G.Y1.set(y.triggerId,R))}for(var S=g.a(f.slotExpirationTriggers),E=S.next();!E.done;E=S.next()){var L=E.value,q=I.Wj.M2.get(L.triggerType);q&&(q.f7("TRIGGER_CATEGORY_SLOT_EXPIRATION", L,f,null),G.N.set(L.triggerId,q))}var V=I.Wj.pO.get(f.slotType).get().build(I.T,f);G.G=V;var c=I.Wj.uv.get(f.slotType).get().build(I.C,f);c.init();G.Y=c}catch(T){T instanceof C&&T.TD?(M.KI.ye("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",T.TD,f),R3(T,f,void 0,void 0,T.Pf)):(M.KI.ye("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",f),R3(T,f));Qc(M,f,!0);break a}M.KI.Nr("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",f);M.S.DX(f);for(var O=g.a(M.Y),x=O.next();!x.done;x= O.next())x.value.DX(f);Wd(M,f)}}; dU=function(z,K,f,M,p){g.J.call(this);var t=this;this.Y=z;this.T=K;this.P8=f;this.context=p;this.S=new Map;M.get().addListener(this);this.addOnDisposeCallback(function(){M.CH()||M.get().removeListener(t)})}; A0I=function(z,K){var f=0x8000000000000;var M=0;for(var p=g.a(K.slotFulfillmentTriggers),t=p.next();!t.done;t=p.next())t=t.value,t instanceof F0?(f=Math.min(f,t.S.start),M=Math.max(M,t.S.end)):R3("Found unexpected fulfillment trigger for throttled slot.",K,null,{fulfillmentTrigger:t});M=new lx(f,M);f="throttledadcuerange:"+K.slotId;z.S.set(f,K);z.P8.get().addCueRange(f,M.start,M.end,!1,z);VR(z.context.Ef.get())&&(K=M.start,M=M.end,p={},z.context.OT.Nc("tcrr",(p.cid=f,p.sm=K,p.em=M,p)))}; ca=function(){g.J.apply(this,arguments);this.s1=!0;this.Sk=new Map;this.S=new Map}; sl=function(z,K){z=g.a(z.Sk.values());for(var f=z.next();!f.done;f=z.next())if(f.value.layoutId===K)return!0;return!1}; Ak=function(z,K){z=g.a(z.S.values());for(var f=z.next();!f.done;f=z.next()){f=g.a(f.value);for(var M=f.next();!M.done;M=f.next())if(M=M.value,M.layoutId===K)return M}R3("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.h6(K)),layoutId:K})}; x3o=function(){this.S=new Map}; Fe8=function(z,K){this.callback=z;this.slot=K}; jb=function(){}; Oua=function(z,K,f){this.callback=z;this.slot=K;this.Uf=f}; rhp=function(z,K,f){this.callback=z;this.slot=K;this.Uf=f;this.Y=!1;this.S=0}; ZuW=function(z,K,f){this.callback=z;this.slot=K;this.Uf=f}; Yc=function(z){this.Uf=z}; Xl=function(z){g.J.call(this);this.uJ=z;this.m9=new Map}; xc=function(z,K){for(var f=[],M=g.a(z.m9.values()),p=M.next();!p.done;p=M.next()){p=p.value;var t=p.trigger;t instanceof tv&&t.triggeringLayoutId===K&&f.push(p)}f.length?s5(z.uJ(),f):R3("Survey is submitted but no registered triggers can be activated.")}; Fl=function(z,K,f){Xl.call(this,z);var M=this;this.Ef=f;K.get().addListener(this);this.addOnDisposeCallback(function(){K.CH()||K.get().removeListener(M)})}; Ol=function(z){g.J.call(this);this.S=z;this.s1=!0;this.m9=new Map;this.C=new Set;this.T=new Set;this.J=new Set;this.W=new Set;this.Y=new Set}; rU=function(z){g.J.call(this);this.S=z;this.m9=new Map}; ZX=function(z,K){for(var f=[],M=g.a(z.m9.values()),p=M.next();!p.done;p=M.next())p=p.value,p.trigger.S===K.layoutId&&f.push(p);f.length&&s5(z.S(),f)}; od=function(z,K,f){g.J.call(this);var M=this;this.S=z;this.context=f;this.m9=new Map;K.get().addListener(this);this.addOnDisposeCallback(function(){K.CH()||K.get().removeListener(M)})}; C9=function(z,K,f,M,p){g.J.call(this);var t=this;this.Y=z;this.P8=K;this.Uf=f;this.i_=M;this.context=p;this.s1=!0;this.m9=new Map;this.S=new Set;f.get().addListener(this);this.addOnDisposeCallback(function(){f.CH()||f.get().removeListener(t)})}; o9I=function(z,K,f,M,p,t,B,v,I,G){if(QW(z.i_.get(),1).clientPlaybackNonce!==I)throw new C("Cannot register CueRange-based trigger for different content CPN",{trigger:f});z.m9.set(f.triggerId,{DT:new Nv(K,f,M,p),cueRangeId:t});z.P8.get().addCueRange(t,B,v,G,z);VR(z.context.Ef.get())&&(I={},z.context.OT.Nc("crr",(I.ca=K,I.tt=f.triggerType,I.st=M.slotType,I.lt=p==null?void 0:p.layoutType,I.cid=t,I.sm=B,I.em=v,I)))}; C5a=function(z,K){z=g.a(z.m9.entries());for(var f=z.next();!f.done;f=z.next()){var M=g.a(f.value);f=M.next().value;M=M.next().value;if(K===M.cueRangeId)return f}return""}; T6=function(z,K){g.J.call(this);var f=this;this.J=z;this.Y=new Map;this.T=new Map;this.S=null;K.get().addListener(this);this.addOnDisposeCallback(function(){K.CH()||K.get().removeListener(f)}); var M;this.S=((M=K.get().wc)==null?void 0:M.slotId)||null}; Tw8=function(z,K){var f=[];z=g.a(z.values());for(var M=z.next();!M.done;M=z.next())M=M.value,M.slot.slotId===K&&f.push(M);return f}; Ul=function(z){g.J.call(this);this.S=z;this.s1=!0;this.m9=new Map}; $q=function(z,K,f){K=K.layoutId;for(var M=[],p=g.a(z.m9.values()),t=p.next();!t.done;t=p.next())if(t=t.value,t.trigger instanceof o$){var B;if(B=t.trigger.layoutId===K){B=f;var v=FxT.get(t.category);B=v?v===B:!1}B&&M.push(t)}M.length&&s5(z.S(),M)}; zI=function(z){g.J.call(this);this.S=z;this.s1=!0;this.m9=new Map}; Kg=function(z,K,f,M,p){g.J.call(this);var t=this;this.J=z;this.ML=K;this.Uf=f;this.Gh=M;this.S=null;this.s1=!0;this.m9=new Map;K.get().addListener(this);this.addOnDisposeCallback(function(){K.CH()||K.get().removeListener(t)}); p.get().addListener(this);this.addOnDisposeCallback(function(){p.CH()||p.get().removeListener(t)})}; zHd=function(z){z.S&&(z.Y&&(z.Y.stop(),z.Y.start()),U3W(z,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; U3W=function(z,K){for(var f=[],M=g.a(z.m9.values()),p=M.next();!p.done;p=M.next())p=p.value,p.trigger.triggerType===K&&f.push(p);f.length>0&&s5(z.J(),f)}; $$=function(z,K,f,M,p){for(var t=[],B=g.a(z.m9.values()),v=B.next();!v.done;v=B.next()){var I=v=v.value,G=I.trigger;I=I.slot;if(G.triggerType===K){if(G instanceof Yq||G instanceof X0||G instanceof OS){if(p&&G.breakDurationMs!==f)continue;if(!p&&G.breakDurationMs===f)continue;if(M.has(I.slotId))continue}t.push(v)}}t.length>0&&s5(z.J(),t)}; K0a=function(z,K){K=(K.mP+1)*1E3;var f=void 0;z=g.a(z.m9.values());for(var M=z.next();!M.done;M=z.next()){var p=M.value;M=p.trigger;p=p.slot;M instanceof Yq&&M.breakDurationMs<=K&&(!f||M.breakDurationMs>f.trigger.breakDurationMs)&&(f={slot:p,trigger:M})}return f}; $aa=function(z){z=z.adPlacementRenderer.config.adPlacementConfig;if(!z.prefetchModeConfig||!z.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;z=Number(z.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(z)||z<=0?0:Math.floor(Math.random()*z)}; fxg=function(z){z=z.adPlacementRenderer.config.adPlacementConfig;if(z.prefetchModeConfig&&z.prefetchModeConfig.cacheFetchRefreshDurationMs&&(z=Number(z.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(z)||z<=0)))return z}; fg=function(z){z.S=null;z.m9.clear();z.Y&&z.Y.stop();z.T&&z.T.stop()}; Mf=function(z){g.J.call(this);this.T=z;this.s1=!0;this.m9=new Map;this.S=new Map;this.Y=new Map}; Mi8=function(z,K){var f=[];if(K=z.S.get(K.layoutId)){K=g.a(K);for(var M=K.next();!M.done;M=K.next())(M=z.Y.get(M.value.triggerId))&&f.push(M)}return f}; pg=function(z){g.J.call(this);this.S=z;this.m9=new Map}; pdu=function(z,K){for(var f=[],M=g.a(z.m9.values()),p=M.next();!p.done;p=M.next())p=p.value,p.trigger instanceof nb&&p.trigger.slotId===K&&f.push(p);f.length>=1&&s5(z.S(),f)}; tiS=function(z,K){var f={slotId:E4(K,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],fH:"surface",clientMetadata:new w3([])},M=Object,p=M.assign;K=p6(K,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",f.slotId);K={layoutId:K,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",qB:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],K6:[],fH:"surface", clientMetadata:new w3([]),GP:s2u(!1,f.slotId,f.slotType,f.slotPhysicalPosition,f.fH,f.slotEntryTrigger,f.slotFulfillmentTriggers,f.slotExpirationTriggers,K,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return p.call(M,{},z,{GO:!0,slot:f,layout:K})}; FkI=function(z,K,f,M){var p=z.kind;M=M?!1:!z.hideCueRangeMarker;switch(p){case "AD_PLACEMENT_KIND_START":return M={F_:new lx(-0x8000000000000,-0x8000000000000),nf:M},f!=null&&(M.vV=new lx(-0x8000000000000,-0x8000000000000)),M;case "AD_PLACEMENT_KIND_END":return M={F_:new lx(0x7ffffffffffff,0x8000000000000),nf:M},f!=null&&(M.vV=new lx(Math.max(0,K-f),0x8000000000000)),M;case "AD_PLACEMENT_KIND_MILLISECONDS":p=z.adTimeOffset;p.offsetStartMilliseconds||R3("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); p.offsetEndMilliseconds||R3("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");z=Number(p.offsetStartMilliseconds);p=Number(p.offsetEndMilliseconds);p===-1&&(p=K);if(Number.isNaN(z)||Number.isNaN(p)||z>p)return new C("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:z,offsetEndMs:p},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",p===K&&z-500<=p);M={F_:new lx(z,p),nf:M};if(f!=null){z=Math.max(0,z-f);if(z===p)return M;M.vV=new lx(z,p)}return M; default:return new C("AdPlacementKind not supported in convertToRange.",{kind:p,adPlacementConfig:z})}}; chd=function(z){var K=z.startSecs*1E3;return new lx(K,K+z.mP*1E3)}; B38=function(z){if(!z||!z.adPlacements&&!z.adSlots)return!1;for(var K=g.a(z.adPlacements||[]),f=K.next();!f.done;f=K.next())if(f=f.value)if(f=f.adPlacementRenderer,f!=null&&(f.config&&f.config.adPlacementConfig&&f.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;z=g.a(z.adSlots||[]);for(K=z.next();!K.done;K=z.next()){var M=f=void 0;if(((f=g.A(K.value,ZI))==null?void 0:(M=f.adSlotMetadata)==null?void 0:M.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; t3=function(z){this.Ef=z;this.Y=new Map;this.S=new Map;this.T=new Map}; E4=function(z,K){if(Bl(z.Ef.get())){var f=z.Y.get(K)||0;f++;z.Y.set(K,f);return K+"_"+f}return g.q1(16)}; p6=function(z,K,f){if(Bl(z.Ef.get())){var M=z.S.get(K)||0;M++;z.S.set(K,M);return f+"_"+K+"_"+M}return g.q1(16)}; kc=function(z,K){if(Bl(z.Ef.get())){var f=z.T.get(K)||0;f++;z.T.set(K,f);return K+"_"+f}return g.q1(16)}; N3v=function(z){var K=[new PT(z.VM),new me(z.Lm),new BT(z.adPlacementConfig),new Jh(z.videoLengthSeconds),new oD(z.HL)];z.instreamAdPlayerOverlayRenderer&&K.push(new ww(z.instreamAdPlayerOverlayRenderer));z.playerOverlayLayoutRenderer&&K.push(new D2(z.playerOverlayLayoutRenderer));z.Tj&&K.push(new Gj(z.Tj));return K}; vz8=function(z,K,f,M,p,t){z=f.inPlayerLayoutId?f.inPlayerLayoutId:p6(t,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",z);var B,v,I=f.instreamAdPlayerOverlayRenderer?(B=f.instreamAdPlayerOverlayRenderer)==null?void 0:B.adLayoutLoggingData:(v=f.playerOverlayLayoutRenderer)==null?void 0:v.adLayoutLoggingData;B={layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",fH:K};return{layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",qB:new Map,layoutExitNormalTriggers:[new AQ(function(G){return kc(t, G)},f.VM)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],K6:[],fH:K,clientMetadata:M,GP:p(B),adLayoutLoggingData:I}}; Nf=function(z,K){var f=this;this.Y=z;this.Ef=K;this.S=function(M){return kc(f.Y.get(),M)}}; WKu=function(z,K,f,M,p,t){f=new w3([new yg(f),new BT(M)]);K=p6(z.Y.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",K);M={layoutId:K,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",fH:"core"};return{layoutId:K,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",qB:new Map,layoutExitNormalTriggers:[new AQ(function(B){return kc(z.Y.get(),B)},p)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],K6:[],fH:"core",clientMetadata:f,GP:t(M),adLayoutLoggingData:void 0}}; va=function(z,K,f,M,p){var t=N3v(M);return vz8(K,f,M,new w3(t),p,z.Y.get())}; IxS=function(z,K,f,M,p){var t=N3v(M);t.push(new pu(M.o8));t.push(new th(M.l5));return vz8(K,f,M,new w3(t),p,z.Y.get())}; qG=function(z,K,f,M,p,t,B,v,I,G){K=p6(z.Y.get(),f,K);var b={layoutId:K,layoutType:f,fH:"core"},e=new Map;B&&e.set("impression",B);B=[new ri(z.S,p,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];G&&B.push(new sS(z.S,G,["normal"]));return{layoutId:K,layoutType:f,qB:e,layoutExitNormalTriggers:B,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],K6:[],fH:"core",clientMetadata:new w3([M,new BT(t),new PT(p)]),GP:v(b),adLayoutLoggingData:I}}; mo=function(z,K,f,M,p,t,B,v,I){K=p6(z.Y.get(),f,K);var G={layoutId:K,layoutType:f,fH:"core"},b=[new ri(z.S,p,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];I&&b.push(new sS(z.S,I,["normal"]));return{layoutId:K,layoutType:f,qB:new Map,layoutExitNormalTriggers:b,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],K6:[],fH:"core",clientMetadata:new w3([M,new BT(t),new PT(p)]),GP:B(G),adLayoutLoggingData:v}}; ad=function(z,K,f){var M=[];M.push(new ZM(z.S,f));K&&M.push(K);return M}; hk=function(z,K,f,M,p,t,B){var v={layoutId:K,layoutType:f,fH:"core"};return{layoutId:K,layoutType:f,qB:new Map,layoutExitNormalTriggers:B,layoutExitSkipTriggers:[new gi(z.S,K)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],K6:[],fH:"core",clientMetadata:new w3([new Ku(M),new BT(p)]),GP:t(v),adLayoutLoggingData:M.adLayoutLoggingData}}; p9=function(z,K,f,M,p,t,B,v){var I={layoutId:K,layoutType:t,fH:"core"};return{layoutId:K,layoutType:t,qB:new Map,layoutExitNormalTriggers:[new AQ(z.S,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],K6:[],fH:"core",clientMetadata:new w3([new BT(M)].concat(g.P(B))),GP:p(I),adLayoutLoggingData:v}}; Sb=function(z,K,f,M){if(z.Ef.get().xd(K.kind==="AD_PLACEMENT_KIND_START"))if(f===void 0)R3("Expected SSAP layout ID in renderer",void 0,void 0,{caller:M});else return f}; eoT=function(z,K,f,M,p,t,B,v,I,G,b,e,w){z=Rd(z,K,f,p,t,B,v,I,e,Sb(z,f,M.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),w);K=z.yk;f=new HT(z.p_);M=z.layoutExitSkipTriggers;G>0&&(K.push(f),K.push(new ID(G)),M=[]);K.push(new vT(b));return{Wm:{layoutId:z.layoutId,layoutType:z.layoutType,qB:z.qB,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],K6:[],fH:z.fH,clientMetadata:new w3(K),GP:z.GP,adLayoutLoggingData:z.adLayoutLoggingData}, pY:M,TU:z.layoutExitMuteTriggers,Sg:z.layoutExitUserInputSubmittedTriggers,oA:z.K6,Zv:z.Zv}}; kjp=function(z,K,f,M,p,t,B,v,I,G){K=Rd(z,K,f,M,t,new Map,B,function(b){return v(b,I)},void 0,Sb(z,f,p.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); z=new tv(z.S,K.p_);f=new HT(K.p_);G=new vT(G);return{Wm:{layoutId:K.layoutId,layoutType:K.layoutType,qB:K.qB,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],K6:[],fH:K.fH,clientMetadata:new w3([].concat(g.P(K.yk),[f,G])),GP:K.GP,adLayoutLoggingData:K.adLayoutLoggingData},pY:K.layoutExitSkipTriggers,TU:K.layoutExitMuteTriggers,Sg:[].concat(g.P(K.layoutExitUserInputSubmittedTriggers),[z]),oA:K.K6,Zv:K.Zv}}; Rd=function(z,K,f,M,p,t,B,v,I,G,b){K=G!=null?G:p6(z.Y.get(),"LAYOUT_TYPE_MEDIA_BREAK",K);G={layoutId:K,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",fH:"adapter"};v=v(K);var e=Dx(v.clientMetadata,"metadata_type_fulfilled_layout");e||R3("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var w=e?e.layoutId:"";f=[new BT(f),new Cu(M),new zn(p)];e&&f.push(new Qg(e.layoutType));b&&f.push(new Ah(b));return{layoutId:K,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", qB:t,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new US(z.S,w)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],K6:[],fH:"adapter",yk:f,GP:B(G),adLayoutLoggingData:I,Zv:v,p_:w}}; lRv=function(z,K,f,M,p,t,B,v,I,G,b){z=Gnu(z,K,"core",f,M,p,t,B,v,I,G,void 0,b);return{layoutId:z.layoutId,layoutType:z.layoutType,qB:z.qB,layoutExitNormalTriggers:z.layoutExitNormalTriggers,layoutExitSkipTriggers:z.layoutExitSkipTriggers,layoutExitMuteTriggers:z.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:z.layoutExitUserInputSubmittedTriggers,K6:z.K6,fH:z.fH,clientMetadata:new w3(z.zl),GP:z.GP,adLayoutLoggingData:z.adLayoutLoggingData}}; qjg=function(z,K,f,M,p,t,B,v,I,G,b,e,w){K=Gnu(z,K,"adapter",f,M,p,t,B,v,I,b,e,w);M=K.layoutExitSkipTriggers;p=K.zl;f.adPodSkipTarget&&f.adPodSkipTarget>0&&(p.push(G),p.push(new ID(f.adPodSkipTarget)),M=[]);p.push(new vT(v.adPodIndex));f.isCritical&&(M=[new sS(z.S,K.layoutId,["error"])].concat(g.P(M)));return{Wm:{layoutId:K.layoutId,layoutType:K.layoutType,qB:K.qB,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],K6:[],fH:K.fH,clientMetadata:new w3(p), GP:K.GP,adLayoutLoggingData:K.adLayoutLoggingData},pY:M,TU:K.layoutExitMuteTriggers,Sg:K.layoutExitUserInputSubmittedTriggers,oA:K.K6}}; Gnu=function(z,K,f,M,p,t,B,v,I,G,b,e,w){var D={layoutId:K,layoutType:"LAYOUT_TYPE_MEDIA",fH:f};p=[new BT(p),new N3(I),new b5(M.externalVideoId),new eQ(v),new zn({impressionCommands:M.impressionCommands,abandonCommands:M.onAbandonCommands,completeCommands:M.completeCommands,progressCommands:M.adVideoProgressCommands}),new gw(t),new l5({current:null}),new Jh(B)];(t=M.playerOverlay.instreamAdPlayerOverlayRenderer)&&p.push(new ww(t));(B=M.playerOverlay.playerOverlayLayoutRenderer)&&p.push(new D2(B)); e&&p.push(new i5(e));(e=M.playerUnderlay)&&p.push(new yg(e));v=E4(z.Y.get(),"SLOT_TYPE_IN_PLAYER");e=(e=t?t.elementId:B==null?void 0:B.layoutId)?e:p6(z.Y.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",v);p.push(new HT(e));p.push(new q3(v));p.push(new Ah(I.adPodIndex));M.adNextParams&&p.push(new UI(M.adNextParams));M.shrunkenPlayerBytesConfig&&p.push(new aD(M.shrunkenPlayerBytesConfig));M.clickthroughEndpoint&&p.push(new zj(M.clickthroughEndpoint));M.legacyInfoCardVastExtension&&p.push(new Tj(M.legacyInfoCardVastExtension)); M.sodarExtensionData&&p.push(new dw(M.sodarExtensionData));b&&p.push(new Z2(b));p.push(new fh(Wt(M.pings)));I=JA(M.pings);if(w){a:{w=g.a(w);for(b=w.next();!b.done;b=w.next())if(b=b.value,b.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(t=g.A(b.fulfillmentContent.fulfilledLayout,cI))&&(t=g.A(t.renderingContent,iJ))&&t.associatedPlayerBytesLayoutId===K){w=b;break a}w=void 0}w&&p.push(new k9(w))}return{layoutId:K,layoutType:"LAYOUT_TYPE_MEDIA",qB:I,layoutExitNormalTriggers:[new o$(z.S,K)],layoutExitSkipTriggers:M.skipOffsetMilliseconds? [new US(z.S,e)]:[],layoutExitMuteTriggers:[new US(z.S,e)],layoutExitUserInputSubmittedTriggers:[],K6:[],fH:f,zl:p,GP:G(D),adLayoutLoggingData:M.adLayoutLoggingData}}; R68=function(z,K,f,M,p,t,B,v,I){M.every(function(b){return Gn(b,[],["LAYOUT_TYPE_MEDIA"])})||R3("Unexpect subLayout type for DAI composite layout"); K=p6(z.Y.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",K);var G={layoutId:K,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",fH:"core"};return{layoutId:K,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",qB:new Map,layoutExitNormalTriggers:[new j7(z.S)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],K6:[],fH:"core",clientMetadata:new w3([new cT(f),new sj(v),new nu(M),new BT(p),new x9(t),new jQ({}),new ph(I)]),GP:B(G)}}; DAT=function(z){return z!=null}; vl=function(z,K,f){var M=this;this.Y=z;this.T=K;this.Ef=f;this.S=function(p){return kc(M.Y.get(),p)}}; d3I=function(z,K,f,M,p,t,B){if(!f.prefetchModeConfig)return new C("AdPlacementConfig for Live Prefetch is missing prefetch_config");f=f.prefetchModeConfig;M*=1E3;var v=[];if(!f.breakLengthMs)return new C("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var I=g.a(f.breakLengthMs),G=I.next();!G.done;G=I.next())if(G=G.value,Number(G)>0){var b=M+Number(f.startTimeOffsetMs),e=b+Number(f.cacheFetchSmearingDurationMs);G={F_:new lx(e,e+Number(G)),nf:!1,vV:new lx(Math.floor(b+Math.random()* Number(f.cacheFetchSmearingDurationMs)),e),cueProcessedMs:M?M:b};b=[];b.push(new vd({}));e=[];e.push(new Tp(z.S));e.push(new Bzd(z.S));B&&b.push(new jQ({}));v.push(CU(z,K,p,G,t,b,e))}return v}; CU=function(z,K,f,M,p,t,B){t=t===void 0?[]:t;var v=E4(z.Y.get(),"SLOT_TYPE_AD_BREAK_REQUEST");B||(B=[],M.vV&&M.vV.start!==M.F_.start&&B.push(new F0(z.S,f,new lx(M.vV.start,M.F_.start),!1)),B.push(new F0(z.S,f,new lx(M.F_.start,M.F_.end),M.nf)));M={getAdBreakUrl:K.getAdBreakUrl,zK:M.F_.start,EU:M.F_.end,cueProcessedMs:M.cueProcessedMs};K=new fU(z.S,v);t=[new Oj(M)].concat(g.P(t));return{slotId:v,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:K,slotFulfillmentTriggers:B, slotExpirationTriggers:[new Cb(z.S,f),new KU(z.S,v),new $P(z.S,v)],fH:"core",clientMetadata:new w3(t),adSlotLoggingData:p}}; eHg=function(z,K,f){var M=[];f=g.a(f);for(var p=f.next();!p.done;p=f.next())M.push(bhT(z,K,p.value));return M}; bhT=function(z,K,f){return f.triggeringSlotId!=null&&f.triggeringSlotId===z?f.clone(K):f}; MvS=function(z,K,f,M,p){return wdT(z,K,f,M,p)}; wT8=function(z,K,f,M){var p=E4(z.Y.get(),"SLOT_TYPE_IN_PLAYER");return wdT(z,p,K,f,M)}; wdT=function(z,K,f,M,p){var t=new cp(z.S,f),B=[new zc(z.S,K)];z=[new KU(z.S,K),new Cb(z.S,M)];return{slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:t,slotFulfillmentTriggers:B,slotExpirationTriggers:z,fH:"core",clientMetadata:new w3([new FM(p({slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,fH:"core",slotEntryTrigger:t,slotFulfillmentTriggers:B,slotExpirationTriggers:z},f))]),adSlotLoggingData:void 0}}; m3u=function(z,K,f,M,p,t){var B=E4(z.Y.get(),"SLOT_TYPE_PLAYER_BYTES"),v=E4(z.Y.get(),"SLOT_TYPE_IN_PLAYER"),I=p6(z.Y.get(),"LAYOUT_TYPE_SURVEY",v);M=Ie(z,K,f,M);var G=[new zc(z.S,B)];f=[new KU(z.S,B),new Cb(z.S,f),new gi(z.S,I)];if(M instanceof C)return M;v=t({slotId:B,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,fH:"core",slotEntryTrigger:M,slotFulfillmentTriggers:G,slotExpirationTriggers:f},{slotId:v,layoutId:I});t=v.jaq;v=v.Hl;return[{slotId:B,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:L9(z,K,B,M),slotFulfillmentTriggers:El(z,K,B,G),slotExpirationTriggers:f,fH:"core",clientMetadata:new w3([new FM(t),new tK(Pa(K)),new Na({ZO:z.ZO(K)})]),adSlotLoggingData:p},v]}; Pa=function(z){return z.kind==="AD_PLACEMENT_KIND_START"}; VvW=function(z,K,f,M,p){p=p?p:E4(z.Y.get(),"SLOT_TYPE_IN_PLAYER");f=new cp(z.S,f);var t=[new zc(z.S,p)];z=[new Cb(z.S,K),new KU(z.S,p)];return{slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:t,slotExpirationTriggers:z,fH:"core",clientMetadata:new w3([new FM(M({slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,fH:"core",slotEntryTrigger:f,slotFulfillmentTriggers:t,slotExpirationTriggers:z}))])}}; n8S=function(z,K,f,M){var p=E4(z.Y.get(),"SLOT_TYPE_PLAYER_UNDERLAY");f=new cp(z.S,f);var t=[new zc(z.S,p)];z=[new Cb(z.S,K),new KU(z.S,p)];return{slotId:p,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:t,slotExpirationTriggers:z,fH:"core",clientMetadata:new w3([new FM(M({slotId:p,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,fH:"core",slotEntryTrigger:f,slotFulfillmentTriggers:t,slotExpirationTriggers:z}))])}}; LKq=function(z,K,f,M,p,t,B){var v=E4(z.Y.get(),"SLOT_TYPE_IN_PLAYER"),I=p6(z.Y.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",v);M=Daa(z,M,t,B,I);if(M instanceof C)return M;B=[new zc(z.S,v)];p=[new Cb(z.S,t),new zc(z.S,p),new pU(z.S,p)];f=Si(f,{slotId:v,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,fH:"core",slotEntryTrigger:M,slotFulfillmentTriggers:B,slotExpirationTriggers:p});z=z.T.get();t={layoutId:I,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",fH:"core"};K={layoutId:I,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", qB:new Map,layoutExitNormalTriggers:[new DdS(z.S,I,K.durationMs)],layoutExitSkipTriggers:[new kvp(z.S,I,K.durationMs)],K6:[new y0g(z.S,I)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],fH:"core",clientMetadata:new w3([new Uj(K)]),GP:f(t)};return{slotId:v,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,fH:"core",slotEntryTrigger:M,slotFulfillmentTriggers:B,slotExpirationTriggers:p,clientMetadata:new w3([new FM(K)])}}; GjT=function(z,K,f,M,p,t){K=Ie(z,K,f,M);if(K instanceof C)return K;var B=K instanceof F0?new bIq(z.S,f,K.S):null;M=E4(z.Y.get(),"SLOT_TYPE_IN_PLAYER");var v=[new zc(z.S,M)];z=[new Cb(z.S,f),new KU(z.S,M)];t=t({slotId:M,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,fH:"core",slotEntryTrigger:K,slotFulfillmentTriggers:v,slotExpirationTriggers:z},B);return t instanceof ei?new C(t):{slotId:M,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:K,slotFulfillmentTriggers:v,slotExpirationTriggers:z, fH:"core",clientMetadata:new w3([new FM(t)]),adSlotLoggingData:p}}; v9S=function(z,K,f,M){var p=E4(z.Y.get(),"SLOT_TYPE_IN_PLAYER"),t=new JQ(z.S,K),B=[new Mv(z.S,p)];z=[new Cb(z.S,K),new KU(z.S,p)];return{slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:t,slotFulfillmentTriggers:B,slotExpirationTriggers:z,fH:"core",clientMetadata:new w3([new FM(M({slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,fH:"core",slotEntryTrigger:t,slotFulfillmentTriggers:B,slotExpirationTriggers:z}))]),adSlotLoggingData:f}}; IRT=function(z,K,f,M){var p=E4(z.Y.get(),"SLOT_TYPE_IN_PLAYER");f=new cp(z.S,f);var t=[new zc(z.S,p)],B=[new KU(z.S,p),new Cb(z.S,K)];t={slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,fH:"core",slotEntryTrigger:f,slotFulfillmentTriggers:t,slotExpirationTriggers:B};return{slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:[new zc(z.S,p)],slotExpirationTriggers:[new Cb(z.S,K),new KU(z.S,p)],fH:"core",clientMetadata:new w3([new FM(M(t))])}}; BQu=function(z,K,f,M,p){var t=E4(z.Y.get(),"SLOT_TYPE_IN_PLAYER");f=new di(z.S,M,f);M=[new zc(z.S,t)];z=[new Cb(z.S,K)];return{slotId:t,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:M,slotExpirationTriggers:z,fH:"core",clientMetadata:new w3([new FM(p({slotId:t,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,fH:"core",slotEntryTrigger:f,slotFulfillmentTriggers:M,slotExpirationTriggers:z}))])}}; KKW=function(z,K,f,M,p,t){var B=E4(z.Y.get(),K);return GI(z,B,K,new cp(z.S,M),[new Cb(z.S,f),new KU(z.S,B),new sS(z.S,M,["error"])],p,t)}; z6u=function(z,K,f,M,p,t,B){var v=E4(z.Y.get(),K);return GI(z,v,K,new sS(z.S,p,["normal"]),[new Cb(z.S,f),new KU(z.S,v),new sS(z.S,M,["error"])],t,B)}; oH5=function(z,K,f,M,p){var t=E4(z.Y.get(),K);return GI(z,t,K,new JQ(z.S,f),[new Cb(z.S,f),new KU(z.S,t)],M,p)}; pTg=function(z,K,f,M,p){f=f?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var t=E4(z.Y.get(),f);K=new JQ(z.S,K);var B=[new zc(z.S,t)];z=[new KU(z.S,t)];return{slotId:t,slotType:f,slotPhysicalPosition:1,slotEntryTrigger:K,slotFulfillmentTriggers:B,slotExpirationTriggers:z,fH:"core",clientMetadata:new w3([new FM(p({slotId:t,slotType:f,slotPhysicalPosition:1,fH:"core",slotEntryTrigger:K,slotFulfillmentTriggers:B,slotExpirationTriggers:z}))]),adSlotLoggingData:M}}; yMS=function(z,K,f,M){var p=E4(z.Y.get(),"SLOT_TYPE_PLAYER_BYTES"),t=new xq(z.S),B=[new Mv(z.S,p)];z=[new Cb(z.S,K)];return{slotId:p,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:t,slotFulfillmentTriggers:B,slotExpirationTriggers:z,fH:"core",clientMetadata:new w3([new FM(M({slotId:p,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,fH:"core",slotEntryTrigger:t,slotFulfillmentTriggers:B,slotExpirationTriggers:z})),new jQ({})]),adSlotLoggingData:f}}; E9o=function(z,K){return g9d(z.Ef.get())?new sS(z.S,K,["normal","error","skipped"]):new sS(z.S,K,["normal"])}; Q7S=function(z,K,f,M,p){K=E9o(z,K);z=uk(z,K,f);p=p({slotId:z.slotId,slotType:z.slotType,slotPhysicalPosition:z.slotPhysicalPosition,slotEntryTrigger:z.slotEntryTrigger,slotFulfillmentTriggers:z.slotFulfillmentTriggers,slotExpirationTriggers:z.slotExpirationTriggers,fH:z.fH});return p instanceof C?p:{Bd:Object.assign({},z,{clientMetadata:new w3([new FM(p.layout)]),adSlotLoggingData:M}),vA:p.vA}}; qIu=function(z,K,f,M,p,t,B){f=P58(z,K,f,M);if(f instanceof C)return f;B=B({slotId:f.slotId,slotType:f.slotType,slotPhysicalPosition:f.slotPhysicalPosition,slotEntryTrigger:f.slotEntryTrigger,slotFulfillmentTriggers:f.slotFulfillmentTriggers,slotExpirationTriggers:f.slotExpirationTriggers,fH:f.fH});if(B instanceof C)return B;M=[new tK(Pa(K)),new FM(B.layout),new Na({ZO:z.ZO(K)})];t&&M.push(new Kh({}));return{Bd:{slotId:f.slotId,slotType:f.slotType,slotPhysicalPosition:f.slotPhysicalPosition,slotEntryTrigger:L9(z, K,f.slotId,f.slotEntryTrigger),slotFulfillmentTriggers:El(z,K,f.slotId,f.slotFulfillmentTriggers),slotExpirationTriggers:f.slotExpirationTriggers,fH:f.fH,clientMetadata:new w3(M),adSlotLoggingData:p},vA:B.vA}}; L9=function(z,K,f,M){return z.Ef.get().xd(Pa(K))?new nb(z.S,f):M}; El=function(z,K,f,M){return z.Ef.get().xd(Pa(K))?[new Mv(z.S,f)]:M}; uk=function(z,K,f){var M=E4(z.Y.get(),"SLOT_TYPE_PLAYER_BYTES"),p=[new zc(z.S,M)];z=[new KU(z.S,M),new Cb(z.S,f)];return{slotId:M,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:K,slotFulfillmentTriggers:p,slotExpirationTriggers:z,fH:"core"}}; P58=function(z,K,f,M){K=Ie(z,K,f,M);return K instanceof C?K:uk(z,K,f)}; Bwv=function(z,K,f,M,p,t){var B=E4(z.Y.get(),"SLOT_TYPE_FORECASTING");K=Ie(z,K,f,M);if(K instanceof C)return K;M=[new zc(z.S,B)];z=[new KU(z.S,B),new Cb(z.S,f)];return{slotId:B,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:K,slotFulfillmentTriggers:M,slotExpirationTriggers:z,fH:"core",clientMetadata:new w3([new FM(t({slotId:B,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,fH:"core",slotEntryTrigger:K,slotFulfillmentTriggers:M,slotExpirationTriggers:z}))]),adSlotLoggingData:p}}; yKv=function(z,K,f,M,p){var t=!K.hideCueRangeMarker;switch(K.kind){case "AD_PLACEMENT_KIND_START":return new JQ(z.S,f);case "AD_PLACEMENT_KIND_MILLISECONDS":return z=FkI(K,M),z instanceof C?z:p(z.F_,t);case "AD_PLACEMENT_KIND_END":return new ib(z.S,f,t);default:return new C("Cannot construct entry trigger",{kind:K.kind})}}; Daa=function(z,K,f,M,p){return yKv(z,K,f,M,function(t,B){return new Gvq(z.S,f,t,B,p)})}; Ie=function(z,K,f,M){return yKv(z,K,f,M,function(p,t){return new F0(z.S,f,p,t)})}; GI=function(z,K,f,M,p,t,B){z=[new Mv(z.S,K)];return{slotId:K,slotType:f,slotPhysicalPosition:1,slotEntryTrigger:M,slotFulfillmentTriggers:z,slotExpirationTriggers:p,fH:"core",clientMetadata:new w3([new FM(B({slotId:K,slotType:f,slotPhysicalPosition:1,fH:"core",slotEntryTrigger:M,slotFulfillmentTriggers:z,slotExpirationTriggers:p}))]),adSlotLoggingData:t}}; bV=function(z,K){g.J.call(this);this.Ef=z;this.S=K;this.eventCount=0}; eR=function(z,K,f,M){bV.call(this,z,K);this.Ef=z;this.i_=f;this.context=M}; w8=function(){this.S=new Map}; Dw=function(z){this.S="pending";this.Y=[];this.T=[];try{z(this.J.bind(this),this.reject.bind(this))}catch(K){this.reject(K)}}; kna=function(){var z,K;return{V$:new Dw(function(f,M){z=f;K=M}), resolve:z,reject:K}}; h3=function(z){return ym(z)?z:k$(z)?new Dw(function(K,f){z.then(K,f)}):new Dw(function(K){K(z)})}; ae=function(z){return new Dw(function(K,f){f(z)})}; Re=function(z){try{return h3(z())}catch(K){return ae(K)}}; uV=function(z,K,f){var M=kna(),p=M.V$,t=M.resolve,B=M.reject;z.Y.push(function(v){if(K)try{var I=K(v);t(I)}catch(G){B(G)}else t(v)}); z.T.push(function(v){if(f)try{var I=f(v);t(I)}catch(G){B(G)}else B(v)}); SR(z);return p}; Lg=function(z,K){return uV(z,void 0,K)}; hHS=function(z,K){uV(z,function(f){return uV(h3(K()),function(){return f})},function(f){return uV(h3(K()),function(){return ae(f)})})}; SR=function(z){if(z.S==="fulfilled"){var K=z.Y;z.Y=[];z.T=[];K=g.a(K);for(var f=K.next();!f.done;f=K.next())f=f.value,f(z.result)}else if(z.S==="rejected")for(K=z.T,z.Y=[],z.T=[],K=g.a(K),f=K.next();!f.done;f=K.next())f=f.value,f(z.error)}; Eo=function(z,K){return axI(K.call(z))}; Pl=function(z){return function f(){return Jd(f,function(M){if(M.Y==1)return g.u8(M,2),g.l(M,{V$:h3(z)},4);if(M.Y!=2)return M.return(M.S);g.mS(M);return g.VI(M,0)})}()}; axI=function(z){return Re(function(){return Hl(z,z.next())})}; Hl=function(z,K){return K.done?h3(K.value):Lg(uV(K.value.V$,function(f){return Hl(z,z.next(f))}),function(f){return Hl(z,z.throw(f))})}; Qm=function(z,K){if(z.length===0)return h3(NaN);var f=kna(),M=f.V$,p=f.resolve,t=z.length;z=g.a(z.entries());var B=z.next();for(f={};!B.done;f={ZC:void 0},B=z.next()){var v=g.a(B.value);B=v.next().value;v=v.next().value;f.ZC=B;hHS(v,function(I){return function(){M.S==="pending"&&(RHd(K)&&K(I.ZC)&&M.S==="pending"?p(I.ZC):(--t,t===0&&p(NaN)))}}(f))}return M}; qf=function(z){return z.map(function(K){return h3(K)})}; lV=function(z){var K=z.hours||0;var f=z.minutes||0,M=z.seconds||0;K=M+f*60+K*3600+(z.days||0)*86400+(z.weeks||0)*604800+(z.months||0)*2629800+(z.years||0)*31557600;K<=0?K={hours:0,minutes:0,seconds:0}:(z=K,K=Math.floor(z/3600),z%=3600,f=Math.floor(z/60),M=Math.floor(z%60),K={hours:K,minutes:f,seconds:M});var p=K.hours===void 0?0:K.hours;f=K.minutes===void 0?0:K.minutes;z=K.seconds===void 0?0:K.seconds;M=p>0;K=[];if(M){p=(new Intl.NumberFormat("en-u-nu-latn")).format(p);var t=["fr"],B="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" "); p="af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(mG)?p.replace(",","\u00a0"):t.includes(mG)?p.replace(",","\u202f"):B.includes(mG)?p.replace(",","."):p;K.push(p)}M=M===void 0?!1:M;f=(["af","be","lt"].includes(mG)||M)&&f<10?S5S().format(f):(new Intl.NumberFormat("en-u-nu-latn")).format(f);K.push(f);f=S5S().format(z);K.push(f);f=":";"da fi id si sr sr-Latn".split(" ").includes(mG)&&(f=".");return K.join(f)}; S5S=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; uev=function(z,K){var f,M;z=((f=z.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(M=f.videoAuthorizationToken)==null?void 0:M.credentialTransferTokens)||[];for(f=0;fK;z=f}else z=!1;return z}; g.Oo=function(z,K){return z.c7+"timedtext_video?ref=player&v="+K.videoId}; g.AKa=function(z){var K=this;this.videoData=z;z={};this.S=(z.c1a=function(){var f=[];if(g.x$.isInitialized()){var M="";K.videoData&&K.videoData.d7&&(M=K.videoData.d7+("&r1b="+K.videoData.clientPlaybackNonce));var p={};M=(p.atr_challenge=M,p);UG("bg_v",void 0,"player_att");(M=sfS(M))?(UG("bg_s",void 0,"player_att"),f.push("r1a="+M)):(UG("bg_e",void 0,"player_att"),f.push("r1c=2"))}else UG("bg_e",void 0,"player_att"),window.trayride||window.botguard?f.push("r1c=1"):f.push("r1c=4");f.push("r1d="+g.x$.getState()); return f.join("&")},z.c6a=function(f){return"r6a="+(Number(f.c)^kH())},z.c6b=function(f){return"r6b="+(Number(f.c)^Number(g.zM("CATSTAT",0)))},z); this.videoData&&this.videoData.d7?this.z7=Nu(this.videoData.d7):this.z7={}}; g.jfu=function(z){if(z.videoData&&z.videoData.d7){for(var K=[z.videoData.d7],f=g.a(Object.keys(z.S)),M=f.next();!M.done;M=f.next())M=M.value,z.z7[M]&&z.S[M]&&(M=z.S[M](z.z7))&&K.push(M);return K.join("&")}return null}; g.r8=function(z,K){cKp(z,{H3a:g.uY(K.experiments,"bg_vm_reinit_threshold"),cspNonce:K.cspNonce,c7:K.c7||""})}; Y55=function(){var z=XMLHttpRequest.prototype.fetch;return!!z&&z.length===3}; XdS=function(z){z=z[N[14]](N[12]);Zw[N[46]](z,1);Zw[N[32]](z,76);Zw[N[83]](z,45);Zw[N[83]](z,53);Zw[N[32]](z,53);return z[N[23]](N[12])}; F0p=function(z){xad=2592E3*(z||1)}; oe=function(z){z=z===void 0?xad:z;if(z>0&&!(ryv()>(0,g.X)()-z*1E3))return 0;z=g.AV("yt-player-quality");if(typeof z==="string"){if(z=g.rI[z],z>0)return z}else if(z instanceof Object)return z.quality;return 0}; Cg=function(){var z=g.AV("yt-player-proxima-pref");return z==null?null:z}; Oha=function(){var z=g.AV("yt-player-quality");if(z instanceof Object&&z.quality&&z.previousQuality){if(z.quality>z.previousQuality)return 1;if(z.quality0&&K[0]?z.getAutoplayPolicy(K[0]):z.getAutoplayPolicy("mediaelement");if(zD5[f])return zD5[f]}}catch(M){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; Mo=function(z){return z.Ix||z.NV||z.mutedAutoplay}; K78=function(z,K){return Mo(z)?K!==1&&K!==2&&K!==0?"AUTOPLAY_STATUS_UNAVAILABLE":z.BY?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; $Ip=function(z,K,f){var M=K.Z();z.thirdParty||(z.thirdParty={});M.ancestorOrigins&&(z.thirdParty.embeddedPlayerContext=Object.assign({},z.thirdParty.embeddedPlayerContext,{ancestorOrigins:M.ancestorOrigins}));M.B("embeds_enable_autoplay_and_visibility_signals")&&(M.ND!=null&&(z.thirdParty.embeddedPlayerContext=Object.assign({},z.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(M.ND)})),M.yL&&(z.thirdParty.embeddedPlayerContext=Object.assign({},z.thirdParty.embeddedPlayerContext,{visibilityFractionSource:M.yL})), z.thirdParty.embeddedPlayerContext=Object.assign({},z.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:fX(),autoplayIntended:Mo(K),autoplayStatus:K78(K,f)}))}; ptS=function(z,K){pf(z,2,K.eq,pX,3);pf(z,3,K.Lu,fUo,3);ff(z,4,K.onesieUstreamerConfig);ff(z,9,K.vg);pf(z,10,K.tQ,tH,3);pf(z,15,K.reloadPlaybackParams,MN8,3)}; BEo=function(z,K){pf(z,1,K.formatId,BN,3);Kf(z,2,K.startTimeMs);Kf(z,3,K.durationMs);Kf(z,4,K.g2);Kf(z,5,K.TH);pf(z,9,K.KJ_,tNI,3);pf(z,11,K.GKH,No,1);pf(z,12,K.OX,No,1)}; NEa=function(z,K){MA(z,1,K.videoId);Kf(z,2,K.lmt)}; tNI=function(z,K){if(K.Ge)for(var f=0;f>31));Kf(z,16,K.MH);Kf(z,17,K.detailedNetworkType);Kf(z,18,K.F$);Kf(z,19,K.i5);Kf(z,21,K.xVL);Kf(z,23,K.eG);Kf(z,28,K.wg);Kf(z,29,K.uox);Kf(z,34,K.visibility);f=K.playbackRate;if(f!==void 0){var M=new ArrayBuffer(4);(new Float32Array(M))[0]=f;f=(new Uint32Array(M))[0];if(f!==void 0)for(zL(z,285),UB(z,4),M=0;M<4;)z.view.setUint8(z.pos,f&255),f>>=8,z.pos+=1,M+=1}Kf(z,36,K.jr); pf(z,38,K.mediaCapabilities,eDo,3);Kf(z,39,K.DVc);Kf(z,40,K.jH);Kf(z,44,K.playerState);$8(z,46,K.E7);Kf(z,48,K.Rg);Kf(z,50,K.ZW);Kf(z,51,K.TQ);Kf(z,54,K.i4);if(K.Qx)for(f=0;f>31));MA(z,2,K.message)}; uJa=function(z,K){Kf(z,1,K.clientState);pf(z,2,K.d0h,RDI,1)}; aUp=function(z,K){ff(z,1,K.bae);pf(z,2,K.kEL,S4v,3);pf(z,3,K.coldStartInfo,uJa,3)}; hDT=function(z,K){Kf(z,1,K.type);ff(z,2,K.value)}; kwu=function(z,K){MA(z,1,K.hl);MA(z,12,K.deviceMake);MA(z,13,K.deviceModel);Kf(z,16,K.clientName);MA(z,17,K.clientVersion);MA(z,18,K.osName);MA(z,19,K.osVersion)}; L7d=function(z,K){MA(z,1,K.name);MA(z,2,K.value)}; ERS=function(z,K){MA(z,1,K.url);if(K.gj)for(var f=0;f1&&(this.C=z[1]==="2")}; wp=function(z,K,f,M,p){this.Y=z;this.S=K;this.T=f;this.reason=M;this.yE=p===void 0?0:p}; g.DJ=function(z,K,f,M){return new wp(g.rI[z]||0,g.rI[K]||0,f,M)}; k6=function(z){if(yO&&z.yE)return!1;var K=g.rI.auto;return z.Y===K&&z.S===K}; aR=function(z){return hH[z.S||z.Y]||"auto"}; vIo=function(z,K){K=g.rI[K];return z.Y<=K&&(!z.S||z.S>=K)}; RR=function(z){return"["+z.Y+"-"+z.S+", override: "+(z.T+", reason: "+z.reason+"]")}; SA=function(z,K,f){this.videoInfos=z;this.S=K;this.audioTracks=[];if(this.S){z=new Set;f==null||f({ainfolen:this.S.length});K=g.a(this.S);for(var M=K.next();!M.done;M=K.next())if(M=M.value,!M.b8||z.has(M.b8.id)){var p=void 0,t=void 0,B=void 0;(B=f)==null||B({atkerr:!!M.b8,itag:M.itag,xtag:M.S,lang:((p=M.b8)==null?void 0:p.name)||"",langid:((t=M.b8)==null?void 0:t.id)||""})}else p=new g.eA(M.id,M.b8),z.add(M.b8.id),this.audioTracks.push(p);f==null||f({atklen:this.audioTracks.length})}}; uH=function(){g.J.apply(this,arguments);this.S=null}; eG8=function(z,K,f,M,p,t,B){if(z.S)return z.S;var v={},I=new Set,G={};if(LX(M)){for(var b in M.S)M.S.hasOwnProperty(b)&&(z=M.S[b],G[z.info.Ra]=[z.info]);return G}b=I8I(K,M,v);t&&p({aftsrt:Ee(b)});for(var e={},w=g.a(Object.keys(b)),D=w.next();!D.done;D=w.next()){D=D.value;for(var y=g.a(b[D]),R=y.next();!R.done;R=y.next()){R=R.value;var S=R.itag,E=void 0,L=D+"_"+(((E=R.video)==null?void 0:E.fps)||0);e.hasOwnProperty(L)?e[L]===!0?G[D].push(R):v[S]=e[L]:(E=PN(K,R,f,M.isLive,I),E!==!0?(B.add(D),v[S]=E, E==="disablevp9hfr"&&(e[L]="disablevp9hfr")):(G[D]=G[D]||[],G[D].push(R),e[L]=!0))}}t&&p({bfflt:Ee(G)});for(var q in G)G.hasOwnProperty(q)&&(M=q,G[M]&&G[M][0].Zf()&&(G[M]=G[M],G[M]=G5g(K,G[M],v),G[M]=bnS(G[M],v)));t&&Object.keys(v).length>0&&p({rjr:Wf(v)});K=g.a(I.values());for(M=K.next();!M.done;M=K.next())(M=f.J.get(M.value))&&--M.mG;t&&p({aftflt:Ee(G)});z.S=g.Yf(G,function(V){return!!V.length}); return z.S}; DTS=function(z,K,f,M,p,t,B,v){v=v===void 0?!1:v;if(K.D3&&B&&B.length>1&&!(K.zN>0||K.D)){for(var I=K.Y||!!p,G=I&&K.Ft?t:void 0,b=I8I(K,M),e=[],w=[],D={},y=0;y0&&w&&p&&(b=[B,f],q=p.concat(w).filter(function(V){return V})); if(q.length&&!K.T2){qo(q,b);if(I){I=[];K=g.a(q);for(M=K.next();!M.done;M=K.next())I.push(M.value.itag);t({hbdfmt:I.join(".")})}return cg(new SA(q,z,G))}q=PBS(K);q=g.yQ(q,v);if(!q){if(e[B])return t=e[B],qo(t),cg(new SA(t,z,G));I&&t({novideo:1});return dV()}K.E0&&(q==="1"||q==="1h")&&e[f]&&(B=m2(e[q]),b=m2(e[f]),b>B?q=f:b===B&&Hna(e[f])&&(q=f));q==="9"&&e.h&&m2(e.h)>m2(e["9"])&&(q="h");K.SE&&M.isLive&&q==="("&&e.H&&m2(e["("])<1440&&(q="H");I&&t({vfmly:lH(q)});K=e[q];if(!K.length)return I&&t({novfmly:lH(q)}), dV();qo(K);return cg(new SA(K,z,G))}; k55=function(z,K){var f=!(!z.m&&!z.M),M=!(!z.mac3&&!z.MAC3),p=!(!z.meac3&&!z.MEAC3);z=!(!z.i&&!z.I);K.SU=z;return f||M||p||z}; Hna=function(z){z=g.a(z);for(var K=z.next();!K.done;K=z.next())if(K=K.value,K.itag&&QAq.has(K.itag))return!0;return!1}; a8S=function(z){z=g.a(z);for(var K=z.next();!K.done;K=z.next())if(K.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; lH=function(z){switch(z){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return z}}; Ee=function(z){var K=[],f;for(f in z)if(z.hasOwnProperty(f)){var M=f;K.push(lH(M));M=g.a(z[M]);for(var p=M.next();!p.done;p=M.next())K.push(p.value.itag)}return K.join(".")}; yqT=function(z,K,f,M,p,t){var B={},v={};g.jS(K,function(I,G){I=I.filter(function(b){var e=b.itag;if(!b.UW)return v[e]="noenc",!1;if(t.W1&&b.Ra==="(h"&&t.oa)return v[e]="lichdr",!1;if(!z.C&&b.Ra==="1e")return v[e]="noav1enc",!1;if(b.Ra==="("||b.Ra==="(h"){if(z.T&&f&&f.flavor==="widevine"){var w=b.mimeType+"; experimental=allowed";(w=!!b.UW[f.flavor]&&!!f.S[w])||(v[e]=b.UW[f.flavor]?"unspt":"noflv");return w}if(!VO(z,nX.CRYPTOBLOCKFORMAT)&&!z.eV||z.nH)return v[e]=z.nH?"disvp":"vpsub",!1}return f&&b.UW[f.flavor]&& f.S[b.mimeType]?!0:(v[e]=f?b.UW[f.flavor]?"unspt":"noflv":"nosys",!1)}); I.length&&(B[G]=I)}); M&&Object.entries(v).length&&p({rjr:Wf(v)});return B}; bnS=function(z,K){var f=KC(z,function(M,p){return p.video.fps>32?Math.min(M,p.video.width):M},Infinity); f32||M.video.widthz.W)return"max"+z.W;if(z.VE&&K.Ra==="h"&&K.video&&K.video.qualityOrdinal>1080)return"blkhigh264";if(K.Ra==="(h"&&!f.G)return"enchdr";if((M===void 0?0:M)&&pZ(K)&&!z.Bx)return"blk51live";if((K.Ra==="MAC3"||K.Ra==="mac3")&&!z.J)return"blkac3";if((K.Ra==="MEAC3"||K.Ra==="meac3")&&!z.C)return"blkeac3";if(K.Ra==="M"||K.Ra==="m")return"blkaac51"; if((K.Ra==="so"||K.Ra==="sa")&&!z.Y1)return"blkamb";if(!z.W1&&lWW(K)&&(!f.C||K.Ra!=="1e"))return"cbc";if(!f.C&&lWW(K)&&K.Ra==="1e")return"cbcav1";if((K.Ra==="i"||K.Ra==="I")&&!z.LI)return"blkiamf";var t;if(z.nI&&((t=K.audio)==null?void 0:t.Y)===!0)return"blkvbcabr";var B,v;if(z.Xc&&(K.Ra==="1"||K.Ra==="1h"||f.C&&K.Ra==="1e")&&((B=K.video)==null?0:B.qualityOrdinal)&&((v=K.video)==null?void 0:v.qualityOrdinal)>z.Xc)return"av1cap";M=f.J.get(K.Ra);if(!z.TP&&M&&M.mG>0)return p.add(K.Ra),"byerr";var I; if((I=K.video)==null?0:I.fps>32){if(!f.Hx&&!VO(f,nX.FRAMERATE))return"capHfr";if(z.b_&&K.video.qualityOrdinal>=4320)return"blk8khfr";if(zr(K)&&z.b3&&K.UW&&K.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(z.yE&&K.yE>z.yE)return"ratecap";z=qq5(f,K);return z!==!0?z:!0}; qo=function(z,K){K=K===void 0?[]:K;g.J2(z,function(f,M){var p=M.yE-f.yE;if(!f.Zf()||!M.Zf())return p;var t=M.video.height*M.video.width-f.video.height*f.video.width;!t&&K&&K.length>0&&(f=K.indexOf(f.Ra)+1,M=K.indexOf(M.Ra)+1,t=f===0||M===0?M||-1:f-M);t||(t=p);return t})}; g.WN=function(z,K){this[N[0]]=z;this[N[38]]=K===void 0?!1:K;this[N[48]]=this[N[17]]=this[N[19]]=N[12];this[N[15]]={};this[N[5]]=N[12]}; gp=function(z){JH(z);return z[N[48]]}; iH=function(z){return z[N[0]]?z[N[0]][N[28]](N[41]):z[N[19]]===N[41]}; mTv=function(z){JH(z);return g.xf(z[N[15]],function(K){return K!==null})}; dp=function(z){JH(z);var K=decodeURIComponent(z[N[31]](N[20])||N[12])[N[14]](N[67]);return z[N[17]]===N[22]&&K[N[8]]>1&&!!K[1]}; cN=function(z,K){K=K===void 0?!1:K;JH(z);if(z[N[17]]!==N[22]){var f=z[N[57]]();f[N[11]](N[84],N[39]);return f}var M=z[N[6]]();f=new g.vx(M);var p=z[N[31]](N[9]),t=decodeURIComponent(z[N[31]](N[20])||N[12])[N[14]](N[67]);if(p&&t&&t[N[8]]>1&&t[1])return M=f.S,z=M[N[59]](/^[^.]*/,N[12]),g.G$(f,(M[N[10]](N[26])===0?N[26]:N[75])+p+N[63]+t[1]+z),f=new g.WN(f[N[49]]()),f[N[11]](N[58],N[39]),f;if(K)return f=z[N[57]](),f[N[11]](N[58],N[39]),f;p=f.S[N[27]](N[52]);f.S[N[27]](N[82])?(g.G$(f,N[47]),M=f[N[49]]()): f.S[N[27]](N[70])?(g.G$(f,N[44]),M=f[N[49]]()):(f=Reg(M),NI(f)&&(M=f));f=new g.WN(M);f[N[11]](N[77],N[39]);p&&f[N[11]](N[25],N[37]);return f}; JH=function(z){if(z[N[0]]){if(!(NI(z[N[0]])||z[N[0]][N[28]](N[41])||z[N[0]][N[28]](N[29])||z[N[0]][N[28]](N[78])))throw new g.UT(N[87],z[N[0]]);var K=g.hy(z[N[0]]);z[N[19]]=K.C;z[N[48]]=K.S+(K.T!=null?N[40]+K.T:N[12]);var f=K.Y;if(f[N[28]](N[22]))z[N[17]]=N[22],f=f[N[2]](14);else if(f[N[28]](N[50]))z[N[17]]=N[50],f=f[N[2]](13);else if(f[N[28]](N[74])){var M=f[N[10]](N[24],12),p=f[N[10]](N[24],M+1);M>0&&p>0?(z[N[17]]=f[N[2]](0,p),f=f[N[2]](p+1)):(z[N[17]]=f,f=N[12])}else z[N[17]]=f,f=N[12];M=z[N[15]]; z[N[15]]=l8W(f);Object[N[86]](z[N[15]],Va8(K.J.toString()));Object[N[86]](z[N[15]],M);z[N[15]][N[64]]===N[43]&&(delete z[N[15]][N[64]],z[N[17]]+=N[80]);z[N[0]]=N[12];z[N[5]]=N[12];z[N[38]]&&(JH(z),K=z[N[15]][N[33]]||null)&&(K=nIq[0](K),z[N[11]](N[33],K))}}; WE8=function(z){JH(z);var K=z[N[19]]+(z[N[19]]?N[66]:N[53])+z[N[48]]+z[N[17]];if(mTv(z)){var f=[];g.jS(z[N[15]],function(M,p){M!==null&&f[N[18]](p+N[34]+M)}); K+=N[76]+f[N[23]](N[61])}return K}; l8W=function(z){z=z[N[14]](N[24]);var K=0;z[0]||K++;for(var f={};K0?Jq5(K,M[N[2]](0,p),M[N[2]](p+1)):M&&(K[M]=N[12])}return K}; Jq5=function(z,K,f){if(K===N[42]){var M;(M=f[N[10]](N[34]))>=0?(K=N[1]+f[N[2]](0,M),f=f[N[2]](M+1)):(M=f[N[10]](N[56]))>=0&&(K=N[1]+f[N[2]](0,M),f=f[N[2]](M+3))}z[K]=f}; se=function(z){var K=g.A(z,gIS)||z[N[4]];z={T6:!1,ZT:N[12],eI:N[12],s:N[12]};if(!K)return z;K=Nu(K);z[N[54]]=!0;z[N[60]]=K[N[5]];z[N[51]]=K[N[79]];z[N[13]]=K[N[13]];return z}; AH=function(z,K,f,M,p,t,B,v,I){this.Ia=z;this.startTime=K;this.duration=f;this.ingestionTime=M;this.sourceURL=p;this.A$=I;this.endTime=K+f;this.S=B||0;this.range=t||null;this.pending=v||!1;this.A$=I||null}; g.jA=function(){this.segments=[];this.S=null;this.Y=!0;this.T=""}; inu=function(z,K){if(K>z.Mv())z.segments=[];else{var f=D4(z.segments,function(M){return M.Ia>=K},z); f>0&&z.segments.splice(0,f)}}; Y6=function(z,K,f,M,p){p=p===void 0?!1:p;this.data=z;this.offset=K;this.size=f;this.type=M;this.S=(this.Y=p)?0:8;this.dataOffset=this.offset+this.S}; XG=function(z){var K=z.data.getUint8(z.offset+z.S);z.S+=1;return K}; x6=function(z){var K=z.data.getUint16(z.offset+z.S);z.S+=2;return K}; FG=function(z){var K=z.data.getInt32(z.offset+z.S);z.S+=4;return K}; Oe=function(z){var K=z.data.getUint32(z.offset+z.S);z.S+=4;return K}; rp=function(z){var K=z.data;var f=z.offset+z.S;K=K.getUint32(f)*4294967296+K.getUint32(f+4);z.S+=8;return K}; ZJ=function(z,K){K=K===void 0?NaN:K;if(isNaN(K))var f=z.size;else for(f=z.S;f1?Math.ceil(p*K):Math.floor(p*K))}z.skip(1);f=XG(z)<<16|x6(z);if(f&256){M=f&1;p=f&4;var t=f&512,B=f&1024,v=f&2048;f=Oe(z);M&&z.skip(4);p&&z.skip(4);M=(t?4:0)+(B?4:0)+(v?4:0);for(p=0;p1?Math.ceil(B*K):Math.floor(B*K)),z.skip(M)}}}; fN=function(z){z=new DataView(z.buffer,z.byteOffset,z.byteLength);return(z=g.KN(z,0,1836476516))?g.$b(z):NaN}; Zn8=function(z){var K=g.KN(z,0,1937011556);if(!K)return null;K=M6(z,K.dataOffset+8,1635148593)||M6(z,K.dataOffset+8,1635135537);if(!K)return null;var f=M6(z,K.dataOffset+78,1936995172),M=M6(z,K.dataOffset+78,1937126244);if(!M)return null;K=null;if(f)switch(f.skip(4),XG(f)){default:K=0;break;case 1:K=2;break;case 2:K=1;break;case 3:K=255}var p=f=null,t=null;if(M=M6(z,M.dataOffset,1886547818)){var B=M6(z,M.dataOffset,1886546020),v=M6(z,M.dataOffset,2037673328);if(!v&&(v=M6(z,M.dataOffset,1836279920), !v))return null;B&&(B.skip(4),f=FG(B)/65536,t=FG(B)/65536,p=FG(B)/65536);z=dT8(v);z=new DataView(z.buffer,z.byteOffset+8,z.byteLength-8);return new OnW(K,f,t,p,z)}return null}; M6=function(z,K,f){for(;pN(z,K);){var M=tL(z,K);if(M.type===f)return M;K+=M.size}return null}; g.KN=function(z,K,f){for(;pN(z,K);){var M=tL(z,K);if(M.type===f)return M;K=Be(M.type)?K+8:K+M.size}return null}; g.N6=function(z){if(z.data.getUint8(z.dataOffset)){var K=z.data;z=z.dataOffset+4;K=K.getUint32(z)*4294967296+K.getUint32(z+4)}else K=z.data.getUint32(z.dataOffset+4);return K}; tL=function(z,K){var f=z.getUint32(K),M=z.getUint32(K+4);return new Y6(z,K,f,M)}; g.$b=function(z){var K=z.data.getUint8(z.dataOffset)?20:12;return z.data.getUint32(z.dataOffset+K)}; oI8=function(z){z=new Y6(z.data,z.offset,z.size,z.type,z.Y);var K=XG(z);z.skip(7);var f=Oe(z);if(K===0){K=Oe(z);var M=Oe(z)}else K=rp(z),M=rp(z);z.skip(2);for(var p=x6(z),t=[],B=[],v=0;v122)return!1}return!0}; Be=function(z){return z===1701082227||z===1836019558||z===1836019574||z===1835297121||z===1835626086||z===1937007212||z===1953653094||z===1953653099||z===1836475768}; CBS=function(z){z.skip(4);return{Z3L:ZJ(z,0),value:ZJ(z,0),timescale:Oe(z),uBL:Oe(z),J1x:Oe(z),id:Oe(z),Pz:ZJ(z),offset:z.offset}}; g.TIg=function(z){var K=M6(z,0,1701671783);if(!K)return null;var f=CBS(K),M=f.Z3L;f=zk(f.Pz);if(z=M6(z,K.offset+K.size,1701671783))if(z=CBS(z),z=zk(z.Pz),f&&z){K=g.a(Object.keys(z));for(var p=K.next();!p.done;p=K.next())p=p.value,f[p]=z[p]}return f?new Ue(f,M):null}; ve=function(z,K){for(var f=M6(z,0,K);f;){var M=f;M.type=1936419184;M.data.setUint32(M.offset+4,1936419184);f=M6(z,f.offset+f.size,K)}}; g.Ia=function(z,K){for(var f=0,M=[];pN(z,f);){var p=tL(z,f);p.type===K&&M.push(p);f=Be(p.type)?f+8:f+p.size}return M}; UTu=function(z,K){var f=g.KN(z,0,1937011556),M=g.KN(z,0,1953654136);if(!f||!M||z.getUint32(f.offset+12)>=2)return null;var p=new DataView(K.buffer,K.byteOffset,K.length),t=g.KN(p,0,1937011556);if(!t)return null;K=p.getUint32(t.dataOffset+8);M=p.getUint32(t.dataOffset+12);if(M!==1701733217&&M!==1701733238)return null;M=new cq8(z.byteLength+K);oR(M,z,0,f.offset+12);M.data.setInt32(M.offset,2);M.offset+=4;oR(M,z,f.offset+16,f.size-16);oR(M,p,p.byteOffset+t.dataOffset+8,K);oR(M,z,f.offset+f.size,z.byteLength- (f.offset+f.size));f=g.a([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(p=f.next();!p.done;p=f.next())p=g.KN(z,0,p.value),M.data.setUint32(p.offset,p.size+K);z=g.KN(M.data,0,1953654136);M.data.setUint32(z.offset+16,2);return M.data}; zV8=function(z){var K=g.KN(z,0,1937011556);if(!K)return null;var f=z.getUint32(K.dataOffset+12);if(f!==1701733217&&f!==1701733238)return null;K=M6(z,K.offset+24+(f===1701733217?28:78),1936289382);if(!K)return null;f=M6(z,K.offset+8,1935894637);if(!f||z.getUint32(f.offset+12)!==1667392371)return null;K=M6(z,K.offset+8,1935894633);if(!K)return null;K=M6(z,K.offset+8,1952804451);if(!K)return null;f=new Uint8Array(16);for(var M=0;M<16;M++)f[M]=z.getInt8(K.offset+16+M);return f}; Gk=function(z,K){this.S=z;this.pos=0;this.start=K||0}; br=function(z){return z.pos>=z.S.byteLength}; kb=function(z,K,f){var M=new Gk(f);if(!eK(M,z))return!1;M=wP(M);if(!D1(M,K))return!1;for(z=0;K;)K>>>=8,z++;K=M.start+M.pos;var p=yM(M,!0);M=z+(M.start+M.pos-K)+p;M=M>9?K1q(M-9,8):K1q(M-2,1);z=K-z;f.setUint8(z++,236);for(K=0;Kf;p++)f=f*256+ur(z),M*=128;return K?f-M:f}; aa=function(z){var K=yM(z,!0);z.pos+=K}; Mlg=function(z){if(!D1(z,440786851,!0))return null;var K=z.pos;yM(z,!1);var f=yM(z,!0)+z.pos-K;z.pos=K+f;if(!D1(z,408125543,!1))return null;yM(z,!0);if(!D1(z,357149030,!0))return null;var M=z.pos;yM(z,!1);var p=yM(z,!0)+z.pos-M;z.pos=M+p;if(!D1(z,374648427,!0))return null;var t=z.pos;yM(z,!1);var B=yM(z,!0)+z.pos-t,v=new Uint8Array(f+12+p+B),I=new DataView(v.buffer);v.set(new Uint8Array(z.S.buffer,z.S.byteOffset+K,f));I.setUint32(f,408125543);I.setUint32(f+4,33554431);I.setUint32(f+8,4294967295); v.set(new Uint8Array(z.S.buffer,z.S.byteOffset+M,p),f+12);v.set(new Uint8Array(z.S.buffer,z.S.byteOffset+t,B),f+12+p);return v}; LN=function(z){var K=z.pos;z.pos=0;var f=1E6;eK(z,[408125543,357149030,2807729])&&(f=hL(z));z.pos=K;return f}; pAW=function(z,K){var f=z.pos;z.pos=0;if(z.S.getUint8(z.pos)!==160&&!Ed(z)||!D1(z,160))return z.pos=f,NaN;yM(z,!0);var M=z.pos;if(!D1(z,161))return z.pos=f,NaN;yM(z,!0);ur(z);var p=ur(z)<<8|ur(z);z.pos=M;if(!D1(z,155))return z.pos=f,NaN;M=hL(z);z.pos=f;return(p+M)*K/1E9}; Ed=function(z){if(!tlT(z)||!D1(z,524531317))return!1;yM(z,!0);return!0}; tlT=function(z){if(z.bB()){if(!D1(z,408125543))return!1;yM(z,!0)}return!0}; eK=function(z,K){for(var f=0;f0){var M=Va8(K.substring(f+1));g.jS(M,function(p,t){this.set(t,p)},z); K=K.substring(0,f)}K=l8W(K);g.jS(K,function(p,t){this.set(t,p)},z)}; Nnd=function(z){var K=z.gS.Ic(),f=[];g.jS(z.S,function(p,t){f.push(t+"="+p)}); if(!f.length)return K;var M=f.join("&");z=mTv(z.gS)?"&":"?";return K+z+M}; He=function(z,K){var f=new g.WN(K);(K=f.get("req_id"))&&z.set("req_id",K);g.jS(z.S,function(M,p){f["set"](p,null)}); return f}; vrS=function(){this.J=this.T=this.S=this.timedOut=this.started=this.C=this.Y=0}; QM=function(z){z.C=(0,g.X)();z.started=0;z.timedOut=0;z.S=0}; q6=function(z,K){var f=z.started+z.S*4;K&&(f+=z.T);f=Math.max(0,f-3);return Math.pow(1.6,f)}; mA=function(z,K){z[K]||(z[K]=new vrS);return z[K]}; lr=function(z){this.N=this.G=this.C=this.T=0;this.D=this.W=!1;this.S=z;this.Y=z.clone()}; I0q=function(z,K,f){if(iH(z.S))return!1;var M=mA(f,gp(z.S));if(M.timedOut<1&&M.S<1)return!1;M=M.timedOut+M.S;z=VM(z,K);f=mA(f,gp(z));return f.timedOut+f.S+01?K=K.Ls:(f=mA(f,We(z,z.Mr(K,f),K)),K=Math.max(z.C,f.timedOut)+K.FD*(z.T-z.C)+.25*z.G,K=K>3?1E3*Math.pow(1.6,K-3):0);return K===0?!0:z.N+K<(0,g.X)()}; GrT=function(z,K,f){z.S.set(K,f);z.Y.set(K,f);z.J&&z.J.set(K,f)}; bZu=function(z,K,f,M,p){++z.T;K&&++z.C;gp(f.gS).startsWith("redirector.")&&(z.S=z.Y.clone(),delete z.J,M.K2&&delete p[gp(z.S)])}; gP=function(z){return z?(z.itag||"")+";"+(z.lmt||0)+";"+(z.xtags||""):""}; ir=function(z,K,f,M){this.initRange=f;this.indexRange=M;this.S=null;this.T=!1;this.W=0;this.J=this.TJ=this.Y=null;this.info=K;this.eE=new lr(z)}; dP=function(z,K){this.start=z;this.end=K;this.length=K-z+1}; ce=function(z){z=z.split("-");var K=Number(z[0]),f=Number(z[1]);if(!isNaN(K)&&!isNaN(f)&&z.length===2&&(z=new dP(K,f),!isNaN(z.start)&&!isNaN(z.end)&&!isNaN(z.length)&&z.length>0))return z}; sd=function(z,K){return new dP(z,z+K-1)}; eVq=function(z){return z.end==null?{start:String(z.start)}:{start:String(z.start),end:String(z.end)}}; AL=function(z){if(!z)return new dP(0,0);var K=Number(z.start);z=Number(z.end);if(!isNaN(K)&&!isNaN(z)&&(K=new dP(K,z),K.length>0))return K}; jK=function(z,K,f,M,p,t,B,v,I,G,b,e){M=M===void 0?"":M;this.type=z;this.S=K;this.range=f;this.source=M;this.u9=b;this.clipId=e===void 0?"":e;this.N=[];this.D="";this.Ia=-1;this.Y1=this.l_=0;this.D=M;this.Ia=p>=0?p:-1;this.startTime=t||0;this.duration=B||0;this.Y=v||0;this.T=I>=0?I:this.range?this.range.length:NaN;this.C=this.range?this.Y+this.T===this.range.length:G===void 0?!!this.T:G;this.range?(this.J=this.startTime+this.duration*this.Y/this.range.length,this.G=this.duration*this.T/this.range.length, this.W=this.J+this.G):wA8(this)}; wA8=function(z){Dh8?(z.J=z.startTime+Math.min(z.duration*z.Y/z.S.info.yE,z.duration),z.G=Math.min(z.duration,z.duration*z.T/z.S.info.yE),z.W=Math.min(z.J+z.G,z.startTime+z.duration)):(z.J=z.startTime,z.G=z.duration,z.W=z.J+z.G)}; yna=function(z,K,f){var M=!(!K||K.S!==z.S||K.type!==z.type||K.Ia!==z.Ia);return f?M&&!!K&&(z.range&&K.range?K.range.end===z.range.end:K.range===z.range)&&K.Y+K.T===z.Y+z.T:M}; Yb=function(z){return z.type===1||z.type===2}; Xk=function(z){return z.type===3||z.type===6}; xb=function(z,K){return z.S===K.S?z.range&&K.range?z.range.start+z.Y+z.T===K.range.start+K.Y:z.Ia===K.Ia?z.Y+z.T===K.Y:z.Ia+1===K.Ia&&K.Y===0&&z.C:!1}; hVv=function(z,K){return z.Ia!==K.Ia&&K.Ia!==z.Ia+1||z.type!==K.type?!1:xb(z,K)?!0:Math.abs(z.J-K.J)<=1E-6&&z.Ia===K.Ia?!1:kr5(z,K)}; kr5=function(z,K){return xb(z,K)||Math.abs(z.W-K.J)<=1E-6||z.Ia+1===K.Ia&&K.Y===0&&z.C?!0:!1}; Fk=function(z){return z.Ia+(z.C?1:0)}; a0u=function(z){z.length===1||g.zd(z,function(f){return!!f.range}); for(var K=1;K=K.range.start+K.Y&&z.range.start+z.Y+z.T<=K.range.start+K.Y+K.T:z.Ia===K.Ia&&z.Y>=K.Y&&(z.Y+z.T<=K.Y+K.T||K.C)}; HZg=function(z,K){return z.S!==K.S?!1:z.type===4&&K.type===3&&z.S.x9()?(z=z.S.Ws(z),$E(z,function(f){return HZg(f,K)})):z.Ia===K.Ia&&!!K.T&&K.Y+K.T>z.Y&&K.Y+K.T<=z.Y+z.T}; rP=function(z,K){var f=K.Ia;z.D="updateWithSegmentInfo";z.Ia=f;if(z.startTime!==K.startTime||z.duration!==K.duration)z.startTime=K.startTime+z.l_,z.duration=K.duration,wA8(z)}; Z1=function(z,K){var f=this;this.tL=z;this.J=this.S=null;this.C=this.Er=NaN;this.Mr=this.requestId=null;this.dO={xbE:function(){return f.range}}; this.eE=z[0].S.eE;this.Y=K||"";this.tL[0].range&&this.tL[0].T>0&&(RVS(z)?(this.range=a0u(z),this.T=this.range.length):(this.range=this.tL[this.tL.length-1].range,this.T=S3T(z)))}; oa=function(z){return!Yb(z.tL[z.tL.length-1])}; CN=function(z){return z.tL[z.tL.length-1].type===4}; g.Tk=function(z,K,f){f=z.Mr===null?z.eE.Mr(K,f,z.tL[0].type):z.Mr;if(z.S){K=f?cN(z.S,K.w_):z.S;var M=new Pe(K);M.get("alr")||M.set("alr","yes");z.Y&&BnS(M,z.Y)}else/http[s]?:\/\//.test(z.Y)?M=new Pe(new g.WN(z.Y)):(M=nN(z.eE,f,K),z.Y&&BnS(M,z.Y));(K=z.range)?M.set("range",K.toString()):z.tL[0].S.Pr()&&z.tL.length===1&&z.tL[0].Y&&M.set("range",z.tL[0].Y+"-");z.requestId&&M.set("req_id",z.requestId);isNaN(z.Er)||M.set("headm",z.Er.toString());isNaN(z.C)||M.set("mffa",z.C+"ms");z.urlParams&&g.jS(z.urlParams, function(p,t){M.set(t,p)}); return M}; QC8=function(z){if(z.range)return z.T;z=z.tL[0];return Math.round(z.G*z.S.info.yE)}; q35=function(z,K){return Math.max(0,z.tL[0].J-K)}; Ud=function(z,K,f,M,p,t){t=t===void 0?0:t;ir.call(this,z,K,M,void 0);this.C=f;this.fW=t;this.index=p||new g.jA}; mhu=function(z,K,f,M,p){this.Ia=z;this.startSecs=K;this.mP=f;this.S=M||NaN;this.Y=p||NaN}; zO=function(z,K,f){for(;z;z=z.parentNode)if(z.attributes&&(!f||z.nodeName===f)){var M=z.getAttribute(K);if(M)return M}return""}; Kx=function(z,K){for(;z;z=z.parentNode){var f=z.getElementsByTagName(K);if(f.length>0)return f[0]}return null}; l0g=function(z){if(!z)return 0;var K=z.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return K?(Number(K[2])|0)*3600+(Number(K[4])|0)*60+(Number(K[6])|0):Number(z)|0}; Vlq=function(z){return z.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?z+"Z":z}; $y=function(){this.S=[];this.Y=null;this.W=0;this.T=[];this.C=!1;this.G="";this.J=-1}; nrv=function(z){var K=z.T;z.T=[];return K}; W1d=function(){this.J=[];this.S=null;this.Y={};this.T={}}; dh5=function(z,K){var f=[];K=Array.from(K.getElementsByTagName("SegmentTimeline"));K=g.a(K);for(var M=K.next();!M.done;M=K.next()){M=M.value;var p=M.parentNode.parentNode,t=null;p.nodeName==="Period"?t=JnS(z):p.nodeName==="AdaptationSet"?(p=p.getAttribute("id")||p.getAttribute("mimetype")||"",t=grv(z,p)):p.nodeName==="Representation"&&(p=p.getAttribute("id")||"",t=iZ8(z,p));if(t==null)return;t.update(M);g.Po(f,nrv(t))}g.Po(z.J,f);HWW(z.J,function(B){return B.startSecs*1E3+B.S})}; cnS=function(z){z.S&&(z.S.S=[]);g.jS(z.Y,function(K){K.S=[]}); g.jS(z.T,function(K){K.S=[]})}; JnS=function(z){z.S||(z.S=new $y);return z.S}; grv=function(z,K){z.Y[K]||(z.Y[K]=new $y);return z.Y[K]}; iZ8=function(z,K){z.T[K]||(z.T[K]=new $y);return z.T[K]}; Mp=function(z){var K=z===void 0?{}:z;z=K.fW===void 0?0:K.fW;var f=K.Jr===void 0?!1:K.Jr;var M=K.cX===void 0?0:K.cX;var p=K.dh===void 0?0:K.dh;var t=K.Tm===void 0?Infinity:K.Tm;var B=K.Ce===void 0?0:K.Ce;var v=K.Ca===void 0?!1:K.Ca;K=K.O5===void 0?!1:K.O5;g.jA.call(this);this.Um=this.Ye=-1;this.ma=z;this.cX=M;this.Jr=f;this.dh=p;this.Tm=t;this.Ce=B;((this.Ca=v)||isFinite(t)&&this.Tm>0)&&f&&fx&&(this.Y=!1,this.T="postLive");this.O5=K}; px=function(z,K){return Wo(z.segments,function(f){return K-f.Ia})}; t5=function(z,K,f){f=f===void 0?{}:f;Ud.call(this,z,K,"",void 0,void 0,f.fW||0);this.index=new Mp(f)}; Br=function(z,K,f){ir.call(this,z,K);this.C=f;z=this.index=new g.jA;z.Y=!1;z.T="d"}; sCg=function(z,K,f){var M=z.index.E6(K),p=z.index.getStartTime(K),t=z.index.getDuration(K);f?t=f=0:f=z.info.yE*t;return new Z1([new jK(3,z,void 0,"otfCreateRequestInfoForSegment",K,p,t,0,f)],M)}; AnI=function(z,K){if(!z.index.isLoaded()){var f=[],M=K.J;K=K.C.split(",").filter(function(b){return b.length>0}); for(var p=0,t=0,B=0,v=/^(\d+)/,I=/r=(\d+)/,G=0;G0&&(p.S=Math.min(p.S+B,10),p.Y=t);p.S>0?(p.S--,p=!0):p=!1;if(p)typeof M==="function"&&(M=M()),console.log("plyr."+K,M);else{var v;M=((v=OZI.get(K))!=null?v:0)+1;OZI.set(K,M);M%100===1&&console.warn("plyr","plyr."+K+" is chatty, dropping logs.")}}}; F1u=function(){this.S=10;this.Y=Date.now()}; I6=function(z,K){this.info=z;this.Y=K;this.S=null;this.J=this.T=-1;this.timestampOffset=0;this.isLocked=this.W=!1;this.C=this.info.S.Et()&&!this.info.Y}; g.GO=function(z){return sPS(z.Y)}; rnu=function(z,K){K=Math.min(K,z.info.T);var f=z.Y.split(K),M=f.Ve;f=new I6(new jK(z.info.type,z.info.S,z.info.range,z.info.D,z.info.Ia,z.info.startTime,z.info.duration,z.info.Y,K,!1,z.info.u9,z.info.clipId),f.BJ);f.J=z.J;f.T=z.T;K=new I6(new jK(z.info.type,z.info.S,z.info.range,z.info.D,z.info.Ia,z.info.startTime,z.info.duration,z.info.Y+K,z.info.T-K,z.info.C,z.info.u9,z.info.clipId),M);K.J=z.J;K.T=z.T;return[f,K]}; g.bj=function(z,K,f,M){f=f===void 0?!1:f;M=M===void 0?0:M;if(z.isLocked||K.isLocked||!xb(z.info,K.info)||z.info.C)return null;if(M){if(z.Y.totalLength+K.Y.totalLength>M)return null}else if(f&&(f=z.Y,M=K.Y,f=!(M.S.length?d1S(f,M.S[0]):1)),f)return null;f=new jK(z.info.type,z.info.S,z.info.range,z.info.D,z.info.Ia,z.info.startTime,z.info.duration,z.info.Y,z.info.T,z.info.C,z.info.u9,z.info.clipId);M=K.info;f.T+=M.T;f.range&&(f.G+=M.G);f.W=M.W;f.C=M.C;M=new PY;HY(M,z.Y);HY(M,K.Y);f=new I6(f,M);f.S!= null&&K.S!=null&&(new g.Np("dash")).S(414627957,"merged slice emsg overridden; prev: "+f.S.KO()+" next: "+K.S.KO());f.S=K.S||z.S;f.T=z.T!==-1?z.T:K.T;f.J=z.J!==-1?z.J:K.J;return f}; g.en=function(z){g.tn(z.info.S.info)||z.info.S.info.qT();if(z.T!==-1)return z.T;if(z.S&&jAS(z.S))return z.T=jAS(z.S),z.T;if(g.tn(z.info.S.info)){var K=g.GO(z);for(var f=z.info.S.S,M=NaN,p=NaN,t=0;pN(K,t);){var B=tL(K,t);B.type===1936286840?p=B.data.getUint32(B.dataOffset+8):B.type===1836476516?p=g.$b(B):B.type===1952867444&&isNaN(M)&&(M=g.N6(B));t=Be(B.type)?t+8:t+B.size}!p&&f&&(p=fN(f));K=M/p}else K=new Gk(g.GO(z)),f=z.C?K:new Gk(new DataView(z.info.S.S.buffer)),M=LN(f),f=K.pos,K.pos=0,Ed(K)?D1(K, 231)?(M=hL(K)*M/1E9,K.pos=f,K=M):(K.pos=f,K=NaN):(K.pos=f,K=NaN);z.T=K||z.info.J;return z.T}; ora=function(z,K){z.timestampOffset>0&&(K-=z.timestampOffset);var f=g.en(z)+K;ZZa(z,f);z.timestampOffset=K}; ZZa=function(z,K){g.tn(z.info.S.info)||z.info.S.info.qT();z.T=K;if(g.tn(z.info.S.info)){var f=g.GO(z);z=z.info.S.S;for(var M=NaN,p=NaN,t=0;pN(f,t);){var B=tL(f,t);isNaN(M)&&(B.type===1936286840?M=B.data.getUint32(B.dataOffset+8):B.type===1836476516&&(M=g.$b(B)));if(B.type===1952867444){!M&&z&&(M=fN(z));var v=g.N6(B);isNaN(p)&&(p=Math.round(K*M)-v);var I=B;v+=p;if(I.data.getUint8(I.dataOffset)){var G=I.data;I=I.dataOffset+4;G.setUint32(I,Math.floor(v/4294967296));G.setUint32(I+4,v&4294967295)}else I.data.setUint32(I.dataOffset+ 4,v)}t=Be(B.type)?t+8:t+B.size}return!0}f=new Gk(g.GO(z));z=z.C?f:new Gk(new DataView(z.info.S.S.buffer));M=LN(z);z=f.pos;f.pos=0;if(Ed(f)&&D1(f,231))if(p=yM(f,!0),K=Math.floor(K*1E9/M),Math.ceil(Math.log(K)/Math.log(2)/8)>p)K=!1;else{for(M=p-1;M>=0;M--)f.S.setUint8(f.pos+M,K&255),K>>>=8;f.pos=z;K=!0}else K=!1;return K}; DH=function(z,K){K=K===void 0?!1:K;var f=wN(z);z=K?0:z.info.G;return f||z}; wN=function(z){g.tn(z.info.S.info)||z.info.S.info.qT();if(z.S&&z.info.type===6)return z.S.fW;if(g.tn(z.info.S.info)){var K=g.GO(z);var f=0;K=g.Ia(K,1936286840);K=g.a(K);for(var M=K.next();!M.done;M=K.next())M=oI8(M.value),f+=M.cN[0]/M.timescale;f=f||NaN;if(!(f>=0))a:{f=g.GO(z);K=z.info.S.S;for(var p=M=0,t=0;pN(f,M);){var B=tL(f,M);if(B.type===1836476516)p=g.$b(B);else if(B.type===1836019558){!p&&K&&(p=fN(K));if(!p){f=NaN;break a}var v=M6(B.data,B.dataOffset,1953653094),I=v;v=p;var G=M6(I.data,I.dataOffset, 1952868452);I=M6(I.data,I.dataOffset,1953658222);var b=FG(G);FG(G);b&2&&FG(G);G=b&8?FG(G):0;var e=FG(I),w=e&1;b=e&4;var D=e&256,y=e&512,R=e&1024;e&=2048;var S=Oe(I);w&&FG(I);b&&FG(I);for(var E=w=0;E2048?"":K.indexOf("https://")===0?K:""}; Sn=function(z,K,f){K.match(Nfd);return z(K,f).then(function(M){var p=g.BfS(M.xhr);return p?Sn(z,p,f):M.xhr})}; Pr=function(z,K,f){z=z===void 0?"":z;K=K===void 0?null:K;f=f===void 0?!1:f;g.Dv.call(this);var M=this;this.sourceUrl=z;this.isLivePlayback=f;this.Xc=this.duration=0;this.isPremiere=this.Ca=this.J=this.isLiveHeadPlayable=this.isLive=this.Y=!1;this.Tm=this.dh=0;this.isOtf=this.CI=!1;this.vx=(0,g.X)();this.Y1=Infinity;this.S={};this.T=new Map;this.state=this.Pm=0;this.timeline=null;this.isManifestless=!1;this.Hx=[];this.W=null;this.eV=0;this.C="";this.Bx=NaN;this.nH=this.LI=this.timestampOffset=this.G= 0;this.RL=this.Bg=NaN;this.Z2=0;this.Px=this.N=!1;this.QE=[];this.b_={};this.l_=NaN;this.dO={G2q:function(v){uj(M,v)}}; var p;this.VE=(p=K)==null?void 0:p.sf("html5_use_network_error_code_enums");vmd=!!K&&K.sf("html5_modern_vp9_mime_type");var t;Lx=!((t=K)==null||!t.sf("html5_enable_flush_during_seek"))&&g.CJ();var B;EQ=!((B=K)==null||!B.sf("html5_enable_reset_audio_decoder"))&&g.CJ()}; IbW=function(z){return g.xf(z.S,function(K){return!!K.info.video&&K.info.video.qualityOrdinal>=2160})}; EIu=function(z){return g.xf(z.S,function(K){return!!K.info.video&&K.info.video.isHdr()})}; HN=function(z){return g.xf(z.S,function(K){return!!K.info.UW})}; g.GxW=function(z){return g.xf(z.S,function(K){return Gr(K.info.mimeType)})}; bwv=function(z){return g.xf(z.S,function(K){return K.info.video?K.info.video.projectionType==="EQUIRECTANGULAR":!1})}; eaq=function(z){return g.xf(z.S,function(K){return K.info.video?K.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; wCd=function(z){return g.xf(z.S,function(K){return K.info.video?K.info.video.projectionType==="MESH":!1})}; DB8=function(z){return g.xf(z.S,function(K){return K.info.video?K.info.video.stereoLayout===1:!1})}; yjI=function(z){return Vqp(z.S,function(K){return K.info.video?K.kJ():!0})}; LX=function(z){return g.xf(z.S,function(K){return iH(K.eE.S)})}; uj=function(z,K){z.S[K.info.id]=K;z.T.set(gP(g.Nh(K.info,z.CI)),K)}; qp=function(z,K,f){f=f===void 0?0:f;var M=z.mimeType||"",p=z.itag;var t=z.xtags;p=p?p.toString():"";t&&(p+=";"+t);t=p;if(IC(M)){var B=z.width||640;p=z.height||360;var v=z.fps,I=z.qualityLabel,G=z.colorInfo,b=z.projectionType,e;z.stereoLayout&&(e=kxg[z.stereoLayout]);var w=pCo(z)||void 0;if(G==null?0:G.primaries)var D=hau[G.primaries]||void 0;B=new Z8(B,p,v,b,e,void 0,I,w,D);M=Hr(M,B,T5[z.itag||""]);Lx&&(M+="; enableflushduringseek=true");EQ&&(M+="; enableresetaudiodecoder=true")}var y;if(vA(M)){var R= z.audioSampleRate;e=z.audioTrack;R=new FI(R?+R:void 0,z.audioChannels,z.spatialAudioType,z.isDrc,z.loudnessDb,z.trackAbsoluteLoudnessLkfs,z.audioQuality||"AUDIO_QUALITY_UNKNOWN",z.isVb);e&&(D=e.displayName,p=e.id,e=e.audioIsDefault,D&&(y=new g.R6(D,p||"",!!e)))}var S;z.captionTrack&&(I=z.captionTrack,e=I.displayName,D=I.vssId,p=I.languageCode,v=I.kind,I=I.id,e&&D&&p&&(S=new fbu(e,D,p,v,z.xtags,I)));e=Number(z.bitrate)/8;D=Number(z.contentLength);p=Number(z.lastModified);I=z.drmFamilies;v=z.type;f= f&&D?D/f:0;z=Number(z.approxDurationMs);if(K&&I){var E={};I=g.a(I);for(G=I.next();!G.done;G=I.next())(G=Q6[G.value])&&(E[G]=K[G])}return new Uq(t,M,{audio:R,video:B,b8:y,UW:E,yE:e,X8:f,contentLength:D,lastModified:p,captionTrack:S,streamType:v,approxDurationMs:z})}; mj=function(z,K,f){f=f===void 0?0:f;var M=z.type;var p=z.itag;var t=z.xtags;t&&(p=z.itag+";"+t);if(IC(M)){var B=(z.size||"640x360").split("x");B=new Z8(+B[0],+B[1],+z.fps,z.projection_type,+z.stereo_layout,void 0,z.quality_label,z.eotf,z.primaries);M=Hr(M,B,T5[z.itag]);Lx&&(M+="; enableflushduringseek=true");EQ&&(M+="; enableresetaudiodecoder=true")}var v;if(vA(M)){var I=new FI(+z.audio_sample_rate||void 0,+z.audio_channels||0,z.spatial_audio_type,!!z.drc);z.name&&(v=new g.R6(z.name,z.audio_track_id, z.isDefault==="1"))}var G;z.caption_display_name&&z.caption_vss_id&&z.caption_language_code&&(G=new fbu(z.caption_display_name,z.caption_vss_id,z.caption_language_code,z.caption_kind,z.xtags,z.caption_id));t=Number(z.bitrate)/8;var b=Number(z.clen),e=Number(z.lmt);f=f&&b?b/f:0;if(K&&z.drm_families){var w={};for(var D=g.a(z.drm_families.split(",")),y=D.next();!y.done;y=D.next())y=y.value,w[y]=K[y]}return new Uq(p,M,{audio:I,video:B,b8:v,UW:w,yE:t,X8:f,contentLength:b,lastModified:e,captionTrack:G, streamType:z.stream_type,approxDurationMs:Number(z.approx_duration_ms)})}; abS=function(z){return $E(z,function(K){return"FORMAT_STREAM_TYPE_OTF"===K.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; RaS=function(z){return $E(z,function(K){return"FORMAT_STREAM_TYPE_OTF"===K.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; SLI=function(z,K){return z.timeline?QQ(z.timeline.J,K):z.Hx.length?QQ(z.Hx,K):[]}; lj=function(z,K,f){K=K===void 0?"":K;f=f===void 0?"":f;z=new g.WN(z,!0);z.set("alr","yes");f&&(f=XdS(decodeURIComponent(f)),z[N[11]](K,encodeURIComponent(f)));return z}; Pqg=function(z,K){var f=zO(K,"id");f=f.replace(":",";");var M=zO(K,"mimeType"),p=zO(K,"codecs");M=p?M+'; codecs="'+p+'"':M;p=Number(zO(K,"bandwidth"))/8;var t=Number(Kx(K,"BaseURL").getAttribute(z.C+":contentLength")),B=z.duration&&t?t/z.duration:0;if(IC(M)){var v=Number(zO(K,"width"));var I=Number(zO(K,"height")),G=Number(zO(K,"frameRate")),b=uvp(zO(K,z.C+":projectionType"));a:switch(zO(K,z.C+":stereoLayout")){case "layout_left_right":var e=1;break a;case "layout_top_bottom":e=2;break a;default:e= 0}v=new Z8(v,I,G,b,e)}if(vA(M)){var w=Number(zO(K,"audioSamplingRate"));var D=Number(zO(K.getElementsByTagName("AudioChannelConfiguration")[0],"value"));I=Lf8(zO(K,z.C+":spatialAudioType"));w=new FI(w,D,I);a:{D=zO(K,"lang")||"und";if(I=Kx(K,"Role"))if(b=zO(I,"value")||"",g.o8(Em8,b)){I=D+"."+Em8[b];G=b==="main";z=zO(K,z.C+":langName")||D+" - "+b;D=new g.R6(z,I,G);break a}D=void 0}}if(K=Kx(K,"ContentProtection"))if(K.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var y={};for(K= K.firstChild;K!=null;K=K.nextSibling)K instanceof Element&&/SystemURL/.test(K.nodeName)&&(z=K.getAttribute("type"),I=K.textContent,z&&I&&(y[z]=I.trim()))}else y=void 0;return new Uq(f,M,{audio:w,video:v,b8:D,UW:y,yE:p,X8:B,contentLength:t})}; uvp=function(z){switch(z){case "equirectangular":return"EQUIRECTANGULAR";case "equirectangular_threed_top_bottom":return"EQUIRECTANGULAR_THREED_TOP_BOTTOM";case "mesh":return"MESH";case "rectangular":return"RECTANGULAR";default:return"UNKNOWN"}}; Lf8=function(z){switch(z){case "spatial_audio_type_ambisonics_5_1":return"SPATIAL_AUDIO_TYPE_AMBISONICS_5_1";case "spatial_audio_type_ambisonics_quad":return"SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD";case "spatial_audio_type_foa_with_non_diegetic":return"SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC";default:return"SPATIAL_AUDIO_TYPE_NONE"}}; Q4a=function(z,K){K=K===void 0?"":K;z.state=1;z.vx=(0,g.X)();return txI(K||z.sourceUrl).then(function(f){if(!z.CH()){z.Pm=f.status;f=f.responseText;var M=new DOMParser;f=wT(M,WVa(f),"text/xml").getElementsByTagName("MPD")[0];z.Y1=l0g(zO(f,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(f.attributes){M=g.a(f.attributes);for(var p=M.next();!p.done;p=M.next())if(p=p.value,p.value==="http://youtube.com/yt/2012/10/10"){M=p.name.split(":")[1];break b}}M=""}z.C=M;z.isLive=z.Y1=z.Y1}; mBo=function(z){z.W&&z.W.stop()}; Hwo=function(z){var K=z.Y1;isFinite(K)&&(V6(z)?z.refresh():(K=Math.max(0,z.vx+K-(0,g.X)()),z.W||(z.W=new g.Kl(z.refresh,K,z),g.d(z,z.W)),z.W.start(K)))}; lbS=function(z){z=z.S;for(var K in z){var f=z[K].index;if(f.isLoaded())return f.Mv()+1}return 0}; nx=function(z){return z.LI?z.LI-(z.G||z.timestampOffset):0}; Wr=function(z){return z.nH?z.nH-(z.G||z.timestampOffset):0}; J5=function(z){if(!isNaN(z.Bx))return z.Bx;var K=z.S,f;for(f in K){var M=K[f].index;if(M.isLoaded()&&!Gr(K[f].info.mimeType)){K=0;for(f=M.PV();f<=M.Mv();f++)K+=M.getDuration(f);K/=M.P$();K=Math.round(K/.5)*.5;M.P$()>10&&(z.Bx=K);return K}if(z.isLive&&(M=K[f],M.fW))return M.fW}return NaN}; Vxo=function(z,K){z=WSv(z.S,function(M){return M.index.isLoaded()}); if(!z)return NaN;z=z.index;var f=z.NZ(K);return z.getStartTime(f)===K?K:f=0&&p.segments.splice(t,1)}}}; WfS=function(z){for(var K in z.S)Gr(z.S[K].info.mimeType)||inu(z.S[K].index,Infinity)}; dN=function(z,K,f){for(var M in z.S){var p=z.S[M].index,t=K,B=f;p.Jr&&(t&&(p.Ye=Math.max(p.Ye,t)),B&&(p.Um=Math.max(p.Um||0,B)))}f&&(z.l_=f/1E3)}; JjS=function(z){z.nH=0;z.LI=0;z.Z2=0}; cr=function(z){return z.Px&&z.isManifestless?z.isLiveHeadPlayable:z.isLive}; Hr=function(z,K,f){sQ===null&&(sQ=window.MediaSource&&MediaSource.isTypeSupported&&MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.16.09.00"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.99.99.00"'));if(vmd&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return sQ||f!=="9"&&f!=="("?sQ||f!=="9h"&&f!=="(h"||(z='video/webm; codecs="vp9.2"'):z='video/webm; codecs="vp9"',z;if(!sQ&&!A5||z!=='video/webm; codecs="vp9"'&&z!=='video/webm; codecs="vp9.2"')return z; f="00";var M="08",p="01",t="01",B="01";z==='video/webm; codecs="vp9.2"'&&(f="02",M="10",K.primaries==="bt2020"&&(B=p="09"),K.S==="smpte2084"&&(t="16"),K.S==="arib-std-b67"&&(t="18"));return'video/webm; codecs="'+["vp09",f,"51",M,"01",p,t,B,"00"].join(".")+'"'}; Yy=function(z,K,f){z=""+z+(K>49?"p60":K>32?"p48":"");K=TI()[z];if(K!=null&&K>0)return K;K=jn.get(z);if(K!=null&&K>0)return K;f=f==null?void 0:f.get(z);return f!=null&&f>0?f:8192}; gmS=function(z){this.pH=z;this.ra=this.T2=this.eV=this.C=this.J=this.QE=this.Px=this.Y1=!1;this.G=this.W=0;this.VE=!1;this.l_=!0;this.b_=!1;this.zN=0;this.Mf=this.nH=!1;this.E0=!0;this.vx=this.Bx=!1;this.S={};this.TP=this.nI=this.O3=this.disableAv1=this.oa=this.SU=this.rE=this.SE=this.Y=this.D=!1;this.Ph=this.pH.B("html5_disable_aac_preference");this.Z2=Infinity;this.Hx=0;this.Ft=this.pH.i8();this.W1=this.pH.experiments.sf("html5_enable_vp9_fairplay");this.t9=this.pH.B("html5_force_av1_for_testing"); this.Xc=g.uY(this.pH.experiments,"html5_av1_ordinal_cap");this.b3=this.pH.B("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.D3=this.pH.B("html5_account_onesie_format_selection_during_format_filter");this.yE=g.uY(this.pH.experiments,"html5_max_byterate");this.LI=this.pH.B("html5_enable_iamf_audio");this.QW=this.pH.experiments.sf("html5_allow_capability_merge");this.RF=this.pH.B("html5_enable_encrypted_av1")}; PBS=function(z){if(z.Px)return["f"];if(g.ZQ("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var K=["9h","9","h","8"];z.RF&&K.push("1e");K=K.concat(["(h","(","H","*"]);z.nH&&(K.unshift("1"),K.unshift("1h"));z.T2&&K.unshift("h");z.N&&(K=(iwS[z.N]||[z.N]).concat(K));return K}; hGu=function(z){var K=["o","a","A"];z.Hx===1&&(z.J&&(K=["mac3","MAC3"].concat(K)),z.C&&(K=["meac3","MEAC3"].concat(K)),z.LI&&(K=["i","I"].concat(K)));z.Y1&&(K=["so","sa"].concat(K));!z.ra||z.eV||z.T||z.Ph||K.unshift("a");z.T&&(K=(iwS[z.T]||[z.T]).concat(K));return K}; X7=function(z,K,f,M){K=K===void 0?{}:K;if(M===void 0?0:M)return K.disabled=1,0;if(VO(z.C,nX.AV1_CODECS)&&VO(z.C,nX.HEIGHT)&&VO(z.C,nX.BITRATE))return K.isCapabilityUsable=1,8192;try{var p=T3g();if(p&&!z.B("disable_av1_setting"))return K.localPref=p}catch(v){}M=1080;p=navigator.hardwareConcurrency;p<=2&&(M=480);K.coreCount=p;if(p=g.uY(z.experiments,"html5_default_av1_threshold"))M=K["default"]=p;!z.B("html5_disable_av1_arm_check")&&k$o()&&(K.isArm=1,M=240);if(z=z.C.l_)K.mcap=z,M=Math.max(M,z);if(f){var t, B;if(z=(t=f.videoInfos.find(function(v){return fZ(v)}))==null?void 0:(B=t.Y)==null?void 0:B.powerEfficient)M=8192,K.isEfficient=1; f=f.videoInfos[0].video;t=Math.min(Yy("1",f.fps),Yy("1",30));K.perfCap=t;M=Math.min(M,t);f.isHdr()&&!z&&(K.hdr=1,M*=.75)}else f=Yy("1",30),K.perfCap30=f,M=Math.min(M,f),f=Yy("1",60),K.perfCap60=f,M=Math.min(M,f);return K.av1Threshold=M}; F7=function(z,K,f,M){this.flavor=z;this.keySystem=K;this.Y=f;this.experiments=M;this.S={};this.Xc=this.keySystemAccess=null;this.jl=this.Hf=-1;this.oH=null;this.T=!!M&&M.sf("edge_nonprefixed_eme");M&&M.sf("html5_enable_vp9_fairplay")}; rN=function(z){return z.T?!1:!z.keySystemAccess&&!!OQ()&&z.keySystem==="com.microsoft.playready"}; ZH=function(z){return z.keySystem==="com.microsoft.playready"}; o6=function(z){return!z.keySystemAccess&&!!OQ()&&z.keySystem==="com.apple.fps.1_0"}; Cx=function(z){return z.keySystem==="com.youtube.fairplay"}; TO=function(z){return z.keySystem==="com.youtube.fairplay.sbdl"}; g.UQ=function(z){return z.flavor==="fairplay"}; OQ=function(){var z=window,K=z.MSMediaKeys;zC()&&!K&&(K=z.WebKitMediaKeys);return K&&K.isTypeSupported?K:null}; KO=function(z){return navigator.requestMediaKeySystemAccess?g.sq&&!g.CJ()?nl("45"):g.Ux||g.Sy?z.sf("edge_nonprefixed_eme"):g.z0?nl("47"):g.PJ&&z.sf("html5_enable_safari_fairplay")?!1:!0:!1}; dBg=function(z,K,f,M){var p=TM(),t=(f=p||f&&zC())?["com.youtube.fairplay"]:["com.widevine.alpha"];K&&t.unshift("com.youtube.widevine.l3");p&&M&&t.unshift("com.youtube.fairplay.sbdl");return f?t:z?[].concat(g.P(t),g.P($v.playready)):[].concat(g.P($v.playready),g.P(t))}; fO=function(z,K,f,M,p){M=M===void 0?!1:M;g.J.call(this);this.pH=K;this.useCobaltWidevine=M;this.Th=p;this.Y=[];this.T={};this.S={};this.callback=null;this.C=!1;this.J=[];this.initialize(z,!f)}; s4W=function(z,K){z.callback=K;z.J=[];KO(z.pH.experiments)?Mw(z):cj8(z)}; Mw=function(z){if(!z.CH())if(z.Y.length===0)z.callback(z.J);else{var K=z.Y[0],f=z.T[K],M=Ajp(z,f);if(pO&&pO.keySystem===K&&pO.Bhc===JSON.stringify(M))z.Th("remksa",{re:!0}),j45(z,f,pO.keySystemAccess);else{var p,t;z.Th("remksa",{re:!1,ok:(t=(p=pO)==null?void 0:p.keySystem)!=null?t:""});pO=void 0;navigator.requestMediaKeySystemAccess(K,M).then(ng(function(B){j45(z,f,B,M)}),ng(function(){z.C=!z.C&&z.T[z.Y[0]].flavor==="widevine"; z.C||z.Y.shift();Mw(z)}))}}}; j45=function(z,K,f,M){if(!z.CH()){M&&(pO={keySystem:K.keySystem,keySystemAccess:f,Bhc:JSON.stringify(M)});K.keySystemAccess=f;if(ZH(K)){f=dI();M=g.a(Object.keys(z.S[K.flavor]));for(var p=M.next();!p.done;p=M.next())p=p.value,K.S[p]=!!f.canPlayType(p)}else{f=K.keySystemAccess.getConfiguration();if(f.audioCapabilities)for(M=g.a(f.audioCapabilities),p=M.next();!p.done;p=M.next())K.S[p.value.contentType]=!0;if(f.videoCapabilities)for(f=g.a(f.videoCapabilities),M=f.next();!M.done;M=f.next())K.S[M.value.contentType]= !0}z.J.push(K);z.useCobaltWidevine||z.B("html5_enable_vp9_fairplay")&&TO(K)?(z.Y.shift(),Mw(z)):z.callback(z.J)}}; Ajp=function(z,K){var f={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(z.B("html5_enable_vp9_fairplay")&&Cx(K))return f.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),f.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[f];ZH(K)&&(f.initDataTypes=["keyids","cenc"]);for(var M=g.a(Object.keys(z.S[K.flavor])),p=M.next();!p.done;p=M.next()){p=p.value;var t=p.indexOf("audio/")===0,B=t?f.audioCapabilities:f.videoCapabilities;K.flavor!== "widevine"||z.C?B.push({contentType:p}):t?B.push({contentType:p,robustness:"SW_SECURE_CRYPTO"}):(g.sq&&g.ZQ("windows nt")&&!z.B("html5_drm_enable_moho")||B.push({contentType:p,robustness:"HW_SECURE_ALL"}),t=p,z.pH.C.T&&p.includes("vp09")&&(t=p+"; experimental=allowed"),B.push({contentType:t,robustness:"SW_SECURE_DECODE"}),g.tw(z.pH)==="MWEB"&&(tV()||ow())&&(z.Th("swcrypto",{}),B.push({contentType:p,robustness:"SW_SECURE_CRYPTO"})))}return[f]}; cj8=function(z){if(OQ()&&(g.PJ||$a))z.J.push(new F7("fairplay","com.apple.fps.1_0","",z.pH.experiments));else{var K=YLI(),f=g.yQ(z.Y,function(M){var p=z.T[M],t=!1,B=!1,v;for(v in z.S[p.flavor])K(v,M)&&(p.S[v]=!0,t=t||v.indexOf("audio/")===0,B=B||v.indexOf("video/")===0);return t&&B}); f&&z.J.push(z.T[f]);z.Y=[]}z.callback(z.J)}; YLI=function(){var z=OQ();if(z){var K=z.isTypeSupported;return function(M,p){return K(p,M)}}var f=dI(); return f&&(f.addKey||f.webkitAddKey)?function(M,p){return!!f.canPlayType(M,p)}:function(){return!1}}; XCS=function(z){this.experiments=z;this.S=2048;this.J=0;this.l_=(this.G=this.B("html5_streaming_resilience"))?.5:.25;var K=K===void 0?0:K;this.T=g.uY(this.experiments,"html5_media_time_weight_prop")||K;this.Y1=g.uY(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.N=(this.C=this.experiments.sf("html5_consider_end_stall"))&&BZ;this.Y=this.experiments.sf("html5_measure_max_progress_handling");this.D=this.B("html5_treat_requests_pre_elbow_as_metadata");this.W=this.B("html5_media_time_weight")|| !!this.T;this.B("html5_sabr_live_audio_early_return_fix")&&BZ&&(this.S=65536)}; xBg=function(z,K){this.S=void 0;this.experimentIds=z?z.split(","):[];this.flags=ta(K||"","&");z={};K=g.a(this.experimentIds);for(var f=K.next();!f.done;f=K.next())z[f.value]=!0;this.experiments=z}; g.uY=function(z,K){z=z.flags[K];JSON.stringify(z);return Number(z)||0}; Nw=function(z,K){return(z=z.flags[K])?z.toString():""}; Ffv=function(z){if(z=z.flags.html5_web_po_experiment_ids)if(z=z.replace(/\[ *(.*?) *\]/,"$1"))return z.split(",").map(Number);return[]}; Owa=function(z){if(z.S)return z.S;if(z.experimentIds.length<=1)return z.S=z.experimentIds,z.S;var K=[].concat(g.P(z.experimentIds)).map(function(M){return Number(M)}); K.sort();for(var f=K.length-1;f>0;--f)K[f]-=K[f-1];z.S=K.map(function(M){return M.toString()}); z.S.unshift("v1");return z.S}; Zwo=function(z){return rjI.then(z)}; vZ=function(z,K,f){this.experiments=z;this.Hx=K;this.eV=f===void 0?!1:f;this.N=!!g.CW("cast.receiver.platform.canDisplayType");this.D={};this.Y1=!1;this.J=new Map;this.G=!0;this.Y=this.T=!1;this.S=new Map;this.l_=0;this.nH=this.experiments.sf("html5_disable_vp9_encrypted");this.C=this.experiments.sf("html5_enable_encrypted_av1");z=g.CW("cast.receiver.platform.getValue");this.W=!this.N&&z&&z("max-video-resolution-vpx")||null;omp(this);this.T=!!(TM()&&rV()>=21)}; qq5=function(z,K,f){f=f===void 0?1:f;var M=K.itag;if(M==="0")return!0;var p=K.mimeType;if(K.Ra==="1e"&&!z.C)return"dav1enc";if(fZ(K)&&z.Y1)return"dav1";if(K.video&&(K.video.isHdr()||K.video.primaries==="bt2020")&&!(VO(z,nX.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||window.screen.pixelDepth>24&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if(M==="338"&&!(g.sq?nl(53):g.z0&&nl(64)))return"dopus";var t=f;t=t===void 0?1: t;f={};K.video&&(K.video.width&&(f[nX.WIDTH.name]=K.video.width),K.video.height&&(f[nX.HEIGHT.name]=K.video.height),K.video.fps&&(f[nX.FRAMERATE.name]=K.video.fps*t),K.video.S&&(f[nX.EOTF.name]=K.video.S),K.yE&&(f[nX.BITRATE.name]=K.yE*8*t),K.Ra==="("&&(f[nX.CRYPTOBLOCKFORMAT.name]="subsample"),K.video.projectionType==="EQUIRECTANGULAR"||K.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||K.video.projectionType==="MESH")&&(f[nX.DECODETOTEXTURE.name]="true");K.audio&&K.audio.numChannels&& (f[nX.CHANNELS.name]=K.audio.numChannels);z.T&&zr(K)&&(f[nX.EXPERIMENTAL.name]="allowed");t=g.a(Object.keys(nX));for(var B=t.next();!B.done;B=t.next()){B=nX[B.value];var v;if(v=f[B.name])if(v=!(B===nX.EOTF&&K.mimeType.indexOf("vp09.02")>0)){v=B;var I=K;v=!(z.experiments.sf("html5_ignore_h264_framerate_cap")&&v===nX.FRAMERATE&&mS8(I))}if(v)if(VO(z,B))if(z.W){if(z.W[B.name] 1080&&K.UW&&(p+="; hdcp=2.2");return M==="227"?"hqcenc":M!=="585"&&M!=="588"&&M!=="583"&&M!=="586"&&M!=="584"&&M!=="587"&&M!=="591"&&M!=="592"||z.experiments.sf("html5_enable_new_hvc_enc")?TM()&&rV()>=21&&g.ZQ("appletv5")&&(M==="410"||M==="845")?!0:z.isTypeSupported(p)?!0:"tpus":"newhvc"}; IQ=function(){var z=ow()&&!nl(29),K=g.ZQ("google tv")&&g.ZQ("chrome")&&!nl(30);return z||K?!1:gkp()}; Cqg=function(z,K,f){var M=480;K=g.a(K);for(var p=K.next();!p.done;p=K.next()){p=p.value;var t=p.video.qualityOrdinal;t<=1080&&t>M&&qq5(z,p,f)===!0&&(M=t)}return M}; g.G0=function(z,K){K=K===void 0?!1:K;return IQ()&&z.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!K&&z.canPlayType(dI(),"application/x-mpegURL")?!0:!1}; UBo=function(z){Tfv(function(){for(var K=g.a(Object.keys(nX)),f=K.next();!f.done;f=K.next())VO(z,nX[f.value])})}; VO=function(z,K){K.name in z.D||(z.D[K.name]=zSS(z,K));return z.D[K.name]}; zSS=function(z,K){if(z.W)return!!z.W[K.name];if(K===nX.BITRATE&&z.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!z.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(K===nX.AV1_CODECS)return z.isTypeSupported("video/mp4; codecs="+K.valid)&&!z.isTypeSupported("video/mp4; codecs="+K.VJ);if(K.video){var f='video/webm; codecs="vp9"';z.isTypeSupported(f)||(f='video/mp4; codecs="avc1.4d401e"')}else f='audio/webm; codecs="opus"', z.isTypeSupported(f)||(f='audio/mp4; codecs="mp4a.40.2"');return z.isTypeSupported(f+"; "+K.name+"="+K.valid)&&!z.isTypeSupported(f+"; "+K.name+"="+K.VJ)}; K3q=function(z,K){var f=0;z.J.has(K)&&(f=z.J.get(K).Dl);z.J.set(K,{Dl:f+1,mG:Math.pow(2,f+1)});z.Y=!0}; QO=function(z){for(var K=[],f=g.a(z.S.keys()),M=f.next();!M.done;M=f.next()){M=M.value;var p=z.S.get(M);K.push(M+"_"+p.maxWidth+"_"+p.maxHeight)}return K.join(".")}; RGq=function(z,K){for(var f=new Map,M=g.a(z.S.keys()),p=M.next();!p.done;p=M.next()){p=p.value;var t=p.split("_")[0];K.has(t)||f.set(p,z.S.get(p))}z.S=f}; uIg=function(z,K,f){var M,p=((M=f.video)==null?void 0:M.fps)||0;M=K+"_"+p;var t=!!f.audio,B={itag:f.itag,Ra:K,ev:t};if(t)B.numChannels=f.audio.numChannels;else{var v=f.video;B.maxWidth=v==null?void 0:v.width;B.maxHeight=v==null?void 0:v.height;B.maxFramerate=p;VO(z,nX.BITRATE)&&(B.maxBitrateBps=f.yE*8);B.qw=v==null?void 0:v.isHdr()}v=z.S.get(M);v?t||(f=Math.max(v.maxWidth||0,v.maxHeight||0)>Math.max(B.maxWidth||0,B.maxHeight||0)?v:B,K={itag:f.itag,Ra:K,ev:t,maxWidth:Math.max(v.maxWidth||0,B.maxWidth|| 0),maxHeight:Math.max(v.maxHeight||0,B.maxHeight||0),maxFramerate:p,qw:f.qw},VO(z,nX.BITRATE)&&(K.maxBitrateBps=f.maxBitrateBps),z.S.set(M,K)):z.S.set(M,B)}; LEa=function(z,K,f){var M,p=((M=f.video)==null?void 0:M.fps)||0;M=K+"_"+p;var t=!!f.audio,B=z.S.get(M);a:{var v=z.S.get(M),I=!!f.audio;if(v){if(I){var G=!1;break a}var b;if(!I&&((G=f.video)==null?0:G.height)&&v.maxHeight&&v.maxHeight>=((b=f.video)==null?void 0:b.height)){G=!1;break a}}G=!0}G&&(G=f.itag,K=B?B:{itag:G,Ra:K,ev:t},t?K.numChannels=f.audio.numChannels:(t=f.video,K.maxWidth=t==null?void 0:t.width,K.maxHeight=t==null?void 0:t.height,K.maxFramerate=p,VO(z,nX.BITRATE)&&(K.maxBitrateBps=f.yE* 8),K.qw=t==null?void 0:t.isHdr()),z.S.set(M,K))}; omp=function(z){var K;(K=navigator.mediaCapabilities)!=null&&K.decodingInfo&&navigator.mediaCapabilities.decodingInfo({type:"media-source",video:{contentType:'video/mp4; codecs="av01.0.12M.08"',width:3840,height:2160,bitrate:32E6,framerate:60}}).then(function(f){f.smooth&&f.powerEfficient&&(z.l_=2160)})}; bI=function(){g.Dv.call(this);this.items={}}; $Zp=function(z,K,f){this.encryptedClientKey=K;this.C=f;this.S=new Uint8Array(z.buffer,0,16);this.T=new Uint8Array(z.buffer,16)}; fMT=function(z){z.Y||(z.Y=new g.nf(z.S));return z.Y}; eo=function(z){try{return Ij(z)}catch(K){return null}}; M7W=function(z,K){if(!K&&z)try{K=JSON.parse(z)}catch(p){}if(K){z=K.clientKey?eo(K.clientKey):null;var f=K.encryptedClientKey?eo(K.encryptedClientKey):null,M=K.keyExpiresInSeconds?Number(K.keyExpiresInSeconds)*1E3+(0,g.X)():null;z&&f&&M&&(this.S=new $Zp(z,f,M));K.onesieUstreamerConfig&&(this.onesieUstreamerConfig=eo(K.onesieUstreamerConfig)||void 0);this.baseUrl=K.baseUrl}}; D5=function(){this.data=new Uint8Array(2048);this.pos=0;w7||(w7=A0("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; yT=function(z,K){z.add(K==null||isNaN(K)?0:K+1)}; kv=function(z){this.S=this.Y=0;this.alpha=Math.exp(Math.log(.5)/z)}; hw=function(z){this.Y=z===void 0?15:z;this.values=new Float64Array(176);this.S=new Float64Array(11);this.T=new Float64Array(16)}; aQ=function(z,K,f,M){f=f===void 0?.5:f;M=M===void 0?0:M;this.resolution=K;this.Y=0;this.T=!1;this.hn=!0;this.S=Math.round(z*this.resolution);this.values=Array(this.S);for(z=0;z0)K=z.byterate,this.Y1=!0;else{var M; f=(((M=navigator.connection)==null?void 0:M.downlink)||0)*64*1024;f>0&&(K=f,this.Y1=!0)}this.T.uj(this.policy.W,K);z.delay>0&&this.D.uj(1,Math.min(z.delay,2));z.stall>0&&this.G.uj(1,z.stall);z.init>0&&(this.vx=Math.min(z.init,this.vx));z.interruptions&&(this.J=this.J.concat(z.interruptions),this.J.length>16&&this.J.pop());this.l_=(0,g.X)();this.policy.G>0&&(this.Px=new g.Kl(this.QE,this.policy.G,this),g.d(this,this.Px),this.Px.start())}; So=function(z,K,f,M){z.T.uj(M===void 0?K:M,f/K);z.W=(0,g.X)()}; t7S=function(z){z.C||(z.C=(0,g.X)());z.policy.N&&(z.W=(0,g.X)())}; Bia=function(z,K){if(z.C){var f=K-z.C;if(f<6E4){if(f>1E3){var M=z.interruptions;M.push(Math.ceil(f));M.sort(function(p,t){return t-p}); M.length>16&&M.pop()}z.Hx+=f}}z.C=K}; uI=function(z,K,f,M,p,t){t=t===void 0?!1:t;z.Bx.uj(K,f/K);z.W=(0,g.X)();p||z.N.uj(1,K-M);t||(z.C=0);z.l_>-1&&(0,g.X)()-z.l_>3E4&&NiS(z)}; LO=function(z,K,f){K=Math.max(K,z.Y.S);z.G.uj(1,f/K)}; Ei=function(z){z=z.D.k9()+z.eV.k9()||0;z=isNaN(z)?.5:z;return z=Math.min(z,5)}; PZ=function(z,K,f){isNaN(f)||(z.nH+=f);isNaN(K)||(z.Xc+=K)}; HZ=function(z){z=z.T.k9();return z>0?z:1}; QT=function(z,K,f){K=K===void 0?!1:K;f=f===void 0?1048576:f;var M=HZ(z);M=1/((z.G.k9()||0)*z.policy.Y1+1/M);var p=z.Bx.k9();p=p>0?p:1;var t=Math.max(M,p);z.policy.C>0&&p=4E3}; IMS=function(z){this.experiments=z;this.S=17;this.T=13E4;this.W=.5;this.J=this.Y=!1;this.l_=this.B("html5_use_histogram_for_bandwidth");this.C=g.uY(this.experiments,"html5_auxiliary_estimate_weight");this.Y1=g.uY(this.experiments,"html5_stall_factor")||1;this.G=g.uY(this.experiments,"html5_check_for_idle_network_interval_ms");this.D=this.experiments.sf("html5_trigger_loader_when_idle_network");this.N=this.experiments.sf("html5_sabr_fetch_on_idle_network_preloaded_players")}; bb5=function(z,K){z=z===void 0?{}:z;K=K===void 0?{}:K;g.J.call(this);var f=this;this.values=z;this.iY=K;this.Y={};this.T=this.S=0;this.J=new g.Kl(function(){Gpo(f)},1E4); g.d(this,this.J)}; mF=function(z,K){eSI(z,K);return z.values[K]&&z.iY[K]?z.values[K]/Math.pow(2,z.S/z.iY[K]):0}; eSI=function(z,K){z.values[K]||(K=rKa(),z.values=K.values||{},z.iY=K.halfLives||{},z.Y=K.values?Object.assign({},K.values):{})}; Gpo=function(z){var K=rKa();if(K.values){K=K.values;for(var f={},M=g.a(Object.keys(z.values)),p=M.next();!p.done;p=M.next())p=p.value,K[p]&&z.Y[p]&&(z.values[p]+=K[p]-z.Y[p]),f[p]=mF(z,p);z.Y=f}K=z.iY;f={};f.values=z.Y;f.halfLives=K;g.sT("yt-player-memory",f,2592E3)}; Z5=function(z,K,f,M,p){g.J.call(this);this.webPlayerContextConfig=K;this.aH=M;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Yx=this.W1=this.ES=this.tJ=this.userDisplayName=this.userDisplayImage=this.G8="";this.S={};this.Ft={};this.controlsType="0";this.RF=NaN;this.SE=!1;this.FK=(0,g.X)();this.LI=0;this.oH=this.Bg=!1;this.yw=!0;this.preferGapless=this.aL=this.K3=this.T=this.PA=!1;this.q8=[];this.XK=!1;this.Ar=0;z=z?g.$o(z):{};K&&K.csiPageType&&(this.csiPageType=K.csiPageType);K&&K.csiServiceName&& (this.csiServiceName=K.csiServiceName);K&&K.preferGapless&&(this.preferGapless=K.preferGapless);this.experiments=new xBg(K?K.serializedExperimentIds:z.fexp,K?K.serializedExperimentFlags:z.fflags);this.forcedExperiments=K?K.serializedForcedExperimentIds:bu("",z.forced_experiments)||void 0;this.cspNonce=(K==null?0:K.cspNonce)?K.cspNonce:bu("",z.csp_nonce);this.B("web_player_deprecated_uvr_killswitch");try{var t=document.location.toString()}catch(T){t=""}this.BA=t;this.ancestorOrigins=(M=window.location.ancestorOrigins)? Array.from(M):[];this.J=vK(!1,K?K.isEmbed:z.is_embed);if(K&&K.device){if(M=K.device,M.androidOsExperience&&(this.S.caoe=""+M.androidOsExperience),M.androidPlayServicesVersion&&(this.S.capsv=""+M.androidPlayServicesVersion),M.brand&&(this.S.cbrand=M.brand),M.browser&&(this.S.cbr=M.browser),M.browserVersion&&(this.S.cbrver=M.browserVersion),M.cobaltReleaseVehicle&&(this.S.ccrv=""+M.cobaltReleaseVehicle),this.S.c=M.interfaceName||"WEB",this.S.cver=M.interfaceVersion||"html5",M.interfaceTheme&&(this.S.ctheme= M.interfaceTheme),this.S.cplayer=M.interfacePlayerType||"UNIPLAYER",M.model&&(this.S.cmodel=M.model),M.network&&(this.S.cnetwork=M.network),M.os&&(this.S.cos=M.os),M.osVersion&&(this.S.cosver=M.osVersion),M.platform&&(this.S.cplatform=M.platform),t=Nw(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),t==="all"||t==="once")M.chipset&&(this.Ft.cchip=M.chipset),M.cobaltAppVersion&&(this.Ft.ccappver=M.cobaltAppVersion),M.firmwareVersion&&(this.Ft.cfrmver=M.firmwareVersion),M.deviceYear&&(this.Ft.crqyear= M.deviceYear)}else this.S.c=z.c||"web",this.S.cver=z.cver||"html5",this.S.cplayer="UNIPLAYER";this.loaderUrl=K?this.J||wpT(this)&&K.loaderUrl?K.loaderUrl||"":this.BA:this.J||wpT(this)&&z.loaderUrl?bu("",z.loaderUrl):this.BA;this.J&&g.ov("yt.embedded_player.embed_url",this.loaderUrl);this.D=Bt(this.loaderUrl,DZv);M=this.loaderUrl;var B=B===void 0?!1:B;this.wu=tA(Bt(M,yQT),M,B,"Trusted Ad Domain URL");this.ra=vK(!1,z.privembed);this.protocol=this.BA.indexOf("http:")===0?"http":"https";this.c7=GUT((K? K.customBaseYoutubeUrl:z.BASE_YT_URL)||"")||GUT(this.BA)||this.protocol+"://www.youtube.com/";B=K?K.eventLabel:z.el;M="detailpage";B==="adunit"?M=this.J?"embedded":"detailpage":B==="embedded"||this.D?M=IZ(M,B,kp8):B&&(M="embedded");this.eV=M;lQg();B=null;M=K?K.playerStyle:z.ps;t=g.h2(hST,M);!M||t&&!this.D||(B=M);this.playerStyle=B;this.W=g.h2(hST,this.playerStyle);this.houseBrandUserStatus=K==null?void 0:K.houseBrandUserStatus;this.l_=this.W&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.ke=!this.l_;this.Xc=vK(!1,z.disableplaybackui);this.disablePaidContentOverlay=vK(!1,K==null?void 0:K.disablePaidContentOverlay);this.disableSeek=vK(!1,K==null?void 0:K.disableSeek);this.enableSpeedOptions=(K==null?void 0:K.enableSpeedOptions)||(dI().defaultPlaybackRate?lI||g.p3||VT?g.z0&&nl("20")||g.sq&&nl("4")||g.nO&&nl("11")||K3():!(g.nO&&!g.ZQ("chrome")||lI||g.ZQ("android")||g.ZQ("silk")):!1);this.Pg=vK(!1,z.enable_faster_speeds);var v;this.supportsVarispeedExtendedFeatures=(v=K==null?void 0: K.supportsVarispeedExtendedFeatures)!=null?v:!1;this.Y=vK(this.playerStyle==="blazer",z.is_html5_mobile_device||K&&K.isMobileDevice);this.QE=Mm()||tV();this.Gc=this.B("mweb_allow_background_playback")?!1:this.Y&&!this.W;this.Bx=XI();this.An=g.WZ;var I;this.S1=!!(K==null?0:(I=K.embedsHostFlags)==null?0:I.optOutApiDeprecation);var G;this.A1=!!(K==null?0:(G=K.embedsHostFlags)==null?0:G.allowPfpImaIntegration);this.nN=this.B("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var b;K?K.hideInfo!== void 0&&(b=!K.hideInfo):b=z.showinfo;this.Ri=g.Jw(this)&&!this.S1||vK(!g7(this)&&!iI(this)&&!this.W,b);this.t0=K?!!K.mobileIphoneSupportsInlinePlayback:vK(!1,z.playsinline);v=this.Y&&d7&&cZ!=null&&cZ>0&&cZ<=2.3;I=K?K.useNativeControls:z.use_native_controls;this.G=g.Jw(this)&&this.Y;G=this.Y&&!this.G;I=g.si(this)||!v&&vK(G,I)?"3":"1";this.disableOrganicUi=!(K==null||!K.disableOrganicUi);G=K?K.controlsType:z.controls;this.controlsType=this.disableOrganicUi||G==="0"||G===0?"0":I;this.Rf=this.Y;this.color= IZ("red",K?K.progressBarColor:z.color,aMq);this.gx=this.controlsType==="3";this.O3=!this.J;this.N2=(I=!this.O3&&!iI(this)&&!this.l_&&!this.W&&!g7(this))&&!this.gx&&this.controlsType==="1";this.SU=g.Aw(this)&&I&&this.controlsType==="0"&&!this.N2&&!(K==null?0:K.embedsEnableEmc3ds);this.qb=this.Sq=v;this.D3=(this.controlsType==="3"||this.Y||vK(!1,z.use_media_volume))&&!this.G;this.ai=$a&&!g.Qw(601)?!1:!0;this.du=this.J||!1;this.E0=iI(this)?"":(this.loaderUrl||z.post_message_origin||"").substring(0,128); this.widgetReferrer=bu("",K?K.widgetReferrer:z.widget_referrer);var e;K?K.disableCastApi&&(e=!1):e=z.enablecastapi;e=!this.D||vK(!0,e);v=!0;K&&K.disableMdxCast&&(v=!1);this.Fa=this.B("enable_cast_for_web_unplugged")&&g.jo(this)&&v||g.O$(this)&&v||e&&v&&this.controlsType==="1"&&!this.Y&&(iI(this)||g.Aw(this)||g.Yv(this));this.TY=!!window.document.pictureInPictureEnabled||YI();e=K?!!K.supportsAutoplayOverride:vK(!1,z.autoplayoverride);this.Ix=!(this.Y&&!g.Jw(this))&&!g.ZQ("nintendo wiiu")||e;this.Co= (K?!!K.enableMutedAutoplay:vK(!1,z.mutedautoplay))&&!1;e=(iI(this)||g7(this))&&this.playerStyle==="blazer";this.Dh=K?!!K.disableFullscreen:!vK(!0,z.fs);v=g.yS(g.Xf(this))&&g.Jw(this);this.nI=!this.Dh&&(e||g.L3())&&!v;this.yM=this.B("html5_picture_in_picture_logging_onresize");var w;this.aP=(w=g.uY(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?w:.33;this.A0=this.B("html5_picture_in_picture_blocking_onresize");this.LY=this.B("html5_picture_in_picture_blocking_ontimeupdate"); this.fE=this.B("html5_picture_in_picture_blocking_document_fullscreen");this.r_=this.B("html5_picture_in_picture_blocking_standard_api");w=ow()&&nl(58)&&!tV();e=TN||typeof MediaSource==="undefined";this.w8=this.B("uniplayer_block_pip")&&(w||e)||this.A0||this.LY||this.r_;w=g.Jw(this)&&!this.S1;var D;K?K.disableRelatedVideos!==void 0&&(D=!K.disableRelatedVideos):D=z.rel;this.QW=w||vK(!this.W,D);this.lY=vK(!1,K?K.enableContentOwnerRelatedVideos:z.co_rel);this.N=tV()&&cZ>0&&cZ<=4.4?"_top":"_blank";this.Hm= g.Yv(this);this.w2=vK(this.playerStyle==="blazer",K?K.enableCsiLogging:z.enablecsi);switch(this.playerStyle){case "blogger":D="bl";break;case "gmail":D="gm";break;case "gac":D="ga";break;case "ads-preview":D="ap";break;case "books":D="gb";break;case "docs":case "flix":D="gd";break;case "duo":D="gu";break;case "google-live":D="gl";break;case "google-one":D="go";break;case "play":case "play-ads":D="gp";break;case "chat":D="hc";break;case "hangouts-meet":D="hm";break;case "photos-edu":case "picasaweb":D= "pw";break;default:D="yt"}this.Y1=D;this.nH=bu("",K?K.authorizedUserIndex:z.authuser);this.Z2=g.Jw(this)&&(this.ra||!DcT()||this.QE);var y;K?K.disableWatchLater!==void 0&&(y=!K.disableWatchLater):y=z.showwatchlater;this.b3=((D=!this.Z2)||!!this.nH&&D)&&vK(!this.l_,this.D?y:void 0);this.C3=K?K.isMobileDevice||!!K.disableKeyboardControls:vK(!1,z.disablekb);this.loop=vK(!1,z.loop);this.pageId=bu("",K?K.initialDelegatedSessionId:z.pageid);this.YX=vK(!0,z.canplaylive);this.oa=vK(!1,z.livemonitor);this.disableSharing= vK(this.W,K?K.disableSharing:z.ss);(y=K&&this.B("fill_video_container_size_override_from_wpcc")?K.videoContainerOverride:z.video_container_override)?(D=y.split("x"),D.length!==2?y=null:(y=Number(D[0]),D=Number(D[1]),y=isNaN(y)||isNaN(D)||y*D<=0?null:new g.W9(y,D))):y=null;this.oi=y;this.mute=K?!!K.startMuted:vK(!1,z.mute);this.storeUserVolume=!this.mute&&vK(this.controlsType!=="0",K?K.storeUserVolume:z.store_user_volume);y=K?K.annotationsLoadPolicy:z.iv_load_policy;this.annotationsLoadPolicy=this.controlsType=== "3"?3:IZ(void 0,y,xv);this.captionsLanguagePreference=K?K.captionsLanguagePreference||"":bu("",z.cc_lang_pref);y=IZ(2,K?K.captionsLanguageLoadPolicy:z.cc_load_policy,xv);this.controlsType==="3"&&y===2&&(y=3);this.tU=y;this.Ph=K?K.hl||"en_US":bu("en_US",z.hl);this.region=K?K.contentRegion||"US":bu("US",z.cr);this.hostLanguage=K?K.hostLanguage||"en":bu("en",z.host_language);this.G2=!this.ra&&Math.random()=480;this.schedule=new RQ(e,new XCS(this.experiments),p);g.d(this,this.schedule);var R;this.enableSafetyMode=(R=K==null?void 0:K.initialEnableSafetyMode)!=null? R:vK(!1,z.enable_safety_mode);p=this.Xc?!1:iI(this)&&this.playerStyle!=="blazer";var S;K?K.disableAutonav!=null&&(S=!K.disableAutonav):S=z.allow_autonav;this.t9=vK(p,!this.l_&&S);this.sendVisitorIdHeader=K?!!K.sendVisitorIdHeader:vK(!1,z.send_visitor_id_header);var E;this.playerStyle==="docs"&&(K?E=K.disableNativeContextMenu:E=z.disable_native_context_menu);this.disableNativeContextMenu=vK(!1,E);this.zc=g3(this)&&this.B("enable_skip_intro_button");this.embedConfig=bu("",K?K.serializedEmbedConfig: z.embed_config);this.Hx=DF(z,g.Jw(this));this.T=this.Hx==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(K==null||!K.embedsErrorLinks);this.Zh=vK(!1,z.full_window);var L;this.VE=!((L=this.webPlayerContextConfig)==null?0:L.chromeless);var q;this.livingRoomAppMode=IZ("LIVING_ROOM_APP_MODE_UNSPECIFIED",z.living_room_app_mode||(K==null?void 0:(q=K.device)==null?void 0:q.livingRoomAppMode),u0W);var V;S=GC(NaN,K==null?void 0:(V=K.device)==null?void 0:V.deviceYear);isNaN(S)||(this.deviceYear=S);this.transparentBackground= K?!!K.transparentBackground:vK(!1,z.transparent_background);this.showMiniplayerButton=K?!!K.showMiniplayerButton:vK(!1,z.show_miniplayer_button);var c;g.Jw(this)&&!(K==null?0:(c=K.embedsHostFlags)==null?0:c.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=K?!!K.externalFullscreen:vK(!1,z.external_fullscreen);this.showMiniplayerUiWhenMinimized=K?!!K.showMiniplayerUiWhenMinimized:vK(!1,z.use_miniplayer_ui);var O;this.yw=(O=z.show_loop_video_toggle)!=null?O:!0;this.NP=Math.random()< 1E-4;this.L7=z.onesie_hot_config||(K==null?0:K.onesieHotConfig)?new M7W(z.onesie_hot_config,K==null?void 0:K.onesieHotConfig):void 0;this.isTectonic=K?!!K.isTectonic:!!z.isTectonic;this.playerCanaryState=f;this.playerCanaryStage=K==null?void 0:K.canaryStage;this.Gw=new bb5;g.d(this,this.Gw);this.datasyncId=(K==null?void 0:K.datasyncId)||g.zM("DATASYNC_ID");this.s8=g.zM("LOGGED_IN",!1);this.w$=(K==null?void 0:K.allowWoffleManagement)||!1;this.r8=Infinity;this.LW=NaN;this.livingRoomPoTokenId=K==null? void 0:K.livingRoomPoTokenId;this.B("html5_high_res_logging_always")?this.K3=!0:this.K3=Math.random()*100=0&&z0&&z.NP&&(M.sort(),g.Al(new g.UT("Player client parameters changed after startup",M)));z.userAge=GC(z.userAge,K.user_age);z.G8=bu(z.G8,K.user_display_email);z.userDisplayImage=bu(z.userDisplayImage,K.user_display_image);g.vt(z.userDisplayImage)||(z.userDisplayImage= "");z.userDisplayName=bu(z.userDisplayName,K.user_display_name);z.tJ=bu(z.tJ,K.user_gender);z.csiPageType=bu(z.csiPageType,K.csi_page_type);z.csiServiceName=bu(z.csiServiceName,K.csi_service_name);z.w2=vK(z.w2,K.enablecsi);z.pageId=bu(z.pageId,K.pageid);if(f=K.enabled_engage_types)z.enabledEngageTypes=new Set(f.split(","));K.living_room_session_po_token&&(z.lW=K.living_room_session_po_token.toString())}; oQ=function(z,K){return!z.W&&ow()&&nl(55)&&z.controlsType==="3"&&!K}; g.CO=function(z){z=Ff(z.c7);return z==="www.youtube-nocookie.com"?"www.youtube.com":z}; T0=function(z,K,f){return z.protocol+"://i1.ytimg.com/vi/"+K+"/"+(f||"hqdefault.jpg")}; Ui=function(z){return iI(z)&&!g.jo(z)}; g.si=function(z){return z.B("html5_local_playsinline")?$a&&!g.Qw(602)&&!("playsInline"in dI()):$a&&!z.t0||g.ZQ("nintendo wiiu")?!0:!1}; g.tw=function(z){return z.S.c}; g.iY=function(z){return/^TVHTML5/.test(g.tw(z))}; g.zt=function(z){return g.tw(z)==="TVHTML5"}; wpT=function(z){return g.tw(z)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; SSg=function(z){return z.S.cmodel==="CHROMECAST ULTRA/STEAK"||z.S.cmodel==="CHROMECAST/STEAK"}; g.Ka=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; g3=function(z){return/web/i.test(g.tw(z))}; g.$t=function(z){return g.tw(z).toUpperCase()==="WEB"}; r7=function(z){return g.tw(z)==="WEB_KIDS"}; g.jo=function(z){return g.tw(z)==="WEB_UNPLUGGED"}; fa=function(z){return g.tw(z)==="TVHTML5_UNPLUGGED"}; g.JK=function(z){return g.jo(z)||g.tw(z)==="TV_UNPLUGGED_CAST"||fa(z)}; g.O$=function(z){return g.tw(z)==="WEB_REMIX"}; g.MR=function(z){return g.tw(z)==="WEB_EMBEDDED_PLAYER"}; g.tX=function(z){return(z.deviceIsAudioOnly||!g.sq||TN||z.controlsType==="3"?!1:g.p3?z.J&&g.Qw(51):!0)||(z.deviceIsAudioOnly||!g.z0||TN||z.controlsType==="3"?!1:g.p3?z.J&&g.Qw(48):g.Qw(38))||(z.deviceIsAudioOnly||!g.nO||TN||z.controlsType==="3"?!1:g.p3?z.J&&g.Qw(37):g.Qw(27))||!z.deviceIsAudioOnly&&g.pa&&!Rb8()&&g.Qw(11)||!z.deviceIsAudioOnly&&g.PJ&&g.Qw("604.4")}; Pbq=function(z){if(g.Aw(z)&&d7)return!1;if(g.z0){if(!g.Qw(47)||!g.Qw(52)&&g.Qw(51))return!1}else if(g.PJ)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; Q$S=function(z,K){return z.enabledEngageTypes.has(K.toString())||HbS.includes(K)}; iI=function(z){return z.eV==="detailpage"}; g.Aw=function(z){return z.eV==="embedded"}; BG=function(z){return z.eV==="leanback"}; g7=function(z){return z.eV==="adunit"||z.playerStyle==="gvn"}; g.Yv=function(z){return z.eV==="profilepage"}; g.Jw=function(z){return z.J&&g.Aw(z)&&!g7(z)&&!z.W}; NR=function(z){if(!z.userDisplayImage)return"";var K=z.userDisplayImage.split("/");if(K.length===5)return z=K[K.length-1].split("="),z[1]="s20-c",K[K.length-1]=z.join("="),K.join("/");if(K.length===8)return K.splice(7,0,"s20-c"),K.join("/");if(K.length===9)return K[7]+="-s20-c",K.join("/");g.Al(new g.UT("Profile image not a FIFE URL.",z.userDisplayImage));return z.userDisplayImage}; g.vG=function(z){var K=g.CO(z);qSu.includes(K)&&(K="www.youtube.com");return z.protocol+"://"+K}; g.IB=function(z,K){K=K===void 0?"":K;if(z.aH){var f=new BC,M,p=z.aH();p.signedOut?M="":p.token?M=p.token:p.pendingResult.then(function(t){p.signedOut?f.resolve(""):f.resolve(t.token)},function(t){g.Al(new g.UT("b189348328_oauth_callback_failed",{error:t})); f.resolve(K)}); return M!==void 0?cg(M):new im(f)}return cg(K)}; Gt=function(z,K){K=K===void 0?"":K;return z.s8?h3(!0):Lg(uV(h3(g.IB(z,K)),function(f){return h3(!!f)}),function(){return h3(!1)})}; Ff=function(z){var K=g.EW(z);return(z=Number(g.Le(z)[4]||null)||null)?K+":"+z:K}; b1=function(z,K){K=K===void 0?!1:K;var f=T5[z],M=mZo[f],p=lMq[z];if(!p||!M)return null;K=new Z8(K?p.height:p.width,K?p.width:p.height,p.fps);M=Hr(M,K,f);return new Uq(z,M,{video:K,yE:p.bitrate/8})}; nqp=function(z){var K=mZo[T5[z]],f=V7S[z];return f&&K?new Uq(z,K,{audio:new FI(f.audioSampleRate,f.numChannels)}):null}; e1=function(z){this.S=z}; wA=function(z,K,f,M){if(f)return dV();f={};var p=dI();K=g.a(K);for(var t=K.next();!t.done;t=K.next())if(t=t.value,z.canPlayType(p,t.getInfo().mimeType)||M){var B=t.S.video.quality;if(!f[B]||f[B].getInfo().qT())f[B]=t}z=[];f.auto&&z.push(f.auto);M=g.a(oA);for(p=M.next();!p.done;p=M.next())(p=f[p.value])&&z.push(p);return z.length?cg(z):dV()}; W35=function(z){this.itag=z.itag;this.url=z.url;this.codecs=z.codecs;this.width=z.width;this.height=z.height;this.fps=z.fps;this.bitrate=z.bitrate;var K;this.Y=((K=z.audioItag)==null?void 0:K.split(","))||[];this.TV=z.TV;this.UW=z.UW||"";this.b8=z.b8;this.audioChannels=z.audioChannels;this.S=""}; JQT=function(z,K,f,M){K=K===void 0?!1:K;f=f===void 0?!0:f;M=M===void 0?{}:M;var p={};z=g.a(z);for(var t=z.next();!t.done;t=z.next()){t=t.value;if(K&&MediaSource&&MediaSource.isTypeSupported){var B=t.type;t.audio_channels&&(B=B+"; channels="+t.audio_channels);if(!MediaSource.isTypeSupported(B)){M[t.itag]="tpus";continue}}if(f||!t.drm_families||t.eotf!=="smpte2084"&&t.eotf!=="arib-std-b67"){B=void 0;var v={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},I=t.type.match(/codecs="([^"]*)"/); I=I?I[1]:"";t.audio_track_id&&(B=new g.R6(t.name,t.audio_track_id,!!t.is_default));var G=t.eotf;t=new W35({itag:t.itag,url:t.url,codecs:I,width:Number(t.width),height:Number(t.height),fps:Number(t.fps),bitrate:Number(t.bitrate),audioItag:t.audio_itag,TV:G?v[G]:void 0,UW:t.drm_families,b8:B,audioChannels:Number(t.audio_channels)});p[t.itag]=p[t.itag]||[];p[t.itag].push(t)}else M[t.itag]="enchdr"}return p}; gq5=function(z,K,f,M,p){this.T=z;this.Y=K;this.C=f;this.cpn=M;this.W=p;this.J=0;this.S=""}; ibq=function(z,K){z.T.some(function(f){var M;return((M=f.b8)==null?void 0:M.getId())===K}); z.S=K}; DY=function(z,K,f){z.cpn&&(K=g.V8(K,{cpn:z.cpn}));f&&(K=g.V8(K,{paired:f}));return K}; dZT=function(z,K){z=z.itag.toString();K!==null&&(z+=K.itag.toString());return z}; cQg=function(z){for(var K=[],f=[],M=g.a(z.Y),p=M.next();!p.done;p=M.next())p=p.value,p.bitrate<=z.J?K.push(p):f.push(p);K.sort(function(t,B){return B.bitrate-t.bitrate}); f.sort(function(t,B){return t.bitrate-B.bitrate}); z.Y=K.concat(f)}; yJ=function(z,K,f){this.S=z;this.Y=K;this.expiration=f;this.eE=null}; s$S=function(z,K){if(!(TN||zC()||TM()))return null;z=JQT(K,z.B("html5_filter_fmp4_in_hls"));if(!z)return null;K=[];for(var f={},M=g.a(Object.keys(z)),p=M.next();!p.done;p=M.next()){p=g.a(z[p.value]);for(var t=p.next();!t.done;t=p.next()){var B=t.value;B.b8&&(t=B.b8.getId(),f[t]||(B=new g.eA(t,B.b8),f[t]=B,K.push(B)))}}return K.length>0?K:null}; xZI=function(z,K,f,M,p,t,B){if(!(TN||zC()||TM()))return dV();var v={},I=AQd(f),G=JQT(f,z.B("html5_filter_fmp4_in_hls"),z.C.G,v);if(!G)return B({noplst:1}),dV();j$8(G);f={};var b=(f.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",f),e;f=[];var w=[],D=[],y=null,R="";M=M&&M.match(/hls_timedtext_playlist/)?new W35({itag:"0",url:M,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,b8:new g.R6("English","en",!1)}):null;for(var S=g.a(Object.keys(G)),E=S.next();!E.done;E=S.next())if(E=E.value,!z.B("html5_disable_drm_hfr_1080")|| E!=="383"&&E!=="373"){E=g.a(G[E]);for(var L=E.next();!L.done;L=E.next())if(L=L.value,L.width){for(var q=g.a(L.Y),V=q.next();!V.done;V=q.next())if(V=V.value,G[V]){L.S=V;break}L.S||(L.S=YSo(G,L));if(q=G[L.S])if(f.push(L),L.UW==="fairplay"&&(e=b),V="",L.TV==="PQ"?V="smpte2084":L.TV==="HLG"&&(V="arib-std-b67"),V&&(R=V),D.push(Xpg(q,[L],M,t,L.itag,L.width,L.height,L.fps,I,void 0,void 0,e,V)),!y||L.width*L.height*L.fps>y.width*y.height*y.fps)y=L}else w.push(L)}else v[E]="disdrmhfr";D.reduce(function(c, O){return O.getInfo().isEncrypted()&&c},!0)&&(e=b); p=Math.max(p,0);b=y||{};G=b.fps===void 0?0:b.fps;y=b.width===void 0?0:b.width;b=b.height===void 0?0:b.height;S=z.B("html5_native_audio_track_switching");D.push(Xpg(w,f,M,t,"93",y,b,G,I,"auto",p,e,R,S));Object.entries(v).length&&B(v);return wA(z.C,D,oQ(z,K),!1)}; Xpg=function(z,K,f,M,p,t,B,v,I,G,b,e,w,D){for(var y=0,R="",S=g.a(z),E=S.next();!E.done;E=S.next())E=E.value,R||(R=E.itag),E.audioChannels&&E.audioChannels>y&&(y=E.audioChannels,R=E.itag);p=new Uq(p,"application/x-mpegURL",{audio:new FI(0,y),video:new Z8(t,B,v,null,void 0,G,void 0,w),UW:e,Gg:R});z=new gq5(z,K,f?[f]:[],M,!!D);z.J=b?b:1369843;return new yJ(p,z,I)}; AQd=function(z){z=g.a(z);for(var K=z.next();!K.done;K=z.next())if(K=K.value,K.url&&(K=K.url.split("expire/"),!(K.length<=1)))return+K[1].split("/")[0];return NaN}; YSo=function(z,K){for(var f=g.a(Object.keys(z)),M=f.next();!M.done;M=f.next()){M=M.value;var p=z[M][0];if(!p.width&&p.UW===K.UW&&!p.audioChannels)return M}return""}; j$8=function(z){for(var K=new Set,f=g.a(Object.values(z)),M=f.next();!M.done;M=f.next())M=M.value,M.length&&(M=M[0],M.height&&M.codecs.startsWith("vp09")&&K.add(M.height));f=[];if(K.size){M=g.a(Object.keys(z));for(var p=M.next();!p.done;p=M.next())if(p=p.value,z[p].length){var t=z[p][0];t.height&&K.has(t.height)&&!t.codecs.startsWith("vp09")&&f.push(p)}}K=g.a(f);for(f=K.next();!f.done;f=K.next())delete z[f.value]}; kt=function(z,K){this.S=z;this.Y=K}; F3o=function(z,K,f,M){var p=[];f=g.a(f);for(var t=f.next();!t.done;t=f.next()){var B=t.value;if(B.url){t=new g.WN(B.url,!0);if(B.s){var v=t,I=B.sp,G=XdS(decodeURIComponent(B.s));v[N[11]](I,encodeURIComponent(G))}v=g.a(Object.keys(M));for(I=v.next();!I.done;I=v.next())I=I.value,t.set(I,M[I]);B=bh(B.type,B.quality,B.itag,B.width,B.height);p.push(new kt(B,t))}}return wA(z.C,p,oQ(z,K),!1)}; hX=function(z,K){this.S=z;this.Y=K}; ObT=function(z,K,f){var M=[];f=g.a(f);for(var p=f.next();!p.done;p=f.next())if((p=p.value)&&p.url){var t=bh(p.type,"medium","0");M.push(new hX(t,p.url))}return wA(z.C,M,oQ(z,K),!1)}; rQq=function(z,K){var f=[],M=bh(K.type,"auto",K.itag);f.push(new hX(M,K.url));return wA(z.C,f,!1,!0)}; oqT=function(z){return z&&Zbg[z]?Zbg[z]:null}; CbW=function(z){switch(z){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return z;default:return"sabr.config"}}; TiS=function(z){if(z=z.commonConfig)this.url=z.url,this.urlQueryOverride=z.urlQueryOverride,z.ustreamerConfig&&(this.vg=eo(z.ustreamerConfig)||void 0)}; UZv=function(z,K){var f;if(K=K==null?void 0:(f=K.watchEndpointSupportedOnesieConfig)==null?void 0:f.html5PlaybackOnesieConfig)z.Ff=new TiS(K)}; g.aB=function(z){z=z===void 0?{}:z;this.languageCode=z.languageCode||"";this.languageName=z.languageName||null;this.kind=z.kind||"";this.name=z.name===void 0?null:z.name;this.displayName=z.displayName||null;this.id=z.id||null;this.S=z.is_servable||!1;this.isTranslateable=z.is_translateable||!1;this.url=z.url||null;this.vssId=z.vss_id||"";this.isDefault=z.is_default||!1;this.translationLanguage=z.translationLanguage||null;this.xtags=z.xtags||"";this.captionId=z.captionId||""}; g.S1=function(z){var K={languageCode:z.languageCode,languageName:z.languageName,displayName:g.RB(z),kind:z.kind,name:z.name,id:z.id,is_servable:z.S,is_default:z.isDefault,is_translateable:z.isTranslateable,vss_id:z.vssId};z.xtags&&(K.xtags=z.xtags);z.captionId&&(K.captionId=z.captionId);z.translationLanguage&&(K.translationLanguage=z.translationLanguage);return K}; g.u1=function(z){return z.translationLanguage?z.translationLanguage.languageCode:z.languageCode}; g.ziv=function(z){var K=z.vssId;z.translationLanguage&&K&&(K="t"+K+"."+g.u1(z));return K}; g.RB=function(z){var K=[];if(z.displayName)K.push(z.displayName);else{var f=z.languageName||"";K.push(f);z.kind==="asr"&&f.indexOf("(")===-1&&K.push(" (Ph\u1ee5 \u0111\u1ec1 t\u1ef1 \u0111\u1ed9ng)");z.name&&K.push(" - "+z.name)}z.translationLanguage&&K.push(" >> "+z.translationLanguage.languageName);return K.join("")}; Meq=function(z,K,f,M){z||(z=K&&Kso.hasOwnProperty(K)&&$vT.hasOwnProperty(K)?$vT[K]+"_"+Kso[K]:void 0);K=z;if(!K)return null;z=K.match(fIW);if(!z||z.length!==5)return null;if(z=K.match(fIW)){var p=Number(z[3]),t=[7,8,10,5,6];z=!(Number(z[1])===1&&p===8)&&t.indexOf(p)>=0}else z=!1;return f||M||z?K:null}; La=function(z,K){for(var f={},M=g.a(Object.keys(pIS)),p=M.next();!p.done;p=M.next()){p=p.value;var t=K?K+p:p;t=z[t+"_webp"]||z[t];g.vt(t)&&(f[pIS[p]]=t)}return f}; EN=function(z){var K={};if(!z||!z.thumbnails)return K;z=z.thumbnails.filter(function(v){return!!v.url}); z.sort(function(v,I){return v.width-I.width||v.height-I.height}); for(var f=g.a(Object.keys(te5)),M=f.next();!M.done;M=f.next()){var p=Number(M.value);M=te5[p];for(var t=g.a(z),B=t.next();!B.done;B=t.next())if(B=B.value,B.width>=p){p=Bbg(B.url);g.vt(p)&&(K[M]=p);break}}(z=z.pop())&&z.width>=1280&&(z=Bbg(z.url),g.vt(z)&&(K["maxresdefault.jpg"]=z));return K}; Bbg=function(z){return z.startsWith("//")?"https:"+z:z}; PG=function(z){return z&&z.baseUrl||""}; HG=function(z){z=g.Iw(z);for(var K=g.a(Object.keys(z)),f=K.next();!f.done;f=K.next()){f=f.value;var M=z[f];z[f]=Array.isArray(M)?M[0]:M}return z}; Nbo=function(z,K){z.botguardData=K.playerAttestationRenderer.botguardData;K=K.playerAttestationRenderer.challenge;K!=null&&(z.d7=K)}; Gcv=function(z,K){K=g.a(K);for(var f=K.next();!f.done;f=K.next()){f=f.value;var M=f.interstitials.map(function(B){var v=g.A(B,vPI);if(v)return{is_yto_interstitial:!0,raw_player_response:v};if(B=g.A(B,IIo))return Object.assign({is_yto_interstitial:!0},Nu(B))}); M=g.a(M);for(var p=M.next();!p.done;p=M.next())switch(p=p.value,f.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":z.interstitials=z.interstitials.concat({time:0,playerVars:p,mJ:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":z.interstitials=z.interstitials.concat({time:0x7ffffffffffff,playerVars:p,mJ:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var t=Number(f.podConfig.timeToInsertAtMillis);z.interstitials=z.interstitials.concat({time:t,playerVars:p, mJ:t===0?5:7})}}}; bUq=function(z,K){if(K=K.find(function(f){return!(!f||!f.tooltipRenderer)}))z.tooltipRenderer=K.tooltipRenderer}; eiW=function(z,K){K.subscribeCommand&&(z.subscribeCommand=K.subscribeCommand);K.unsubscribeCommand&&(z.unsubscribeCommand=K.unsubscribeCommand);K.addToWatchLaterCommand&&(z.addToWatchLaterCommand=K.addToWatchLaterCommand);K.removeFromWatchLaterCommand&&(z.removeFromWatchLaterCommand=K.removeFromWatchLaterCommand);K.getSharePanelCommand&&(z.getSharePanelCommand=K.getSharePanelCommand)}; wIT=function(z,K){K!=null?(z.kR=K,z.f3=!0):(z.kR="",z.f3=!1)}; QJ=function(z,K){this.type=z||"";this.id=K||""}; g.qR=function(z){return new QJ(z.substring(0,2),z.substring(2))}; g.mr=function(z,K){this.pH=z;this.author="";this.HF=null;this.playlistLength=0;this.S=this.sessionData=null;this.D={};this.title="";if(K){this.author=K.author||K.playlist_author||"";this.title=K.playlist_title||"";if(z=K.session_data)this.sessionData=ta(z,"&");var f;this.S=((f=K.thumbnail_ids)==null?void 0:f.split(",")[0])||null;this.D=La(K,"playlist_");this.videoId=K.video_id||void 0;if(f=K.list)switch(K.listType){case "user_uploads":this.playlistId=(new QJ("UU","PLAYER_"+f)).toString();break;default:if(z= K.playlist_length)this.playlistLength=Number(z)||0;this.playlistId=g.qR(f).toString();if(K=K.video)this.videoId=(K[0]||null).video_id||void 0}else K.playlist&&(this.playlistLength=K.playlist.toString().split(",").length)}}; g.l1=function(z,K){this.pH=z;this.wx=this.author="";this.HF=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Ox=this.lengthText="";this.sessionData=null;this.D={};this.title="";if(K){this.ariaLabel=K.aria_label||void 0;this.author=K.author||"";this.wx=K.wx||"";if(z=K.endscreen_autoplay_session_data)this.HF=ta(z,"&");this.p4=K.p4;this.isLivePlayback=K.live_playback==="1";this.isUpcoming=!!K.isUpcoming;if(z=K.length_seconds)this.lengthSeconds=typeof z==="string"?Number(z):z;this.lengthText= K.lengthText||"";this.Ox=K.Ox||"";this.publishedTimeText=K.publishedTimeText||void 0;if(z=K.session_data)this.sessionData=ta(z,"&");this.shortViewCount=K.short_view_count_text||void 0;this.D=La(K);this.title=K.title||"";this.videoId=K.docid||K.video_id||K.videoId||K.id||void 0;this.watchUrl=K.watchUrl||void 0}}; Dvd=function(z){var K,f,M=(K=z.getWatchNextResponse())==null?void 0:(f=K.contents)==null?void 0:f.twoColumnWatchNextResults,p,t,B,v,I;z=(p=z.getWatchNextResponse())==null?void 0:(t=p.playerOverlays)==null?void 0:(B=t.playerOverlayRenderer)==null?void 0:(v=B.endScreen)==null?void 0:(I=v.watchNextEndScreenRenderer)==null?void 0:I.results;if(!z){var G,b;z=M==null?void 0:(G=M.endScreen)==null?void 0:(b=G.endScreen)==null?void 0:b.results}return z}; g.na=function(z){var K,f,M;z=g.A((K=z.getWatchNextResponse())==null?void 0:(f=K.playerOverlays)==null?void 0:(M=f.playerOverlayRenderer)==null?void 0:M.decoratedPlayerBarRenderer,VJ);return g.A(z==null?void 0:z.playerBar,yvS)}; kcg=function(z){this.S=z.playback_progress_0s_url;this.T=z.playback_progress_2s_url;this.Y=z.playback_progress_10s_url}; hia=function(){if(WG===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(K){}a:{try{var z=!!self.localStorage}catch(K){z=!1}if(z&&(z=g.Xi(g.zN()+"::yt-player"))){WG=new ZW(z);break a}WG=void 0}}return WG}; g.JX=function(){var z=hia();if(!z)return{};try{var K=z.get("yt-player-lv");return JSON.parse(K||"{}")}catch(f){return{}}}; g.aI5=function(z){var K=hia();K&&(z=JSON.stringify(z),K.set("yt-player-lv",z))}; g.gA=function(z){return g.JX()[z]||0}; g.i1=function(z,K){var f=g.JX();K!==f[z]&&(K!==0?f[z]=K:delete f[z],g.aI5(f))}; g.dA=function(z){return g.n(function(K){return K.return(g.Zs(Riq(),z))})}; sN=function(z,K,f,M,p,t,B,v){var I,G,b,e,w,D;return g.n(function(y){switch(y.Y){case 1:return I=g.gA(z),I===4?y.return(4):g.l(y,g.fR(),2);case 2:G=y.S;if(!G)throw g.Ql("wiac");if(!v||B===void 0){y.jV(3);break}return g.l(y,SFT(v,B),4);case 4:B=y.S;case 3:return b=f.lastModified||"0",g.l(y,g.dA(G),5);case 5:return e=y.S,g.Sq(y,6),cG++,g.l(y,g.iN(e,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",B1:!0},function(R){if(t!==void 0&&B!==void 0){var S=""+z+"|"+K.id+"|"+b+"|"+String(t).padStart(10, "0");S=g.dg(R.objectStore("media"),B,S)}else S=g.ma.resolve(void 0);var E=ud5(z,K.Zf()),L=ud5(z,!K.Zf()),q={fmts:Lsg(M),format:f||{}};E=g.dg(R.objectStore("index"),q,E);var V=M.downloadedEndTime===-1;q=V?R.objectStore("index").get(L):g.ma.resolve(void 0);var c={fmts:"music",format:{}};R=V&&p&&!K.Zf()?g.dg(R.objectStore("index"),c,L):g.ma.resolve(void 0);return g.ma.all([R,q,S,E]).then(function(O){O=g.a(O);O.next();O=O.next().value;cG--;var x=g.gA(z);if(x!==4&&V&&p||O!==void 0&&g.EPv(O.fmts))x=1,g.i1(z, x);return x})}),8); case 8:return y.return(y.S);case 6:w=g.QI(y);cG--;D=g.gA(z);if(D===4)return y.return(D);g.i1(z,4);throw w;}})}; g.PJp=function(z){var K,f;return g.n(function(M){if(M.Y==1)return g.l(M,g.fR(),2);if(M.Y!=3){K=M.S;if(!K)throw g.Ql("ri");return g.l(M,g.dA(K),3)}f=M.S;return M.return(g.iN(f,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(p){var t=IDBKeyRange.bound(z+"|",z+"~");return p.objectStore("index").getAll(t).then(function(B){return B.map(function(v){return v?v.format:{}})})}))})}; Qxp=function(z,K,f,M,p){var t,B,v;return g.n(function(I){if(I.Y==1)return g.l(I,g.fR(),2);if(I.Y!=3){t=I.S;if(!t)throw g.Ql("rc");return g.l(I,g.dA(t),3)}B=I.S;v=g.iN(B,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(G){var b=""+z+"|"+K+"|"+f+"|"+String(M).padStart(10,"0");return G.objectStore("media").get(b)}); return p?I.return(v.then(function(G){if(G===void 0)throw Error("No data from indexDb");return HUd(p,G)}).catch(function(G){throw new g.UT("Error while reading chunk: "+G.name+", "+G.message); })):I.return(v)})}; g.EPv=function(z){return z?z==="music"?!0:z.includes("dlt=-1")||!z.includes("dlt="):!1}; ud5=function(z,K){return""+z+"|"+(K?"v":"a")}; Lsg=function(z){var K={};return Bg((K.dlt=z.downloadedEndTime.toString(),K.mket=z.maxKnownEndTime.toString(),K.avbr=z.averageByteRate.toString(),K))}; mvI=function(z){var K={},f={};z=g.a(z);for(var M=z.next();!M.done;M=z.next()){var p=M.value,t=p.split("|");p.match(g.qF8)?(M=Number(t.pop()),isNaN(M)?f[p]="?":(t=t.join("|"),(p=K[t])?(t=p[p.length-1],M===t.end+1?t.end=M:p.push({start:M,end:M})):K[t]=[{start:M,end:M}])):f[p]="?"}z=g.a(Object.keys(K));for(M=z.next();!M.done;M=z.next())M=M.value,f[M]=K[M].map(function(B){return B.start+"-"+B.end}).join(","); return f}; AX=function(z){g.Dv.call(this);this.S=null;this.T=new O8;this.S=null;this.W=new Set;this.crossOrigin=z||""}; lIo=function(z,K,f){for(f=j1(z,f);f>=0;){var M=z.levels[f];if(M.isLoaded(Yt(M,K))&&(M=g.Xq(M,K)))return M;f--}return g.Xq(z.levels[0],K)}; nPq=function(z,K,f){f=j1(z,f);for(var M,p;f>=0;f--)if(M=z.levels[f],p=Yt(M,K),!M.isLoaded(p)){M=z;var t=f,B=t+"-"+p;M.W.has(B)||(M.W.add(B),M.T.enqueue(t,{lH:t,f$:p}))}Veu(z)}; Veu=function(z){if(!z.S&&!z.T.isEmpty()){var K=z.T.remove();z.S=WsS(z,K)}}; WsS=function(z,K){var f=document.createElement("img");z.crossOrigin&&(f.crossOrigin=z.crossOrigin);f.src=z.levels[K.lH].Ic(K.f$);f.onload=function(){var M=K.lH,p=K.f$;z.S!==null&&(z.S.onload=null,z.S=null);M=z.levels[M];M.loaded.add(p);Veu(z);var t=M.columns*M.rows;p*=t;M=Math.min(p+t-1,M.t5()-1);p=[p,M];z.publish("l",p[0],p[1])}; return f}; g.xt=function(z,K,f,M){this.level=z;this.J=K;this.loaded=new Set;this.level=z;this.J=K;z=f.split("#");this.width=Math.floor(Number(z[0]));this.height=Math.floor(Number(z[1]));this.frameCount=Math.floor(Number(z[2]));this.columns=Math.floor(Number(z[3]));this.rows=Math.floor(Number(z[4]));this.S=Math.floor(Number(z[5]));this.T=z[6];this.signature=z[7];this.videoLength=M}; Yt=function(z,K){return Math.floor(K/(z.columns*z.rows))}; g.Xq=function(z,K){K>=z.ZH()&&z.iA();var f=Yt(z,K),M=z.columns*z.rows,p=K%M;K=p%z.columns;p=Math.floor(p/z.columns);var t=z.iA()+1-M*f;if(t1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; Jv5=function(z,K,f){return(z=z.levels[K])?z.hS(f):-1}; j1=function(z,K){var f=z.J.get(K);if(f)return f;f=z.levels.length;for(var M=0;M=K)return z.J.set(K,M),M;z.J.set(K,f-1);return f-1}; ON=function(z,K,f,M){f=f.split("#");f=[f[1],f[2],0,f[3],f[4],-1,f[0],""].join("#");g.xt.call(this,z,K,f,0);this.Y=null;this.C=M?2:0}; rA=function(z,K,f,M){Fq.call(this,z,0,void 0,K,!(M===void 0||!M));for(z=0;z50&&(K=XI5.shift())&&zP.delete(K),K=M),M!==K&&z.Hs("ssei","dcpn_"+M+"_"+K+"_"+z.clientPlaybackNonce),K)}; Tt=function(z,K){var f=K.raw_watch_next_response;if(!f){var M=K.watch_next_response;M&&(f=JSON.parse(M))}if(f){z.eV=f;var p=z.eV.playerCueRangeSet;p&&g.K5(z,p);var t=z.eV.playerOverlays;if(t){var B=t.playerOverlayRenderer;if(B){var v=B.autonavToggle;v&&(z.autoplaySwitchButtonRenderer=g.A(v,xvq),z.B("web_player_autonav_use_server_provided_state")&&$3(z)&&(z.autonavState=z.autoplaySwitchButtonRenderer.enabled?2:1));var I=B.videoDetails;if(I){var G=I.embeddedPlayerOverlayVideoDetailsRenderer;var b=I.playerOverlayVideoDetailsRenderer; b&&(b.title&&(K.title=g.Lc(b.title)),b.subtitle&&(K.subtitle=g.Lc(b.subtitle)))}g.Aw(z.pH)&&(z.b3=!!B.addToMenu);Fsg(z,B.shareButton);B.startPosition&&B.endPosition&&(z.progressBarStartPosition=B.startPosition,z.progressBarEndPosition=B.endPosition);var e=B.gatedActionsOverlayRenderer;e&&(z.YO=g.A(e,OUg));var w,D,y,R=g.A((w=z.getWatchNextResponse())==null?void 0:(D=w.playerOverlays)==null?void 0:(y=D.playerOverlayRenderer)==null?void 0:y.infoPanel,rvg);if(R){z.HU=Number(R==null?void 0:R.durationMs)|| NaN;if(R==null?0:R.infoPanelOverviewViewModel)z.Gw=R==null?void 0:R.infoPanelOverviewViewModel;if(R==null?0:R.infoPanelDetailsViewModel)z.Rf=R==null?void 0:R.infoPanelDetailsViewModel}z.showSeekingControls=!!B.showSeekingControls}}var S,E,L=(S=z.getWatchNextResponse())==null?void 0:(E=S.contents)==null?void 0:E.twoColumnWatchNextResults;if(L){var q=L.desktopOverlay&&g.A(L.desktopOverlay,ZUa);q&&(q.suppressShareButton&&(z.showShareButton=!1),q.suppressWatchLaterButton&&(z.b3=!1))}G&&oPI(z,K,G);var V= GC(0,K.autoplay_count),c=z.getWatchNextResponse(),O,x=(O=c.contents)==null?void 0:O.twoColumnWatchNextResults,T,M8,$S,td=(T=c.playerOverlays)==null?void 0:(M8=T.playerOverlayRenderer)==null?void 0:($S=M8.autoplay)==null?void 0:$S.playerOverlayAutoplayRenderer,r=Dvd(z),yI,H5=(yI=c.contents)==null?void 0:yI.singleColumnWatchNextResults;if(H5){var ra;if(((ra=H5.autoplay)==null?0:ra.autoplay)&&!H5.playlist){var Ho=H5.autoplay.autoplay.sets,I8={},q8=new g.l1(z.Z()),P5=null,t2;if(Ho){for(var u=g.a(Ho), N8=u.next();!N8.done;N8=u.next()){var rZ=N8.value.autoplayVideoRenderer;if(rZ&&rZ.compactVideoRenderer){P5=rZ.compactVideoRenderer;break}}if(t2=Ho[0].autoplayVideo){var LL=t2.clickTrackingParams;LL&&(I8.itct=LL);I8.autonav="1";I8.playnext=String(V)}}else I8.feature="related-auto";var VQ=g.A(t2,g.f5);if(P5){q8.videoId=P5.videoId;var wZ=P5.shortBylineText;wZ&&(q8.author=g.Lc(wZ));var jq=P5.title;jq&&(q8.title=g.Lc(jq))}else VQ!=null&&VQ.videoId&&(q8.videoId=VQ.videoId);q8.HF=I8;z.suggestions=[];z.TY= q8}}if(r){for(var i_=[],n1=g.a(r),H=n1.next();!H.done;H=n1.next()){var Q=H.value,m=void 0,W=null;if(Q.endScreenVideoRenderer){var Y=Q.endScreenVideoRenderer,LW=Y.title;W=new g.l1(z.Z());W.videoId=Y.videoId;W.lengthSeconds=Y.lengthInSeconds||0;var KW=Y.publishedTimeText;KW&&(W.publishedTimeText=g.Lc(KW));var hd=Y.shortBylineText;hd&&(W.author=g.Lc(hd));var fW=Y.shortViewCountText;fW&&(W.shortViewCount=g.Lc(fW));if(LW){W.title=g.Lc(LW);var l8=LW.accessibility;if(l8){var To=l8.accessibilityData;To&& To.label&&(W.ariaLabel=To.label)}}var E9=Y.navigationEndpoint;if(E9){m=E9.clickTrackingParams;var EP=g.A(E9,g.f5),gr=g.A(E9,g.Fc);EP?W.p4=EP:gr!=null&&(W.watchUrl=gr.url)}var zz=Y.thumbnailOverlays;if(zz)for(var ZK=g.a(zz),Ke=ZK.next();!Ke.done;Ke=ZK.next()){var EU=Ke.value.thumbnailOverlayTimeStatusRenderer;if(EU)if(EU.style==="LIVE"){W.isLivePlayback=!0;break}else if(EU.style==="UPCOMING"){W.isUpcoming=!0;break}}W.D=EN(Y.thumbnail)}else if(Q.endScreenPlaylistRenderer){var yV=Q.endScreenPlaylistRenderer, i6=yV.navigationEndpoint;if(!i6)continue;var Rz=g.A(i6,g.f5);if(!Rz)continue;var d4=Rz.videoId;W=new g.mr(z.Z());W.playlistId=yV.playlistId;W.playlistLength=Number(yV.videoCount)||0;W.S=d4||null;W.videoId=d4;var Z9=yV.title;Z9&&(W.title=g.Lc(Z9));var ou=yV.shortBylineText;ou&&(W.author=g.Lc(ou));m=i6.clickTrackingParams;W.D=EN(yV.thumbnail)}W&&(m&&(W.sessionData={itct:m}),i_.push(W))}z.suggestions=i_}if(td){z.dP=!!td.preferImmediateRedirect;z.Ph=z.Ph||!!td.webShowNewAutonavCountdown;z.yL=z.yL||!!td.webShowBigThumbnailEndscreen; if(z.Ph||z.yL){var ld=x||null,B9=new g.l1(z.Z());B9.videoId=td.videoId;var $p=td.videoTitle;if($p){B9.title=g.Lc($p);var Nn=$p.accessibility;if(Nn){var gh=Nn.accessibilityData;gh&&gh.label&&(B9.ariaLabel=gh.label)}}var TE=td.byline;TE&&(B9.author=g.Lc(TE));var ko=td.publishedTimeText;ko&&(B9.publishedTimeText=g.Lc(ko));var uh=td.shortViewCountText;uh&&(B9.shortViewCount=g.Lc(uh));var LZ=td.thumbnailOverlays;if(LZ)for(var E3=g.a(LZ),NP=E3.next();!NP.done;NP=E3.next()){var h8=NP.value.thumbnailOverlayTimeStatusRenderer; if(h8)if(h8.style==="LIVE"){B9.isLivePlayback=!0;break}else if(h8.style==="UPCOMING"){B9.isUpcoming=!0;break}else if(h8.style==="DEFAULT"&&h8.text){B9.lengthText=g.Lc(h8.text);var PA=h8.text.accessibility;if(PA){var vR=PA.accessibilityData;vR&&vR.label&&(B9.Ox=vR.label||"")}break}}B9.D=EN(td.background);var HA=td.nextButton;if(HA){var Qr=HA.buttonRenderer;if(Qr){var qh=Qr.navigationEndpoint;if(qh){var m1=g.A(qh,g.f5);m1&&(B9.p4=m1)}}}if(td.topBadges){var lh=td.topBadges[0];if(lh){var Vr=g.A(lh,CJd); Vr&&Vr.style==="BADGE_STYLE_TYPE_PREMIUM"&&(B9.q1V=!0)}}var fq=td.alternativeTitle;fq&&(B9.wx=g.Lc(fq));var i2={autonav:"1",playnext:String(V)};B9.playlistId&&(i2.autoplay="1");if(ld){var Ms,rj,IV,nZ,G9=(Ms=ld.autoplay)==null?void 0:(rj=Ms.autoplay)==null?void 0:(IV=rj.sets)==null?void 0:(nZ=IV[0])==null?void 0:nZ.autoplayVideo;if(G9){var WA=G9.clickTrackingParams;WA&&(i2.itct=WA);var bz=g.A(G9,g.f5);bz&&(B9.bR=bz)}}else if(td){var Jn,gn,ih,dn=(Jn=td.nextButton)==null?void 0:(gn=Jn.buttonRenderer)== null?void 0:(ih=gn.navigationEndpoint)==null?void 0:ih.clickTrackingParams;dn&&(i2.itct=dn)}i2.itct||(i2.feature="related-auto");B9.HF=i2;z.suggestions||(z.suggestions=[]);z.TY=B9}td.countDownSecs!=null&&(z.G4=td.countDownSecs*1E3);td.countDownSecsForFullscreen!=null&&(z.GV=td.countDownSecsForFullscreen>=0?td.countDownSecsForFullscreen*1E3:-1);z.B("web_autonav_color_transition")&&td.watchToWatchTransitionRenderer&&(z.watchToWatchTransitionRenderer=g.A(td.watchToWatchTransitionRenderer,Tb8))}var eX= Dvd(z);if(eX){var En,cA,wl,DE=eX==null?void 0:(En=eX[0])==null?void 0:(cA=En.endScreenVideoRenderer)==null?void 0:(wl=cA.navigationEndpoint)==null?void 0:wl.clickTrackingParams,s3=g.ME(z);DE&&s3&&(s3.sessionData={itct:DE})}z.eV.currentVideoThumbnail&&(z.D=EN(z.eV.currentVideoThumbnail));var pq,An,jl,tT,Yr,Pk=(pq=z.eV)==null?void 0:(An=pq.contents)==null?void 0:(jl=An.twoColumnWatchNextResults)==null?void 0:(tT=jl.results)==null?void 0:(Yr=tT.results)==null?void 0:Yr.contents;if(Pk&&Pk[1]){var Xb, xr,dh,jT,CD=(Xb=Pk[1].videoSecondaryInfoRenderer)==null?void 0:(xr=Xb.owner)==null?void 0:(dh=xr.videoOwnerRenderer)==null?void 0:(jT=dh.thumbnail)==null?void 0:jT.thumbnails;CD&&CD.length&&(z.profilePicture=CD[CD.length-1].url)}var Fb=w0(K),yx,Hk=(yx=z.getWatchNextResponse())==null?void 0:yx.onResponseReceivedEndpoints;if(Hk)for(var Q5=g.a(Hk),k5=Q5.next();!k5.done;k5=Q5.next()){var T7=k5.value;g.A(T7,p5)&&(z.Fu=g.A(T7,p5));var qJ=g.A(T7,UvS),O3=void 0;if((O3=qJ)==null?0:O3.entityKeys)z.UO=qJ.entityKeys|| [],qJ.visibleOnLoadKeys&&(z.visibleOnLoadKeys=qJ.visibleOnLoadKeys)}if(z.B("web_key_moments_markers")){var Ns=g.tf.getState().entities,Rk=g.NA("visibility_override","markersVisibilityOverrideEntity");var Up=R7(Ns,"markersVisibilityOverrideEntity",Rk);z.VE=(Up==null?void 0:Up.videoId)===(z.videoId||Fb)&&(Up==null?0:Up.visibilityOverrideMarkersKey)?Up.visibilityOverrideMarkersKey:z.visibleOnLoadKeys;z.visibleOnLoadKeys=[].concat(g.P(z.VE))}}}; $3=function(z){var K;return((K=z.autoplaySwitchButtonRenderer)==null?void 0:K.enabled)!==void 0}; Bw=function(z){return!!(z.T&&z.T.videoInfos&&z.T.videoInfos.length)}; g.eu=function(z){var K=z.G;z.B("html5_gapless_unlimit_format_selection")&&NE(z)&&(K=!1);var f=!!z.S&&z.S.CI,M=z.pH,p=z.NG(),t=vw(z),B=z.QE,v=K,I=z.isOtf();K=z.Mf();var G=z.oa,b=z.getUserAudio51Preference(),e=Ip(z),w=GP(z),D=new gmS(M);if(M.i8()||M.B("html5_logging_format_selection"))D.Y=!0;D.Px=t;D.QE=B&&M.D;D.Hx=b;g.ZQ("windows nt 5.1")&&!g.z0&&(D.T2=!0);if(t=p)t=g.tX(M)?Pbq(M):!1;t&&(D.Y1=!0);v&&(D.T2=!0,D.ra=!0);I&&!M.B("html5_otf_prefer_vp9")&&(D.T2=!0);M.playerStyle==="picasaweb"&&(I&&(D.T2= !1),D.l_=!1);G&&(D.T2=!0);VO(M.C,nX.CHANNELS)&&(M.B("html5_enable_ac3")&&(D.J=!0),M.B("html5_enable_eac3")&&(D.C=!0),M.B("html5_enable_ac3_gapless")&&(D.eV=!0));M.B("html5_block_8k_hfr")&&(D.b_=!0);D.W=g.uY(M.experiments,"html5_max_selectable_quality_ordinal");D.G=g.uY(M.experiments,"html5_min_selectable_quality_ordinal");VT&&(D.Z2=480);if(f||p)D.l_=!1;D.VE=!1;D.disableAv1=e;f=X7(M,D.S,void 0,D.disableAv1);f>0&&f<2160&&(Tr()||M.B("html5_format_hybridization"))&&(D.S.supportsChangeType=+Tr(),D.zN= f);f>=2160&&(D.nH=!0);T3g()&&!M.B("disable_av1_setting")&&(D.S.serveVp9OverAv1IfHigherRes=0,D.E0=!1);D.Mf=K;D.vx=g.Ux||BK()&&!K?!1:!0;D.D=M.B("html5_format_hybridization");D.SE=M.B("html5_disable_encrypted_vp9_live_non_2k_4k");M.B("disable_cdm_format_fallback")&&w&&(D.TP=!0);bv(z)&&(D.O3=z.B("html5_prefer_language_over_codec"));TM()&&z.playerResponse&&z.playerResponse.playerConfig&&z.playerResponse.playerConfig.webPlayerConfig&&z.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&& (D.J=!0,D.C=!0);z.G&&z.isAd()&&(z.aP&&(D.N=z.aP),z.yM&&(D.T=z.yM));D.Bx=z.isLivePlayback&&z.FS()&&z.pH.B("html5_drm_live_audio_51");D.oa=z.q$;D.nI=!bv(z);return z.BA=D}; Ip=function(z){return z.pH.B("html5_disable_av1")||z.B("html5_gapless_shorts_disable_av1")&&NE(z)?!0:!1}; zBW=function(z){rl("drm_pb_s",void 0,z.N);z.Xc||z.S&&HN(z.S);var K={};z.S&&(K=eG8(z.zB,g.eu(z),z.pH.C,z.S,function(f){return z.publish("ctmp","fmtflt",f)},!0,new Set)); K=new fO(K,z.pH,z.eS,z.useCobaltWidevine?TM()?wH(z):!1:!1,function(f,M){z.Th(f,M)}); g.d(z,K);z.Ri=!1;z.loading=!0;s4W(K,function(f){rl("drm_pb_f",void 0,z.N);for(var M=g.a(f),p=M.next();!p.done;p=M.next())switch(p=p.value,p.flavor){case "fairplay":p.Xc=z.Xc;p.Hf=z.Hf;p.jl=z.jl;break;case "widevine":p.oH=z.oH}z.oi=f;if(z.oi.length>0&&(z.C=z.oi[0],z.pH.i8())){f={};M=g.a(Object.entries(z.C.S));for(p=M.next();!p.done;p=M.next()){var t=g.a(p.value);p=t.next().value;t=t.next().value;var B="unk";(p=p.match(/(.*)codecs="(.*)"/))&&(B=p[2]);f[B]=t}z.Th("drmProbe",f)}z.Ot()})}; Koq=function(z,K){if(K.length===0||DA(z))return null;z.pH.C.T&&(A5=!0);var f=z.UW;var M=z.lengthSeconds,p=z.isLivePlayback,t=z.Ca,B=z.pH,v=RaS(K);if(p||t){B=B.experiments;M=new Pr("",B,!0);M.Y=!t;M.CI=!0;M.isManifestless=!0;M.isLive=!t;M.Ca=t;K=g.a(K);for(p=K.next();!p.done;p=K.next()){var I=p.value;p=qp(I,f);v=se(I);v=lj(v.ZT||I.url||"",v.eI,v.s);var G=v.get("id");G&&G.includes("%7E")&&(M.N=!0);var b=void 0;G=(b=B)==null?void 0:b.sf("html5_max_known_end_time_rebase");b=Number(I.targetDurationSec|| 5);I=Number(I.maxDvrDurationSec||14400);var e=Number(v.get("mindsq")||v.get("min_sq")||"0"),w=Number(v.get("maxdsq")||v.get("max_sq")||"0")||Infinity;M.dh=M.dh||e;M.Tm=M.Tm||w;var D=!Gr(p.mimeType);v&&uj(M,new t5(v,p,{fW:b,Jr:D,cX:I,dh:e,Tm:w,Ce:300,Ca:t,O5:G}))}f=M}else if(v==="FORMAT_STREAM_TYPE_OTF"){M=M===void 0?0:M;t=new Pr("",B.experiments,!1);t.duration=M||0;B=g.a(K);for(M=B.next();!M.done;M=B.next())M=M.value,K=qp(M,f,t.duration),p=se(M),(p=lj(p.ZT||M.url||"",p.eI,p.s))&&(K.streamType==="FORMAT_STREAM_TYPE_OTF"? uj(t,new Br(p,K,"sq/0")):uj(t,new a6(p,K,AL(M.initRange),AL(M.indexRange))));t.isOtf=!0;f=t}else{M=M===void 0?0:M;t=new Pr("",B.experiments,!1);t.duration=M||0;B=g.a(K);for(M=B.next();!M.done;M=B.next())v=M.value,M=qp(v,f,t.duration),K=AL(v.initRange),p=AL(v.indexRange),G=se(v),(v=lj(G.ZT||v.url||"",G.eI,G.s))&&uj(t,new a6(v,M,K,p));f=t}t=z.isLivePlayback&&!z.Ca&&!z.Y1&&!z.isPremiere;z.B("html5_live_head_playable")&&(!y_(z)&&t&&z.Th("missingLiveHeadPlayable",{}),z.pH.Y1==="yt"&&(f.Px=!0));return f}; DA=function(z){return TM()?!wH(z):zC()?!(!z.Xc||!z.B("html5_enable_safari_fairplay")&&IQ()):!1}; wH=function(z){return z.B("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.K5=function(z,K){K=g.a(K);for(var f=K.next();!f.done;f=K.next())if(f=f.value,f.cueRangeSetIdentifier){var M=void 0;z.HP.set(f.cueRangeSetIdentifier,(M=f.playerCueRanges)!=null?M:[])}}; k3=function(z){return!(!z.S||!z.S.isManifestless)}; hf=function(z){return z.O3?z.isLowLatencyLiveStream&&z.S!=null&&J5(z.S)>=5:z.isLowLatencyLiveStream&&z.S!=void 0&&J5(z.S)>=5}; $GT=function(z){return TM()&&wH(z)?!1:DA(z)&&(g.JK(z.pH)?!z.isLivePlayback:z.hlsvp)||!IQ()||z.lZ?!0:!1}; pap=function(z){z.loading=!0;z.tJ=!1;if(fXS(z))g.PJp(z.videoId).then(function(M){Mbq(z,M)}).then(function(){z.Ot()}); else{NI(z.E0)||g.Al(new g.UT("DASH MPD Origin invalid: ",z.E0));var K=z.E0,f=g.uY(z.pH.experiments,"dash_manifest_version")||4;K=g.V8(K,{mpd_version:f});z.isLowLatencyLiveStream&&z.latencyClass!=="NORMAL"||(K=g.V8(K,{pacing:0}));qLu(K,z.pH.experiments,z.isLivePlayback).then(function(M){z.CH()||(ap(z,M,!0),rl("mrc",void 0,z.N),z.Ot())},function(M){z.CH()||(z.loading=!1,z.publish("dataloaderror",new Jq("manifest.net.retryexhausted",{backend:"manifest", rc:M.status},1)))}); rl("mrs",void 0,z.N)}}; Mbq=function(z,K){var f=K.map(function(I){return I.itag}),M; if((M=z.playerResponse)!=null&&M.streamingData){M=[];if(z.B("html5_offline_always_use_local_formats")){f=0;for(var p=g.a(K),t=p.next();!t.done;t=p.next()){t=t.value;var B=Object.assign({},t);B.signatureCipher="";M.push(B);B=g.a(z.playerResponse.streamingData.adaptiveFormats);for(var v=B.next();!v.done;v=B.next())if(v=v.value,t.itag===v.itag&&t.xtags===v.xtags){f+=1;break}}fb&&(b=D.getInfo().audio.numChannels)}b>2&&z.Th("hlschl",{mn:b});var S;((S=z.BA)==null?0:S.Y)&&z.Th("hlsfmtaf",{itags:e.join(".")});var E;if(z.B("html5_enable_vp9_fairplay")&&((E=z.C)==null?0:TO(E)))for(z.Th("drm",{sbdlfbk:1}),b=g.a(z.oi),e=b.next();!e.done;e=b.next())if(e=e.value,Cx(e)){z.C=e;break}L5(z,G)})}return dV()}; IXT=function(z){if(z.isExternallyHostedPodcast&&z.FK){var K=uv(z.FK);if(!K[0])return dV();z.E3H=K[0];return rQq(z.pH,K[0]).then(function(f){L5(z,f)})}return z.aH&&z.Pb?ObT(z.pH,z.isAd(),z.aH).then(function(f){L5(z,f)}):dV()}; b9S=function(z){if(z.isExternallyHostedPodcast)return dV();var K=uv(z.FK,z.d9);if(z.hlsvp){var f=gP8(z.hlsvp,z.clientPlaybackNonce,z.RF);K.push(f)}return F3o(z.pH,z.isAd(),K,G6S(z)).then(function(M){L5(z,M)})}; L5=function(z,K){z.QW=K;z.j5(new SA(g.UZ(z.QW,function(f){return f.getInfo()})))}; G6S=function(z){var K={cpn:z.clientPlaybackNonce,c:z.pH.S.c,cver:z.pH.S.cver};z.Wf&&(K.ptk=z.Wf,K.oid=z.lr,K.ptchn=z.Y7,K.pltype=z.TI,z.dc&&(K.m=z.dc));return K}; g.EM=function(z){return DA(z)&&z.Xc?(z={},z.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",z):z.Y&&z.Y.UW||null}; eBW=function(z){var K=Pw(z);return K&&K.text?g.Lc(K.text):z.paidContentOverlayText}; waS=function(z){var K=Pw(z);return K&&K.durationMs?S8(K.durationMs):z.paidContentOverlayDurationMs}; Pw=function(z){var K,f,M;return z.playerResponse&&z.playerResponse.paidContentOverlay&&z.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.A((K=z.eV)==null?void 0:(f=K.playerOverlays)==null?void 0:(M=f.playerOverlayRenderer)==null?void 0:M.playerDisclosure,DGS)||null}; Hw=function(z){var K="";if(z.vF)return z.vF;z.isLivePlayback&&(K=z.allowLiveDvr?"dvr":z.isPremiere?"lp":z.Y1?"window":"live");z.Ca&&(K="post");return K}; g.Q_=function(z,K){return typeof z.keywords[K]!=="string"?null:z.keywords[K]}; yka=function(z){return!!z.u2||!!z.BR||!!z.I9||!!z.Ck||z.t4}; g.qE=function(z){return!!(z.E0||z.FK||z.aH||z.hlsvp||z.Hr())}; Ca=function(z){if(z.B("html5_onesie")&&z.errorCode)return!1;var K=g.h2(z.l_,"ypc");z.ypcPreview&&(K=!1);return z.bl()&&!z.loading&&(g.qE(z)||g.h2(z.l_,"heartbeat")||K)}; uv=function(z,K){z=vg(z);var f={};if(K){K=g.a(K.split(","));for(var M=K.next();!M.done;M=K.next())(M=M.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(f[M[1]]={width:M[2],height:M[3]})}K=g.a(z);for(M=K.next();!M.done;M=K.next()){M=M.value;var p=f[M.itag];p&&(M.width=p.width,M.height=p.height)}return z}; Fsg=function(z,K){z.showShareButton=!!K;var f,M,p=((f=g.A(K,g.Fd))==null?void 0:f.navigationEndpoint)||((M=g.A(K,g.Fd))==null?void 0:M.command);p&&(z.VB=!!g.A(p,k6u))}; iUW=function(z,K){var f=K.raw_embedded_player_response;if(!f){var M=K.embedded_player_response;M&&(f=JSON.parse(M))}f&&(z.I1=f);if(z.I1){z.embeddedPlayerConfig=z.I1.embeddedPlayerConfig||null;if(f=z.I1.videoFlags)f.playableInEmbed&&(z.allowEmbed=!0),f.isPrivate&&(z.isPrivate=!0),f.userDisplayName&&(K.user_display_name=f.userDisplayName),f.userDisplayImage&&(K.user_display_image=f.userDisplayImage);if(f=z.I1.embedPreview){f=f.thumbnailPreviewRenderer;wIT(z,f.controlBgHtml);if(M=f.defaultThumbnail)z.D= EN(M);z.B("embeds_web_enable_search_button")&&f.searchButton&&(M=g.A(f.searchButton,g.Fd))&&(z.zTE=g.A(M.navigationEndpoint,g.mU));(M=g.A(f==null?void 0:f.videoDetails,hBS))&&oPI(z,K,M);M=g.A(f==null?void 0:f.videoDetails,aXv);z.b3=!!f.addToWatchLaterButton;Fsg(z,f.shareButton);if(M==null?0:M.musicVideoType)z.musicVideoType=M.musicVideoType;var p,t,B,v,I;if(M=g.A((p=z.getEmbeddedPlayerResponse())==null?void 0:(t=p.embedPreview)==null?void 0:(B=t.thumbnailPreviewRenderer)==null?void 0:(v=B.playButton)== null?void 0:(I=v.buttonRenderer)==null?void 0:I.navigationEndpoint,g.f5))UZv(z,M),z.videoId=M.videoId||z.videoId;f.videoDurationSeconds&&(z.lengthSeconds=S8(f.videoDurationSeconds));f.webPlayerActionsPorting&&eiW(z,f.webPlayerActionsPorting);if(p=g.A(f==null?void 0:f.playlist,RBo)){z.LY=!0;t=[];B=Number(p.currentIndex);if(p.contents)for(v=0,I=p.contents.length;v0:z.lW?!1:z.pH.Ix||z.pH.Co||!g.Jw(z.pH)?!0:!1:(z.lW?0:z.Ix)&&g.Jw(z.pH)?!0:!1;z.B("html5_log_detailpage_autoplay")&&sM(z)==="detailpage"&&z.Th("autoplay_info",{autoplay:z.NV,autonav:z.isAutonav,wasDompaused:z.lW,result:K});return K}; g.X6=function(z){return z.oauthToken||z.pH.Yx}; lXa=function(z){if(z.B("html5_stateful_audio_normalization")){var K=1,f=g.uY(z.pH.experiments,"html5_default_ad_gain");f&&z.isAd()&&(K=f);var M,p;f=(p=(M=z.J)==null?void 0:M.audio.J)!=null?p:z.GW;if(f==null||isNaN(f))z=mG5(z);else{M=(0,g.X)();z.N2=2;p=M-z.pH.LW<=z.maxStatefulTimeThresholdSec*1E3;z.applyStatefulNormalization&&p?z.N2=4:p||(z.pH.r8=Infinity,z.pH.LW=NaN);p=(z.N2===4?g.qt(z.pH.r8,z.minimumLoudnessTargetLkfs,z.loudnessTargetLkfs):z.loudnessTargetLkfs)-f;if(z.N2!==4){var t,B,v,I,G=((t=z.playerResponse)== null?void 0:(B=t.playerConfig)==null?void 0:(v=B.audioConfig)==null?void 0:(I=v.loudnessNormalizationConfig)==null?void 0:I.statelessLoudnessAdjustmentGain)||0;p+=G}p=Math.min(p,0);z.preserveStatefulLoudnessTarget&&(z.pH.r8=f+p,z.pH.LW=M);z=Math.min(1,Math.pow(10,p/20))||K}}else z=mG5(z);return z}; mG5=function(z){var K=1,f=g.uY(z.pH.experiments,"html5_default_ad_gain");f&&z.isAd()&&(K=f);if(z.pH.experiments.sf("html5_audio_gain_null_coalescing")){var M,p;f=(p=(M=z.J)==null?void 0:M.audio.T)!=null?p:z.SU;f==0&&z.Th("db0fix",{rldb:z.SU},!0)}else{var t;f=((t=z.J)==null?void 0:t.audio.T)||z.SU}isNaN(f)||(z.N2=1);return Math.min(1,Math.pow(10,-f/20))||K}; vw=function(z){var K=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],f=g.tw(z.pH)==="TVHTML5_SIMPLY"&&z.pH.S.ctheme==="MUSIC";z.XK||!g.O$(z.pH)&&!f||!K.includes(z.musicVideoType)&&!z.isExternallyHostedPodcast||(z.XK=!0);if(K=g.CJ())K=/Starboard\/([0-9]+)/.exec(g.H4()),K=(K?parseInt(K[1],10):NaN)<10;f=z.pH;f=(g.tw(f)==="TVHTML5_CAST"||g.tw(f)==="TVHTML5"&&(f.S.cver.startsWith("6.20130725")||f.S.cver.startsWith("6.20130726")))&&z.pH.S.ctheme==="MUSIC";var M;if(M=!z.XK)f||(f=z.pH,f= g.tw(f)==="TVHTML5"&&f.S.cver.startsWith("7")),M=f;M&&!K&&(K=z.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",f=(z.B("cast_prefer_audio_only_for_atv_and_uploads")||z.B("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&z.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",K||f||z.isExternallyHostedPodcast)&&(z.XK=!0);return z.pH.deviceIsAudioOnly||z.XK&&z.pH.D}; GP=function(z){var K,f,M;return((K=z.playerResponse)==null?void 0:(f=K.playerConfig)==null?void 0:(M=f.compositeVideoConfig)==null?void 0:M.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; g.Vbg=function(z){return z.B("html5_enable_sabr_live_captions")&&z.CI()&&bv(z)||GP(z)}; x3=function(z){var K,f,M;return!!((K=z.playerResponse)==null?0:(f=K.playerConfig)==null?0:(M=f.mediaCommonConfig)==null?0:M.splitScreenEligible)}; F6=function(z){var K;return!((K=z.playerResponse)==null||!K.compositePlayabilityStatus)}; ncI=function(z){return isNaN(z)?0:Math.max((Date.now()-z)/1E3-30,0)}; OM=function(z){return!(!z.nk||!z.pH.D)&&z.Hr()}; rH=function(z){return z.pk&&z.enableServerStitchedDai}; Wog=function(z){return z.Dh&&!z.Fa}; bv=function(z){var K=z.B("html5_enable_sabr_on_drive")&&z.pH.Y1==="gd";if(z.Ls)return z.Dh&&z.Th("fds",{fds:!0},!0),!1;if(z.pH.Y1!=="yt"&&!K)return z.Dh&&z.Th("dsvn",{ns:z.pH.Y1},!0),!1;if(z.cotn||!z.S||z.S.isOtf&&!z.B("html5_enable_sabr_otf_in_client")||z.B("html5_disable_sabr_for_hls")&&z.T&&!z.T.S||z.u6&&!z.B("html5_enable_sabr_csdai"))return!1;if(z.B("html5_use_sabr_requests_for_debugging"))return!0;z.Dh&&z.Th("esfw",{usbc:z.Dh,hsu:!!z.Fa},!0);if(z.Dh&&z.Fa)return!0;if(z.B("html5_remove_client_sabr_determination"))return!1; var f=!z.S.CI&&!z.FS();K=f&&BZ&&z.B("html5_enable_sabr_vod_streaming_xhr");f=f&&!BZ&&z.B("html5_enable_sabr_vod_non_streaming_xhr");var M=ZA(z),p=z.B("html5_enable_sabr_drm_vod_streaming_xhr")&&BZ&&z.FS()&&!z.S.CI&&(z.drmProduct==="1"?!1:!0);(K=K||f||M||p)&&!z.Fa&&z.Th("sabr",{loc:"m"},!0);return K&&!!z.Fa}; ZA=function(z){var K;if(!(K=BZ&&z.CI()&&z.FS()&&(z.drmProduct==="1"?!1:!0)&&z.B("html5_sabr_live_drm_streaming_xhr"))){K=z.CI()&&!z.FS()&&BZ;var f=z.CI()&&z.latencyClass!=="ULTRALOW"&&!z.isLowLatencyLiveStream&&z.B("html5_sabr_live_normal_latency_streaming_xhr"),M=z.isLowLatencyLiveStream&&z.B("html5_sabr_live_low_latency_streaming_xhr"),p=z.latencyClass==="ULTRALOW"&&z.B("html5_sabr_live_ultra_low_latency_streaming_xhr");K=K&&(f||M||p)}f=K;K=z.enableServerStitchedDai&&f&&z.B("html5_enable_sabr_ssdai_streaming_xhr"); f=!z.enableServerStitchedDai&&f;M=z.CI()&&!BZ&&z.B("html5_enable_sabr_live_non_streaming_xhr");z=BZ&&(z.Fr()||x3(z)&&z.B("html5_enable_sabr_for_lifa_eligible_streams"));return K||f||M||z}; fXS=function(z){var K;if(K=!!z.cotn)K=z.videoId,K=!!K&&g.gA(K)===1;return K&&!z.nk}; g.op=function(z){if(!z.S||!z.Y||!z.J)return!1;var K=z.S.S,f=!!K[z.Y.id]&&iH(K[z.Y.id].eE.S);K=!!K[z.J.id]&&iH(K[z.J.id].eE.S);return(z.Y.itag==="0"||f)&&K}; C5=function(z){return z.mw?["OK","LIVE_STREAM_OFFLINE"].includes(z.mw.status):!0}; Slp=function(z){return(z=z.t0)&&z.showError?z.showError:!1}; TP=function(z,K){return z.B(K)?!0:(z.fflags||"").includes(K+"=true")}; Jkv=function(z){return z.B("html5_heartbeat_iff_heartbeat_params_filled")}; YFq=function(z,K){K.inlineMetricEnabled&&(z.inlineMetricEnabled=!0);K.playback_progress_0s_url&&(z.Ck=new kcg(K));if(K=K.video_masthead_ad_quartile_urls)z.BR=K.quartile_0_url,z.HG=K.quartile_25_url,z.Li=K.quartile_50_url,z.wD=K.quartile_75_url,z.j9=K.quartile_100_url,z.I9=K.quartile_0_urls,z.RC=K.quartile_25_urls,z.Ni=K.quartile_50_urls,z.yF=K.quartile_75_urls,z.D$=K.quartile_100_urls}; jxS=function(z){var K={};z=g.a(z);for(var f=z.next();!f.done;f=z.next()){f=f.value;var M=f.split("=");M.length===2?K[M[0]]=M[1]:K[f]=!0}return K}; cvg=function(z){if(z){if(av5(z))return z;z=Reg(z);if(av5(z,!0))return z}return""}; g.gcW=function(z){return z.captionsLanguagePreference||z.pH.captionsLanguagePreference||g.Q_(z,"yt:cc_default_lang")||z.pH.Ph}; UM=function(z){return!(!z.isLivePlayback||!z.hasProgressBarBoundaries())}; g.ME=function(z){var K;return z.TY||((K=z.suggestions)==null?void 0:K[0])||null}; g.zG=function(z){return z.f3&&(z.B("embeds_enable_pfp_always_unbranded")||z.pH.A1)}; g.Kq=function(z){var K,f;return!!((K=z.embeddedPlayerConfig)==null?0:(f=K.embeddedPlayerFlags)==null?0:f.enableMusicUx)}; i98=function(z){return z.G||z.B("web_player_media_session_infinity")&&z.isLivePlayback}; $O=function(z){return z.pH.J&&z.isPrivate}; g.vD=function(z){var K=z.Z(),f=g.BD(K),M=K.E0;(K.B("embeds_web_enable_iframe_api_send_full_embed_url")||K.B("embeds_web_enable_rcat_validation_in_havs")||K.B("embeds_enable_autoplay_and_visibility_signals"))&&g.Aw(K)&&(M&&(f.thirdParty=Object.assign({},f.thirdParty,{embedUrl:M})),$Ip(f,z));if(M=z.vx)f.clickTracking={clickTrackingParams:M};else if(K.B("html5_embeds_fix_itct")&&g.Aw(z.Z())&&g.zM("EVENT_ID"))f.clickTracking={clickTrackingParams:g.zM("EVENT_ID")};else if(K.B("html5_log_missing_itct")){var p; M=new g.UT("Missing ITCT in InnerTubeContext",{isAd:z.isAd(),bGa:(p=K.getWebPlayerContextConfig())==null?void 0:p.contextId});g.sm(M)}p=f.client||{};M="EMBED";var t=sM(z);t==="leanback"?M="WATCH":K.B("gvi_channel_client_screen")&&t==="profilepage"?M="CHANNEL":z.oa?M="LIVE_MONITOR":t==="detailpage"?M="WATCH_FULL_SCREEN":t==="adunit"?M="ADUNIT":t==="sponsorshipsoffer"&&(M="UNKNOWN");p.clientScreen=M;if(K=z.kidsAppInfo)p.kidsAppInfo=JSON.parse(K);(M=z.WU)&&!K&&(p.kidsAppInfo={contentSettings:{ageUpMode:dGW[M]}}); if(K=z.S7)p.unpluggedAppInfo={enableFilterMode:!0};(M=z.unpluggedFilterModeType)&&!K&&(p.unpluggedAppInfo={filterModeType:ckI[M]});if(K=z.ES)p.unpluggedLocationInfo=K;f.client=p;p=f.request||{};z.Yx&&(p.isPrefetch=!0);if(K=z.mdxEnvironment)p.mdxEnvironment=K;if(K=z.mdxControlMode)p.mdxControlMode=sdd[K];f.request=p;p=f.user||{};if(K=z.Hx)p.credentialTransferTokens=[{token:K,scope:"VIDEO"}];if(K=z.D3)p.delegatePurchases={oauthToken:K},p.kidsParent={oauthToken:K};f.user=p;if(p=z.contextParams)f.activePlayers= [{playerContextParams:p}];if(z=z.clientScreenNonce)f.clientScreenNonce=z;return f}; g.BD=function(z){var K=g.tE(),f=K.client||{};if(z.forcedExperiments){var M=z.forcedExperiments.split(","),p=[];M=g.a(M);for(var t=M.next();!t.done;t=M.next())p.push(Number(t.value));f.experimentIds=p}if(p=z.homeGroupInfo)f.homeGroupInfo=JSON.parse(p);if(p=z.getPlayerType())f.playerType=p;if(p=z.S.ctheme)f.theme=p;if(p=z.livingRoomAppMode)f.tvAppInfo=Object.assign({},f.tvAppInfo,{livingRoomAppMode:p});p=z.deviceYear;z.B("html5_propagate_device_year")&&p&&(f.tvAppInfo=Object.assign({},f.tvAppInfo,{deviceYear:p})); if(p=z.livingRoomPoTokenId)f.tvAppInfo=Object.assign({},f.tvAppInfo,{livingRoomPoTokenId:p});K.client=f;f=K.user||{};z.enableSafetyMode&&(f=Object.assign({},f,{enableSafetyMode:!0}));z.pageId&&(f=Object.assign({},f,{onBehalfOfUser:z.pageId}));K.user=f;f=z.E0;z.B("embeds_web_enable_iframe_api_send_full_embed_url")||z.B("embeds_web_enable_rcat_validation_in_havs")||z.B("embeds_enable_autoplay_and_visibility_signals")||!f||(K.thirdParty={embedUrl:f});return K}; Fo8=function(z,K,f){var M=z.videoId,p=g.vD(z),t=z.Z(),B={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(nv()),referer:document.location.toString(),signatureTimestamp:20237};g.OT();z.isAutonav&&(B.autonav=!0);g.r0(0,141)&&(B.autonavState=g.r0(0,140)?"STATE_OFF":"STATE_ON");B.autoCaptionsDefaultOn=g.r0(0,66);qlg(z)&&(B.autoplay=!0);t.D&&z.cycToken&&(B.cycToken=z.cycToken);t.enablePrivacyFilter&&(B.enablePrivacyFilter=!0);z.isFling&&(B.fling=!0);var v=z.forceAdsUrl;if(v){var I={},G=[];v= v.split(",");v=g.a(v);for(var b=v.next();!b.done;b=v.next()){b=b.value;var e=b.split("|");e.length!==3||b.includes("=")||(e[0]="breaktype="+e[0],e[1]="offset="+e[1],e[2]="url="+e[2]);b={adtype:"video_ad"};e=g.a(e);for(var w=e.next();!w.done;w=e.next()){var D=g.a(w.value.split("="));w=D.next().value;D=p5u(D);b[w]=D.join("=")}e=b.url;w=b.presetad;D=b.viralresponseurl;var y=Number(b.campaignid);if(b.adtype==="in_display_ad")e&&(I.url=e),w&&(I.presetAd=w),D&&(I.viralAdResponseUrl=D),y&&(I.viralCampaignId= String(y));else if(b.adtype==="video_ad"){var R={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(b.offset)||0)}};if(b=Akp[b.breaktype])R.breakType=b;e&&(R.url=e);w&&(R.presetAd=w);D&&(R.viralAdResponseUrl=D);y&&(R.viralCampaignId=String(y));G.push(R)}}B.forceAdParameters={videoAds:G,inDisplayAd:I}}z.isInlinePlaybackNoAd&&(B.isInlinePlaybackNoAd=!0);z.isLivingRoomDeeplink&&(B.isLivingRoomDeeplink=!0);I=z.KQ;if(I!=null){I={startWalltime:String(I)};if(G=z.hf)I.manifestDuration=String(G||14400); B.liveContext=I}if(z.mutedAutoplay){B.mutedAutoplay=!0;I=t.getWebPlayerContextConfig();var S,E;(I==null?0:(S=I.embedsHostFlags)==null?0:S.allowMutedAutoplayDurationMode)&&(I==null?0:(E=I.embedsHostFlags)==null?0:E.allowMutedAutoplayDurationMode.includes(jd8[z.mutedAutoplayDurationMode]))&&(B.mutedAutoplayDurationMode=jd8[z.mutedAutoplayDurationMode])}if(z.lW?0:z.Ix)B.splay=!0;S=z.vnd;S===5&&(B.vnd=S);S={};if(E=z.isMdxPlayback)S.triggeredByMdx=E;if(E=z.M$)S.skippableAdsSupported=E.split(",").includes("ska"); if(G=z.O8){E=z.jK;I=[];G=g.a(pfv(G));for(v=G.next();!v.done;v=G.next()){v=v.value;b=v.platform;v={applicationState:v.WZ?"INACTIVE":"ACTIVE",clientFormFactor:Ylu[b]||"UNKNOWN_FORM_FACTOR",clientName:BII[v.NI]||"UNKNOWN_INTERFACE",clientVersion:v.deviceVersion||"",platform:XaS[b]||"UNKNOWN_PLATFORM"};b={};if(E){e=void 0;try{e=JSON.parse(E)}catch(q){g.Al(q)}e&&(b={params:[{key:"ms",value:e.ms}]},e.advertising_id&&(b.advertisingId=e.advertising_id),e.limit_ad_tracking!==void 0&&e.limit_ad_tracking!== null&&(b.limitAdTracking=e.limit_ad_tracking),v.osName=e.os_name,v.userAgent=e.user_agent,v.windowHeightPoints=e.window_height_points,v.windowWidthPoints=e.window_width_points)}I.push({adSignalsInfo:b,remoteClient:v})}S.remoteContexts=I}E=z.sourceContainerPlaylistId;I=z.serializedMdxMetadata;if(E||I)G={},E&&(G.mdxPlaybackContainerInfo={sourceContainerPlaylistId:E}),I&&(G.serializedMdxMetadata=I),S.mdxPlaybackSourceContext=G;B.mdxContext=S;S=K.width;S>0&&(B.playerWidthPixels=Math.round(S));if(K=K.height)B.playerHeightPixels= Math.round(K);f!==0&&(B.vis=f);if(f=t.widgetReferrer)B.widgetReferrer=f.substring(0,128);g.Jw(t)&&B&&(B.ancestorOrigins=t.ancestorOrigins);z.defaultActiveSourceVideoId&&(B.compositeVideoContext={defaultActiveSourceVideoId:z.defaultActiveSourceVideoId});if(t=t.getWebPlayerContextConfig())B.encryptedHostFlags=t.encryptedHostFlags;M={videoId:M,context:p,playbackContext:{contentPlaybackContext:B}};if(z.SE)if(z.Z().B("html5_server_controlled_resume_time_refactor")){var L;M.playbackContext.reloadPlaybackContext= {reloadPlaybackParams:(L=z.SE)==null?void 0:L.reloadPlaybackParams}}else M.playbackContext.reloadPlaybackContext={reloadPlaybackParams:z.SE};z.contentCheckOk&&(M.contentCheckOk=!0);if(L=z.clientPlaybackNonce)M.cpn=L;if(L=z.playerParams)M.params=L;if(L=z.playlistId)M.playlistId=L;z.racyCheckOk&&(M.racyCheckOk=!0);L=z.Z();if(p=L.embedConfig)M.serializedThirdPartyEmbedConfig=p;M.captionParams={};p=g.r0(g.OT(),65);z.deviceCaptionsOn!=null?M.captionParams.deviceCaptionsOn=z.deviceCaptionsOn:g.$t(L)&&(M.captionParams.deviceCaptionsOn= p!=null?!p:!1);z.L2&&(M.captionParams.deviceCaptionsLangPref=z.L2);z.Yk.length?M.captionParams.viewerSelectedCaptionLangs=z.Yk:g.$t(L)&&(p=g.zF(),p==null?0:p.length)&&(M.captionParams.viewerSelectedCaptionLangs=p);p=z.fetchType==="onesie"&&z.B("html5_onesie_attach_po_token");B=z.fetchType!=="onesie"&&z.B("html5_non_onesie_attach_po_token");if(p||B)p=z.Z(),p.lW&&(M.serviceIntegrityDimensions={},M.serviceIntegrityDimensions.poToken=p.lW);L.B("fetch_att_independently")&&(M.attestationRequest={omitBotguardData:!0}); M.playbackContext||(M.playbackContext={});M.playbackContext.devicePlaybackCapabilities=xGI(z);M.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&z.Th("noVp9",{});return M}; xGI=function(z){var K=!(z==null?0:z.Mf())&&(z==null?void 0:z.CI())&&BK(),f;if(!(f=z==null)){f=g.eu(z);z=z.Z().C;var M=b1("243");f=!(M&&PN(f,M,z,!0)===!0)}return{supportsVp9Encoding:!(f||K),supportXhr:BZ}}; rkI=function(z,K){var f,M,p;return g.n(function(t){if(t.Y==1)return f={context:g.BD(z.Z()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:z.videoId,cpn:z.clientPlaybackNonce}}]},M=g.aV(O9I),g.l(t,g.$H(K,f,M),2);p=t.S;return t.return(p)})}; Z9S=function(z,K,f){var M=g.uY(K.experiments,"bg_vm_reinit_threshold");(!F9||(0,g.X)()-F9>M)&&rkI(z,f).then(function(p){p&&(p=p.botguardData)&&g.r8(p,K)},function(p){z.CH()||(p=iB(p),z.Th("attf",p.details))})}; IN=function(z,K){g.J.call(this);this.app=z;this.state=K}; bD=function(z,K,f){z.state.S.hasOwnProperty(K)||GG(z,K,f);z.state.G[K]=function(){return f.apply(z,g.i8.apply(0,arguments))}; z.state.W.add(K)}; ez=function(z,K,f){z.state.S.hasOwnProperty(K)||GG(z,K,f);z.app.Z().D&&(z.state.D[K]=function(){return f.apply(z,g.i8.apply(0,arguments))},z.state.W.add(K))}; GG=function(z,K,f){z.state.S[K]=function(){return f.apply(z,g.i8.apply(0,arguments))}}; g.wq=function(z,K,f){return z.state.S[K].apply(z.state.S,g.P(f))}; Do=function(){g.Ws.call(this);this.C=new Map}; yp=function(){g.J.apply(this,arguments);this.element=null;this.W=new Set;this.G={};this.D={};this.S={};this.N=new Set;this.T=new Do;this.Y=new Do;this.J=new Do;this.C=new Do}; ocq=function(z,K,f){typeof z==="string"&&(z={mediaContentUrl:z,startSeconds:K,suggestedQuality:f});a:{if((K=z.mediaContentUrl)&&(K=/\/([ve]|embed)\/([^#?]+)/.exec(K))&&K[2]){K=K[2];break a}K=null}z.videoId=K;return kO(z)}; kO=function(z,K,f){if(typeof z==="string")return{videoId:z,startSeconds:K,suggestedQuality:f};K={};f=g.a(Ck8);for(var M=f.next();!M.done;M=f.next())M=M.value,z[M]&&(K[M]=z[M]);return K}; TUq=function(z,K,f,M){if(g.$f(z)&&!Array.isArray(z)){K="playlist list listType index startSeconds suggestedQuality".split(" ");f={};for(M=0;M32&&M.push("hfr");K.isHdr()&&M.push("hdr");K.primaries==="bt2020"&&M.push("wcg");f.video_quality_features=M}}if(z=z.getPlaylistId())f.list=z;return f}; uD=function(){hT.apply(this,arguments)}; Lq=function(z,K){var f={};if(z.app.Z().l_){z=g.a($fd);for(var M=z.next();!M.done;M=z.next())M=M.value,K.hasOwnProperty(M)&&(f[M]=K[M]);if(K=f.qoe_cat)z="",typeof K==="string"&&K.length>0&&(z=K.split(",").filter(function(p){return fwI.includes(p)}).join(",")),f.qoe_cat=z; MRW(f)}else for(z=g.a(pl8),M=z.next();!M.done;M=z.next())M=M.value,K.hasOwnProperty(M)&&(f[M]=K[M]);return f}; MRW=function(z){var K=z.raw_player_response;if(!K){var f=z.player_response;f&&(K=JSON.parse(f))}delete z.player_response;delete z.raw_player_response;if(K){z.raw_player_response={streamingData:K.streamingData,playerConfig:K.playerConfig};var M;if((M=K.playbackTracking)==null?0:M.qoeUrl)z.raw_player_response=Object.assign({},z.raw_player_response,{playbackTracking:{qoeUrl:K.playbackTracking.qoeUrl}});var p;if((p=K.videoDetails)==null?0:p.videoId)z.raw_player_response=Object.assign({},z.raw_player_response, {videoDetails:{videoId:K.videoDetails.videoId}})}}; Eh=function(z,K,f){var M=z.app.ll(f);if(!M)return 0;z=M-z.app.getCurrentTime(f);return K-z}; B88=function(z){var K=K===void 0?5:K;return z?tRo[z]||K:K}; g.PD=function(){uD.apply(this,arguments)}; N85=function(z){GG(z,"getInternalApiInterface",z.getInternalApiInterface);GG(z,"addEventListener",z.Jh);GG(z,"removeEventListener",z.hTe);GG(z,"cueVideoByPlayerVars",z.wF);GG(z,"loadVideoByPlayerVars",z.yd);GG(z,"preloadVideoByPlayerVars",z.o8_);GG(z,"getAdState",z.getAdState);GG(z,"sendAbandonmentPing",z.sendAbandonmentPing);GG(z,"setLoopRange",z.setLoopRange);GG(z,"getLoopRange",z.getLoopRange);GG(z,"setAutonavState",z.setAutonavState);GG(z,"seekTo",z.Vtc);GG(z,"seekBy",z.O3d);GG(z,"seekToLiveHead", z.seekToLiveHead);GG(z,"requestSeekToWallTimeSeconds",z.requestSeekToWallTimeSeconds);GG(z,"seekToStreamTime",z.seekToStreamTime);GG(z,"startSeekCsiAction",z.startSeekCsiAction);GG(z,"getStreamTimeOffset",z.getStreamTimeOffset);GG(z,"getVideoData",z.WI);GG(z,"setInlinePreview",z.setInlinePreview);GG(z,"getAppState",z.getAppState);GG(z,"updateLastActiveTime",z.updateLastActiveTime);GG(z,"setBlackout",z.setBlackout);GG(z,"setUserEngagement",z.setUserEngagement);GG(z,"updateSubtitlesUserSettings",z.updateSubtitlesUserSettings); GG(z,"getPresentingPlayerType",z.FV);GG(z,"canPlayType",z.canPlayType);GG(z,"updatePlaylist",z.updatePlaylist);GG(z,"updateVideoData",z.updateVideoData);GG(z,"updateEnvironmentData",z.updateEnvironmentData);GG(z,"sendVideoStatsEngageEvent",z.sXf);GG(z,"productsInVideoVisibilityUpdated",z.productsInVideoVisibilityUpdated);GG(z,"setSafetyMode",z.setSafetyMode);GG(z,"isAtLiveHead",function(K){return z.isAtLiveHead(void 0,K)}); GG(z,"getVideoAspectRatio",z.getVideoAspectRatio);GG(z,"getPreferredQuality",z.getPreferredQuality);GG(z,"getPlaybackQualityLabel",z.getPlaybackQualityLabel);GG(z,"setPlaybackQualityRange",z.afH);GG(z,"onAdUxClicked",z.onAdUxClicked);GG(z,"getFeedbackProductData",z.getFeedbackProductData);GG(z,"getStoryboardFrame",z.getStoryboardFrame);GG(z,"getStoryboardFrameIndex",z.getStoryboardFrameIndex);GG(z,"getStoryboardLevel",z.getStoryboardLevel);GG(z,"getNumberOfStoryboardLevels",z.getNumberOfStoryboardLevels); GG(z,"getCaptionWindowContainerId",z.getCaptionWindowContainerId);GG(z,"getAvailableQualityLabels",z.getAvailableQualityLabels);GG(z,"addCueRange",z.addCueRange);GG(z,"addUtcCueRange",z.addUtcCueRange);GG(z,"showAirplayPicker",z.showAirplayPicker);GG(z,"dispatchReduxAction",z.dispatchReduxAction);GG(z,"getPlayerResponse",z.pQ);GG(z,"getWatchNextResponse",z.BI);GG(z,"getHeartbeatResponse",z.TX);GG(z,"getCurrentTime",z.oW);GG(z,"getDuration",z.jP);GG(z,"getPlayerState",z.getPlayerState);GG(z,"getPlayerStateObject", z.dM);GG(z,"getVideoLoadedFraction",z.getVideoLoadedFraction);GG(z,"getProgressState",z.getProgressState);GG(z,"getVolume",z.getVolume);GG(z,"setVolume",z.c_);GG(z,"isMuted",z.isMuted);GG(z,"mute",z.BL);GG(z,"unMute",z.LB);GG(z,"loadModule",z.loadModule);GG(z,"unloadModule",z.unloadModule);GG(z,"getOption",z.Gs);GG(z,"getOptions",z.getOptions);GG(z,"setOption",z.setOption);GG(z,"loadVideoById",z.zt);GG(z,"loadVideoByUrl",z.n$);GG(z,"playVideo",z.bX);GG(z,"loadPlaylist",z.loadPlaylist);GG(z,"nextVideo", z.nextVideo);GG(z,"previousVideo",z.previousVideo);GG(z,"playVideoAt",z.playVideoAt);GG(z,"getDebugText",z.getDebugText);GG(z,"getWebPlayerContextConfig",z.getWebPlayerContextConfig);GG(z,"notifyShortsAdSwipeEvent",z.notifyShortsAdSwipeEvent);GG(z,"getVideoContentRect",z.getVideoContentRect);GG(z,"setSqueezeback",z.setSqueezeback);GG(z,"toggleSubtitlesOn",z.toggleSubtitlesOn);GG(z,"isSubtitlesOn",z.isSubtitlesOn);GG(z,"reportPlaybackIssue",z.reportPlaybackIssue);GG(z,"setAutonav",z.setAutonav);GG(z, "isNotServable",z.isNotServable);GG(z,"channelSubscribed",z.channelSubscribed);GG(z,"channelUnsubscribed",z.channelUnsubscribed);GG(z,"togglePictureInPicture",z.togglePictureInPicture);GG(z,"supportsGaplessAudio",z.supportsGaplessAudio);GG(z,"supportsGaplessShorts",z.supportsGaplessShorts);GG(z,"enqueueVideoByPlayerVars",function(K){return void z.enqueueVideoByPlayerVars(K)}); GG(z,"clearQueue",z.clearQueue);GG(z,"getAudioTrack",z.Lp);GG(z,"setAudioTrack",z.LVc);GG(z,"getAvailableAudioTracks",z.wR);GG(z,"getMaxPlaybackQuality",z.getMaxPlaybackQuality);GG(z,"getUserPlaybackQualityPreference",z.getUserPlaybackQualityPreference);GG(z,"getSubtitlesUserSettings",z.getSubtitlesUserSettings);GG(z,"resetSubtitlesUserSettings",z.resetSubtitlesUserSettings);GG(z,"setMinimized",z.setMinimized);GG(z,"setOverlayVisibility",z.setOverlayVisibility);GG(z,"confirmYpcRental",z.confirmYpcRental); GG(z,"queueNextVideo",z.queueNextVideo);GG(z,"handleExternalCall",z.handleExternalCall);GG(z,"logApiCall",z.logApiCall);GG(z,"isExternalMethodAvailable",z.isExternalMethodAvailable);GG(z,"setScreenLayer",z.setScreenLayer);GG(z,"getCurrentPlaylistSequence",z.getCurrentPlaylistSequence);GG(z,"getPlaylistSequenceForTime",z.getPlaylistSequenceForTime);GG(z,"shouldSendVisibilityState",z.shouldSendVisibilityState);GG(z,"syncVolume",z.syncVolume);GG(z,"highlightSettingsMenuItem",z.highlightSettingsMenuItem); GG(z,"openSettingsMenuItem",z.openSettingsMenuItem);GG(z,"getEmbeddedPlayerResponse",z.getEmbeddedPlayerResponse);GG(z,"getVisibilityState",z.getVisibilityState);GG(z,"isMutedByMutedAutoplay",z.isMutedByMutedAutoplay);GG(z,"isMutedByEmbedsMutedAutoplay",z.isMutedByEmbedsMutedAutoplay);GG(z,"setGlobalCrop",z.setGlobalCrop);GG(z,"setInternalSize",z.setInternalSize);GG(z,"setFauxFullscreen",z.setFauxFullscreen);GG(z,"setAppFullscreen",z.setAppFullscreen)}; Qp=function(z,K,f){z=g.HD(z.XL(),K);return f?(f.addOnDisposeCallback(z),null):z}; g.qs=function(z,K,f){return z.app.Z().C3?K:g.Pt("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:K,SHORTCUT:f})}; v$g=function(z){z.XL().element.setAttribute("aria-live","polite")}; g.m8=function(z,K){g.PD.call(this,z,K);N85(this);ez(this,"addEventListener",this.zo);ez(this,"removeEventListener",this.UTf);ez(this,"cueVideoByPlayerVars",this.Rh);ez(this,"loadVideoByPlayerVars",this.aO);ez(this,"preloadVideoByPlayerVars",this.SSc);ez(this,"loadVideoById",this.zt);ez(this,"loadVideoByUrl",this.n$);ez(this,"playVideo",this.bX);ez(this,"loadPlaylist",this.loadPlaylist);ez(this,"nextVideo",this.nextVideo);ez(this,"previousVideo",this.previousVideo);ez(this,"playVideoAt",this.playVideoAt); ez(this,"getVideoData",this.Qj);ez(this,"seekBy",this.QXe);ez(this,"seekTo",this.kwf);ez(this,"showControls",this.showControls);ez(this,"hideControls",this.hideControls);ez(this,"cancelPlayback",this.cancelPlayback);ez(this,"getProgressState",this.getProgressState);ez(this,"isInline",this.isInline);ez(this,"setInline",this.setInline);ez(this,"setLoopVideo",this.setLoopVideo);ez(this,"getLoopVideo",this.getLoopVideo);ez(this,"getVideoContentRect",this.getVideoContentRect);ez(this,"getVideoStats",this.Il); ez(this,"getCurrentTime",this.AN);ez(this,"getDuration",this.jP);ez(this,"getPlayerState",this.HI);ez(this,"getVideoLoadedFraction",this.mQ);ez(this,"mute",this.BL);ez(this,"unMute",this.LB);ez(this,"setVolume",this.c_);ez(this,"loadModule",this.loadModule);ez(this,"unloadModule",this.unloadModule);ez(this,"getOption",this.Gs);ez(this,"getOptions",this.getOptions);ez(this,"setOption",this.setOption);ez(this,"addCueRange",this.addCueRange);ez(this,"getDebugText",this.getDebugText);ez(this,"getStoryboardFormat", this.getStoryboardFormat);ez(this,"toggleFullscreen",this.toggleFullscreen);ez(this,"isFullscreen",this.isFullscreen);ez(this,"getPlayerSize",this.getPlayerSize);ez(this,"toggleSubtitles",this.toggleSubtitles);ez(this,"setCenterCrop",this.setCenterCrop);ez(this,"setFauxFullscreen",this.setFauxFullscreen);ez(this,"setSizeStyle",this.setSizeStyle);ez(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);ez(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);z1W(this)}; g.lD=function(z){z=z.pI();var K=z.yR.get("endscreen");return K&&K.F7()?!0:z.z3()}; g.Vp=function(z,K){z.getPresentingPlayerType()===3?z.publish("mdxautoplaycancel"):z.LH("onAutonavCancelled",K)}; g.WD=function(z){var K=nq(z.pI());return z.app.d2&&!z.isFullscreen()||z.getPresentingPlayerType()===3&&K&&K.WC()&&K.S4()||!!z.getPlaylist()}; g.JT=function(z,K){g.wq(z,"addEmbedsConversionTrackingParams",[K])}; g.iD=function(z){return(z=g.gq(z.pI()))?z.zW():{}}; g.Iw8=function(z){z=(z=z.getVideoData())&&z.Y;return!!z&&!(!z.audio||!z.video)&&z.mimeType!=="application/x-mpegURL"}; g.dq=function(z,K,f){z=z.wE().element;var M=Wo(z.children,function(p){p=Number(p.getAttribute("data-layer"));return f-p||1}); M<0&&(M=-(M+1));M0(z,K,M);K.setAttribute("data-layer",String(f))}; g.cD=function(z){var K=z.Z();if(!K.t9)return!1;var f=z.getVideoData();if(!f||z.getPresentingPlayerType()===3)return!1;var M=(!f.isLiveDefaultBroadcast||K.B("allow_poltergust_autoplay"))&&!UM(f);M=f.isLivePlayback&&(!K.B("allow_live_autoplay")||!M);var p=f.isLivePlayback&&K.B("allow_live_autoplay_on_mweb");z=z.getPlaylist();z=!!z&&z.WC();var t=f.eV&&f.eV.playerOverlays||null;t=!!(t&&t.playerOverlayRenderer&&t.playerOverlayRenderer.autoplay);t=f.f3&&t;return!f.ypcPreview&&(!M||p)&&!g.h2(f.l_,"ypc")&& !z&&(!g.Jw(K)||t)}; bg8=function(z,K){z=GIv(z.app.e_().J);z=g.a(z);for(var f=z.next();!f.done;f=z.next()){f=f.value;var M=f.getAvailableAudioTracks(),p=null;M=g.a(M);for(var t=M.next();!t.done;t=M.next())if(t=t.value,t.getLanguageInfo().getId()===K){p=t;break}p&&f.nR(p,!0)}}; sh=function(){xa.apply(this,arguments);this.requestHeaders={}}; jz=function(){AT||(AT=new sh);return AT}; YO=function(z,K){K?z.requestHeaders.Authorization="Bearer "+K:delete z.requestHeaders.Authorization}; g.Xm=function(z){g.J.call(this);var K=this;this.AL=z;this.dO={H3:function(){return K.AL}}}; g.xO=function(z,K,f,M){M=M===void 0?!1:M;g.RT.call(this,K);var p=this;this.U=z;this.nH=M;this.D=new g.xI(this);this.fade=new g.I3(this,f,!0,void 0,void 0,function(){p.q6()}); g.d(this,this.D);g.d(this,this.fade)}; Fm=function(z){var K=z.U.getRootNode();return z.U.B("web_watch_pip")||z.U.B("web_shorts_pip")?j8(K):document}; e1v=function(z){z.Y&&(document.activeElement&&g.t$(z.element,document.activeElement)&&z.Y.focus(),z.Y.setAttribute("aria-expanded","false"),z.Y=void 0);g.g0(z.D);z.N=void 0}; Oh=function(z,K,f){z.U8()?z.Ip():z.uP(K,f)}; rq=function(z,K,f,M){M=new g.F({j:"div",Wx:["ytp-linked-account-popup-button"],qc:M,V:{role:"button",tabindex:"0"}});K=new g.F({j:"div",K:"ytp-linked-account-popup",V:{role:"dialog","aria-modal":"true",tabindex:"-1"},L:[{j:"div",K:"ytp-linked-account-popup-title",qc:K},{j:"div",K:"ytp-linked-account-popup-description",qc:f},{j:"div",K:"ytp-linked-account-popup-buttons",L:[M]}]});g.xO.call(this,z,{j:"div",K:"ytp-linked-account-popup-container",L:[K]},100);var p=this;this.dialog=K;g.d(this,this.dialog); M.listen("click",function(){p.Ip()}); g.d(this,M);g.dq(this.U,this.element,4);this.hide()}; g.oN=function(z,K,f,M){g.RT.call(this,z);this.priority=K;f&&g.Zo(this,f);M&&this.s0(M)}; g.Cq=function(z,K,f,M){z=z===void 0?{}:z;K=K===void 0?[]:K;f=f===void 0?!1:f;M=M===void 0?!1:M;K.push("ytp-menuitem");var p=z;"role"in p||(p.role="menuitem");f||(p=z,"tabindex"in p||(p.tabindex="0"));z={j:f?"a":"div",Wx:K,V:z,L:[{j:"div",K:"ytp-menuitem-icon",qc:"{{icon}}"},{j:"div",K:"ytp-menuitem-label",qc:"{{label}}"},{j:"div",K:"ytp-menuitem-content",qc:"{{content}}"}]};M&&z.L.push({j:"div",K:"ytp-menuitem-secondary-icon",qc:"{{secondaryIcon}}"});return z}; g.Zo=function(z,K){z.updateValue("label",K)}; TG=function(z){g.oN.call(this,g.Cq({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var K=this;this.U=z;this.Y=this.S=!1;this.zP=z.Hc();z.createServerVe(this.element,this,!0);this.X(this.U,"settingsMenuVisibilityChanged",function(f){K.Xt(f)}); this.X(this.U,"videodatachange",this.J);this.listen("click",this.onClick);this.J()}; Uh=function(z){return z?g.Lc(z):""}; zD=function(z){g.J.call(this);this.api=z}; KE=function(z){zD.call(this,z);var K=this;GG(z,"setAccountLinkState",function(f){K.setAccountLinkState(f)}); GG(z,"updateAccountLinkingConfig",function(f){K.updateAccountLinkingConfig(f)}); z.addEventListener("videodatachange",function(f,M){K.onVideoDataChange(M)}); z.addEventListener("settingsMenuInitialized",function(){K.menuItem=new TG(K.api);g.d(K,K.menuItem)})}; wlp=function(z){this.api=z;this.S={}}; $M=function(z,K,f,M){K in z.S||(f=new g.bS(f,M,{id:K,priority:2,namespace:"appad"}),z.api.St([f],1),z.S[K]=f)}; fE=function(z){zD.call(this,z);var K=this;this.events=new g.xI(this);g.d(this,this.events);this.S=new wlp(this.api);this.events.X(this.api,"legacyadtrackingpingreset",function(){K.S.S={}}); this.events.X(this.api,"legacyadtrackingpingchange",function(f){var M=K.S;$M(M,"part2viewed",1,0x8000000000000);$M(M,"engagedview",Math.max(1,f.nI*1E3),0x8000000000000);if(!f.isLivePlayback){var p=f.lengthSeconds*1E3;NE(f)&&M.api.B("html5_shorts_gapless_ads_duration_fix")&&(p=M.api.getProgressState().seekableEnd*1E3-f.jS);$M(M,"videoplaytime25",p*.25,p);$M(M,"videoplaytime50",p*.5,p);$M(M,"videoplaytime75",p*.75,p);$M(M,"videoplaytime100",p,0x8000000000000);$M(M,"conversionview",p,0x8000000000000); $M(M,"videoplaybackstart",1,p);$M(M,"videoplayback2s",2E3,p);$M(M,"videoplayback10s",1E4,p)}}); this.events.X(this.api,g.wE("appad"),this.Y);this.events.X(this.api,g.DU("appad"),this.Y)}; h18=function(z,K,f){if(!(f in K))return!1;K=K[f];Array.isArray(K)||(K=[K]);K=g.a(K);for(f=K.next();!f.done;f=K.next()){f=f.value;var M={CPN:z.api.getVideoData().clientPlaybackNonce};f=g.Jy(f,M);M=void 0;M=M===void 0?!1:M;(M=tA(Bt(f,DfS),f,M,"Active View 3rd Party Integration URL"))||(M=void 0,M=M===void 0?!1:M,M=tA(Bt(f,y3a),f,M,"Google/YouTube Brand Lift URL"));M||(M=void 0,M=M===void 0?!1:M,M=tA(Bt(f,kIW),f,M,"Nielsen OCR URL"));g.F$(f,void 0,M)}return!0}; M$=function(z,K){awS(z,K).then(function(f){g.F$(K,void 0,void 0,f)})}; pE=function(z,K){K.forEach(function(f){M$(z,f)})}; awS=function(z,K){return g.iY(z.api.Z())&&DQ(K)&&wV(K)?g.IB(z.api.Z(),g.X6(z.api.getVideoData())).then(function(f){var M;f&&(M={Authorization:"Bearer "+f});return M},void 0):cg()}; R15=function(z){zD.call(this,z);this.events=new g.xI(z);g.d(this,this.events);this.events.X(z,"videoready",function(K){if(z.getPresentingPlayerType()===1){var f,M,p={playerDebugData:{pmlSignal:!!((f=K.getPlayerResponse())==null?0:(M=f.adPlacements)==null?0:M.some(function(t){var B;return t==null?void 0:(B=t.adPlacementRenderer)==null?void 0:B.renderer})), contentCpn:K.clientPlaybackNonce}};g.Ds("adsClientStateChange",p)}})}; t1=function(z){g.F.call(this,{j:"button",Wx:["ytp-button","ytp-autonav-toggle"],V:{title:"{{title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},L:[{j:"div",K:"ytp-autonav-toggle-button-container",L:[{j:"div",K:"ytp-autonav-toggle-button",V:{"aria-checked":"true"}}]}]});this.U=z;this.Y=[];this.S=!1;this.isChecked=!0;z.createClientVe(this.element,this,113681);this.X(z,"presentingplayerstatechange",this.wG);this.listen("click",this.onClick);this.U.Z().B("web_player_autonav_toggle_always_listen")&& SoS(this);Qp(z,this.element,this);this.wG()}; SoS=function(z){z.Y.push(z.X(z.U,"videodatachange",z.wG));z.Y.push(z.X(z.U,"videoplayerreset",z.wG));z.Y.push(z.X(z.U,"onPlaylistUpdate",z.wG));z.Y.push(z.X(z.U,"autonavchange",z.Ci))}; u9q=function(z){z.isChecked=z.isChecked;z.dE("ytp-autonav-toggle-button").setAttribute("aria-checked",String(z.isChecked));var K=z.isChecked?"Ch\u1ebf \u0111\u1ed9 t\u1ef1 \u0111\u1ed9ng ph\u00e1t \u0111ang b\u1eadt":"Ch\u1ebf \u0111\u1ed9 t\u1ef1 \u0111\u1ed9ng ph\u00e1t \u0111ang t\u1eaft";z.updateValue("title",K);z.updateValue("label",K);z.U.r$()}; LGT=function(z){return z.U.Z().B("web_player_autonav_use_server_provided_state")&&$3(z.Y8())}; E$p=function(z){zD.call(this,z);var K=this;this.events=new g.xI(z);g.d(this,this.events);this.events.X(z,"standardControlsInitialized",function(){var f=new t1(z);g.d(K,f);z.Qk(f,"RIGHT_CONTROLS_LEFT")})}; B1=function(z,K){g.oN.call(this,g.Cq({role:"menuitemcheckbox","aria-checked":"false"}),K,z,{j:"div",K:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; N$=function(z,K){z.checked=K;z.element.setAttribute("aria-checked",String(z.checked))}; PVu=function(z){var K=!z.Z().Dh&&z.getPresentingPlayerType()!==3;return z.isFullscreen()||K}; g.v1=function(z,K,f,M){var p=z.currentTarget;if((f===void 0||!f)&&g.WP(z))return z.preventDefault(),!0;K.pauseVideo();z=p.getAttribute("href");g.Ts(z,M,!0);return!1}; g.I0=function(z,K,f){if(Ui(K.Z())&&K.getPresentingPlayerType()!==2){if(g.WP(f))return K.isFullscreen()&&!K.Z().externalFullscreen&&K.toggleFullscreen(),f.preventDefault(),!0}else{var M=g.WP(f);M&&K.pauseVideo();g.Ts(z,void 0,!0);M&&(g.U$(z),f.preventDefault())}return!1}; Qe8=function(z){z=Hg5.includes("vi")?z.B("delhi_modern_web_player_icons")?hWo():{j:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",JB:!0,V:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z", fill:"#fff"}}]}:z.B("delhi_modern_web_player_icons")?{j:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",V:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z", fill:"white"}}]}:{j:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",JB:!0,V:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};z.K="ytp-subtitles-button-icon";return z}; qoS=function(z){return Hg5.includes("vi")?z?hWo():{j:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",V:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",fill:"white"}}]}:z?{j:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},L:[{j:"path",V:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z", fill:"white"}}]}:{j:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",V:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; GD=function(){return{j:"div",K:"ytp-spinner-container",L:[{j:"div",K:"ytp-spinner-rotator",L:[{j:"div",K:"ytp-spinner-left",L:[{j:"div",K:"ytp-spinner-circle"}]},{j:"div",K:"ytp-spinner-right",L:[{j:"div",K:"ytp-spinner-circle"}]}]}]}}; b4=function(z){if(document.createRange){var K=document.createRange();K&&(K.selectNodeContents(z),z=window.getSelection())&&(z.removeAllRanges(),z.addRange(K))}}; DS=function(z){var K=z.B("web_player_use_cinematic_label_2")?"Ch\u1ebf \u0111\u1ed9 m\u00f4i tr\u01b0\u1eddng xung quanh":"\u00c1nh s\u00e1ng \u0111i\u1ec7n \u1ea3nh";B1.call(this,K,g.e9.Lv);var f=this;this.U=z;this.S=!1;this.Y=new g.Kl(function(){g.Dz(f.element,"ytp-menuitem-highlighted")},0); this.zP=z.Hc();z=z.B("delhi_modern_web_player_icons")?{j:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",V:{d:"M12 .5C11.73 .5 11.48 .60 11.29 .79C11.10 .98 11 1.23 11 1.5V3.5C11 3.76 11.10 4.01 11.29 4.20C11.48 4.39 11.73 4.5 12 4.5C12.26 4.5 12.51 4.39 12.70 4.20C12.89 4.01 13 3.76 13 3.5V1.5C13 1.23 12.89 .98 12.70 .79C12.51 .60 12.26 .5 12 .5ZM3.79 1.29C3.61 1.46 3.51 1.70 3.50 1.94C3.48 2.19 3.56 2.43 3.72 2.63L3.79 2.70L5.29 4.20L5.37 4.27C5.56 4.42 5.80 4.50 6.04 4.49C6.29 4.47 6.52 4.37 6.70 4.20C6.87 4.02 6.97 3.79 6.99 3.54C7.00 3.30 6.92 3.06 6.77 2.86L6.70 2.79L5.20 1.29L5.13 1.22C4.93 1.06 4.69 .98 4.44 1.00C4.20 1.01 3.96 1.11 3.79 1.29ZM18.86 1.22L18.79 1.29L17.29 2.79L17.22 2.86C17.07 3.06 16.99 3.30 17.00 3.54C17.01 3.79 17.12 4.02 17.29 4.20C17.47 4.37 17.70 4.48 17.95 4.49C18.19 4.50 18.43 4.42 18.63 4.27L18.70 4.20L20.20 2.70L20.27 2.63C20.42 2.43 20.50 2.19 20.49 1.95C20.48 1.70 20.37 1.47 20.20 1.29C20.02 1.12 19.79 1.01 19.54 1.00C19.30 .99 19.06 1.07 18.86 1.22ZM19.20 6.01L19 6H5L4.79 6.01C4.30 6.06 3.84 6.29 3.51 6.65C3.18 7.02 2.99 7.50 3 8V16L3.01 16.20C3.05 16.66 3.26 17.08 3.58 17.41C3.91 17.73 4.33 17.94 4.79 17.99L5 18H19L19.20 17.98C19.66 17.94 20.08 17.73 20.41 17.41C20.73 17.08 20.94 16.66 20.99 16.20L21 16V8C20.99 7.50 20.81 7.02 20.48 6.66C20.15 6.29 19.69 6.06 19.20 6.01ZM5 16V8H19V16H5ZM17.29 19.79C17.11 19.96 17.01 20.20 17.00 20.44C16.98 20.69 17.06 20.93 17.22 21.13L17.29 21.20L18.79 22.70L18.86 22.77C19.06 22.92 19.30 23.00 19.54 22.99C19.79 22.98 20.02 22.87 20.20 22.70C20.37 22.52 20.48 22.29 20.49 22.04C20.50 21.80 20.42 21.56 20.27 21.36L20.20 21.29L18.70 19.79L18.63 19.72C18.43 19.56 18.19 19.48 17.94 19.50C17.70 19.51 17.46 19.61 17.29 19.79ZM5.37 19.72L5.29 19.79L3.79 21.29L3.72 21.36C3.57 21.56 3.49 21.80 3.50 22.04C3.51 22.29 3.62 22.52 3.79 22.70C3.97 22.87 4.20 22.98 4.45 22.99C4.69 23.00 4.93 22.92 5.13 22.77L5.20 22.70L6.70 21.20L6.77 21.13C6.92 20.93 7.00 20.69 6.99 20.45C6.97 20.20 6.87 19.97 6.70 19.79C6.52 19.62 6.29 19.52 6.04 19.50C5.80 19.49 5.56 19.57 5.37 19.72ZM12 19.5C11.73 19.5 11.48 19.60 11.29 19.79C11.10 19.98 11 20.23 11 20.5V22.5C11 22.76 11.10 23.01 11.29 23.20C11.48 23.39 11.73 23.5 12 23.5C12.26 23.5 12.51 23.39 12.70 23.20C12.89 23.01 13 22.76 13 22.5V20.5C13 20.23 12.89 19.98 12.70 19.79C12.51 19.60 12.26 19.5 12 19.5Z", fill:"white"}}]}:{j:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",V:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]};this.setIcon(z);this.subscribe("select",this.T,this);this.listen(wK,this.J);g.d(this,this.Y)}; kM=function(z){zD.call(this,z);var K=this;this.S=!1;z.addEventListener("settingsMenuInitialized",function(){mfS(K)}); z.addEventListener("highlightSettingsMenu",function(f){mfS(K);var M=K.menuItem;f==="menu_item_cinematic_lighting"&&(g.ey(M.element,"ytp-menuitem-highlighted"),g.ey(M.element,"ytp-menuitem-highlight-transition-enabled"),M.Y.start())}); GG(z,"updateCinematicSettings",function(f){K.updateCinematicSettings(f)})}; mfS=function(z){z.menuItem||(z.menuItem=new DS(z.api),g.d(z,z.menuItem),z.menuItem.Dq(z.S))}; lw5=function(z){zD.call(this,z);var K=this;this.events=new g.xI(z);g.d(this,this.events);this.events.X(z,"applicationvideodatachange",function(f,M){M=M.clipConfig;f==="dataloaded"&&M&&M.startTimeMs!=null&&M.endTimeMs!=null&&K.api.setLoopRange({startTimeMs:Math.floor(Number(M.startTimeMs)),endTimeMs:Math.floor(Number(M.endTimeMs)),postId:M.postId,type:"clips"})})}; h1=function(z){zD.call(this,z);this.events=new g.xI(z);g.d(this,this.events);GG(z,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));GG(z,"setCreatorEndscreenHideButton",this.S.bind(this))}; a0=function(z,K,f,M){B1.call(this,"\u00c2m l\u01b0\u1ee3ng \u1ed5n \u0111\u1ecbnh",g.e9.fX);g.ey(this.element,"ytp-drc-menu-item");this.zP=z.Hc();this.T=K;this.S=f;this.hasDrcAudioTrack=M;z.addEventListener("videodatachange",this.Y.bind(this));z.B("mta_drc_mutual_exclusion_removal")&&this.X(z,"onPlaybackAudioChange",this.Y);K=this.S()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());z=z.B("delhi_modern_web_player_icons")?{j:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},L:[{j:"path",V:{d:"M12 .99C5.92 .99 1 5.92 1 11.99C1 18.07 5.92 22.99 12 22.99C18.07 22.99 23 18.07 23 11.99C23 5.92 18.07 .99 12 .99ZM12 2.99C14.38 2.99 16.67 3.94 18.36 5.63C20.05 7.32 21 9.61 21 11.99C21 14.38 20.05 16.67 18.36 18.36C16.67 20.05 14.38 20.99 12 20.99C9.61 20.99 7.32 20.05 5.63 18.36C3.94 16.67 3 14.38 3 11.99C3 9.61 3.94 7.32 5.63 5.63C7.32 3.94 9.61 2.99 12 2.99ZM14 6.00C13.73 6.00 13.48 6.10 13.29 6.29C13.10 6.48 13 6.73 13 7.00V17.00C13 17.26 13.10 17.52 13.29 17.70C13.48 17.89 13.73 18.00 14 18.00C14.26 18.00 14.51 17.89 14.70 17.70C14.89 17.52 15 17.26 15 17.00V7.00C15 6.73 14.89 6.48 14.70 6.29C14.51 6.10 14.26 6.00 14 6.00ZM10 8.00C9.73 8.00 9.48 8.10 9.29 8.29C9.10 8.48 9 8.73 9 9.00V15.00C9 15.26 9.10 15.52 9.29 15.70C9.48 15.89 9.73 16.00 10 16.00C10.26 16.00 10.51 15.89 10.70 15.70C10.89 15.52 11 15.26 11 15.00V9.00C11 8.73 10.89 8.48 10.70 8.29C10.51 8.10 10.26 8.00 10 8.00ZM18 9.00C17.73 9.00 17.48 9.10 17.29 9.29C17.10 9.48 17 9.73 17 10.00V14.00C17 14.26 17.10 14.52 17.29 14.70C17.48 14.89 17.73 15.00 18 15.00C18.26 15.00 18.51 14.89 18.70 14.70C18.89 14.52 19 14.26 19 14.00V10.00C19 9.73 18.89 9.48 18.70 9.29C18.51 9.10 18.26 9.00 18 9.00ZM6 10.00C5.73 10.00 5.48 10.10 5.29 10.29C5.10 10.48 5 10.73 5 11.00V13.00C5 13.26 5.10 13.52 5.29 13.70C5.48 13.89 5.73 14.00 6 14.00C6.26 14.00 6.51 13.89 6.70 13.70C6.89 13.52 7 13.26 7 13.00V11.00C7 10.73 6.89 10.48 6.70 10.29C6.51 10.10 6.26 10.00 6 10.00Z", fill:"white"}}]}:{j:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",V:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z",fill:"white"}}]};this.setIcon(z);this.subscribe("select",this.J,this);N$(this,K);this.zP.md(this)}; R0=function(z){zD.call(this,z);var K=this;this.events=new g.xI(z);g.d(this,this.events);z.B("html5_show_drc_toggle")&&z.addEventListener("settingsMenuInitialized",function(){K.menuItem||(K.menuItem=new a0(K.api,K.setDrcUserPreference.bind(K),K.getDrcUserPreference.bind(K),K.Y.bind(K)),g.d(K,K.menuItem))}); GG(this.api,"setDrcUserPreference",function(M){K.setDrcUserPreference(M)}); GG(this.api,"getDrcUserPreference",function(){return K.getDrcUserPreference()}); GG(this.api,"hasDrcAudioTrack",function(){return K.Y()}); var f;this.S=(f=g.AV("yt-player-drc-pref"))!=null?f:1;this.updateEnvironmentData()}; S9=function(z){zD.call(this,z);var K=this;this.S={};this.events=new g.xI(z);g.d(this,this.events);this.events.X(z,"videodatachange",function(){K.onVideoDataChange()}); this.events.X(z,g.wE("embargo"),function(f){K.api.g8(!0);var M,p=(M=K.S[f.id])!=null?M:[];M=g.a(p);for(p=M.next();!p.done;p=M.next()){var t=p.value;K.api.hideControls();K.api.HA("auth",2,"This video isn't available in your current playback area",Wf({embargoed:1,id:f.id,idx:f.Y,start:f.start}));p=void 0;(t=(p=t.embargo)==null?void 0:p.onTrigger)&&K.api.LH("innertubeCommand",t)}})}; VRI=function(z,K){var f;return(f=K.onEnter)==null?void 0:f.some(z.Y)}; n$p=function(z,K){K=g.a(K);for(var f=K.next();!f.done;f=K.next()){f=f.value;var M=void 0,p=Number((M=f.playbackPosition)==null?void 0:M.utcTimeMillis)/1E3,t=void 0;M=p+Number((t=f.duration)==null?void 0:t.seconds);t="embargo_"+p;z.api.addUtcCueRange(t,p,M,"embargo",!1);f.onEnter&&(z.S[t]=f.onEnter.filter(z.Y))}}; u4=function(z){zD.call(this,z);var K=this;this.S=[];this.events=new g.xI(z);g.d(this,this.events);GG(z,"addEmbedsConversionTrackingParams",function(f){K.api.Z().nN&&K.addEmbedsConversionTrackingParams(f)}); this.events.X(z,"veClickLogged",function(f){K.api.hasVe(f)&&(f=f.visualElement.getAsJspb(),f=zA(f,2),K.S.push(f))})}; WGd=function(z){zD.call(this,z);GG(z,"isEmbedsShortsMode",function(){return z.isEmbedsShortsMode()})}; J3d=function(z){zD.call(this,z);var K=this;this.events=new g.xI(z);g.d(this,this.events);this.events.X(z,"initialvideodatacreated",function(f){cl(d8(),16623);K.S=g.Vz();var M=z.Z().Ix&&!f.lW;if(Y3(f)&&M){cl(d8(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(f.getWatchNextResponse()){var p,t=(p=f.getWatchNextResponse())==null?void 0:p.trackingParams;t&&A3(t)}if(f.getPlayerResponse()){var B;(f=(B=f.getPlayerResponse())==null?void 0:B.trackingParams)&&A3(f)}}else cl(d8(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),f.getEmbeddedPlayerResponse()&&(B=(t=f.getEmbeddedPlayerResponse())==null?void 0:t.trackingParams)&&A3(B)}); this.events.X(z,"loadvideo",function(){cl(d8(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:K.S})}); this.events.X(z,"cuevideo",function(){cl(d8(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:K.S})}); this.events.X(z,"largeplaybuttonclicked",function(f){cl(d8(),27240,f.visualElement)}); this.events.X(z,"playlistnextbuttonclicked",function(f){cl(d8(),27240,f.visualElement)}); this.events.X(z,"playlistprevbuttonclicked",function(f){cl(d8(),27240,f.visualElement)}); this.events.X(z,"playlistautonextvideo",function(){cl(d8(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; LE=function(z,K){g.J.call(this);var f=this;this.S=null;this.T=K;K=[];for(var M=0;M<=100;M++)K.push(M/100);K={threshold:K,trackVisibility:!0,delay:1E3};(this.Y=window.IntersectionObserver?new IntersectionObserver(function(p){p=p[p.length-1];typeof p.isVisible==="undefined"?document.visibilityState==="visible"&&p.isIntersecting&&p.intersectionRatio>0?f.S=p.intersectionRatio:document.visibilityState==="hidden"?f.S=0:f.S=null:f.S=p.isVisible?p.intersectionRatio:0;typeof f.T==="function"&&f.T(f.S)},K): null)&&this.Y.observe(z)}; igW=function(z){zD.call(this,z);var K=this;this.events=new g.xI(z);g.d(this,this.events);this.events.X(z,"applicationInitialized",function(){g$S(K)})}; g$S=function(z){var K=z.api.getRootNode(),f,M=z.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((f=K.parentElement)==null?void 0:f.parentElement)||K:K;z.S=new LE(M,function(p){p!=null&&(z.api.Z().ND=p,z.api.Z().yL="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.d(z,z.S);z.events.X(z.api,"videoStatsPingCreated",function(p){var t=z.S;t=t.S==null?null:Math.round(t.S*100)/100;p.inview=t!=null?t:void 0;t=z.api.getPlayerSize();if(t.height>0&&t.width>0){t=[Math.round(t.width),Math.round(t.height)];var B=g.Ka();B>1&&t.push(B);t=t.join(":")}else t=void 0;p.size=t})}; dfS=function(z){var K;return((K=((z==null?void 0:z.messageRenderers)||[]).find(function(f){return!!f.timeCounterRenderer}))==null?void 0:K.timeCounterRenderer)||null}; E7=function(z){g.F.call(this,{j:"div",Wx:["ytp-player-content","ytp-iv-player-content"],L:[{j:"div",K:"ytp-free-preview-countdown-timer",L:[{j:"span",qc:"{{label}}"},{j:"span",K:"ytp-free-preview-countdown-timer-separator",qc:"\u2022"},{j:"span",qc:"{{duration}}"}]}]});this.api=z;this.S=null;this.T=this.Y=0;this.X(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; seT=function(z,K){z.S||(z.Y=K,z.T=(0,g.X)(),z.S=new g.zJ(function(){c3g(z)},null),c3g(z))}; c3g=function(z){var K=Math,f=K.round,M=Math.min((0,g.X)()-z.T,z.Y);K=f.call(K,(z.Y-M)/1E3);z.updateValue("duration",lV({seconds:K}));K<=0&&z.S?z.stopTimer():z.S&&z.S.start()}; A3I=function(z){zD.call(this,z);var K=this;this.events=new g.xI(z);g.d(this,this.events);this.events.X(z,"basechromeinitialized",function(){K.S=new E7(z);g.d(K,K.S);g.dq(z,K.S.element,4);K.S.hide()})}; P1=function(z){g.F.call(this,{j:"button",Wx:["ytp-fullerscreen-edu-button","ytp-button"],L:[{j:"div",Wx:["ytp-fullerscreen-edu-text"],qc:"Cu\u1ed9n \u0111\u1ec3 bi\u1ebft th\u00eam chi ti\u1ebft"},{j:"div",Wx:["ytp-fullerscreen-edu-chevron"],L:[{j:"svg",V:{height:"100%",viewBox:"0 0 24 24",width:"100%"},L:[{j:"path",V:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],V:{"data-priority":"2"}});this.Fc=z;this.fade=new g.I3(this,250,void 0,100);this.Y=this.S=!1;z.createClientVe(this.element, this,61214);g.d(this,this.fade);this.X(z,"fullscreentoggled",this.Dq);this.X(z,"presentingplayerstatechange",this.Dq);this.listen("click",this.onClick);this.Dq()}; H1=function(z){zD.call(this,z);var K=this;this.events=new g.xI(z);g.d(this,this.events);GG(this.api,"updateFullerscreenEduButtonSubtleModeState",function(M){K.updateFullerscreenEduButtonSubtleModeState(M)}); GG(this.api,"updateFullerscreenEduButtonVisibility",function(M){K.updateFullerscreenEduButtonVisibility(M)}); var f=z.Z();z.B("external_fullscreen_with_edu")&&f.externalFullscreen&&Ui(f)&&f.controlsType==="1"&&this.events.X(z,"standardControlsInitialized",function(){K.S=new P1(z);g.d(K,K.S);z.Qk(K.S)})}; je8=function(z){g.F.call(this,{j:"div",K:"ytp-gated-actions-overlay",L:[{j:"div",K:"ytp-gated-actions-overlay-background",L:[{j:"div",K:"ytp-gated-actions-overlay-background-overlay"}]},{j:"button",Wx:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],V:{"aria-label":"\u0110o\u0301ng"},L:[g.qb()]},{j:"div",K:"ytp-gated-actions-overlay-bar",L:[{j:"div",K:"ytp-gated-actions-overlay-text-container",L:[{j:"div",K:"ytp-gated-actions-overlay-title",qc:"{{title}}"},{j:"div",K:"ytp-gated-actions-overlay-subtitle", qc:"{{subtitle}}"}]},{j:"div",K:"ytp-gated-actions-overlay-button-container"}]}]});var K=this;this.api=z;this.background=this.dE("ytp-gated-actions-overlay-background");this.Y=this.dE("ytp-gated-actions-overlay-button-container");this.S=[];this.X(this.dE("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){K.api.LH("onCloseMiniplayer")}); this.hide()}; Xlu=function(z,K){var f=0;f=0;for(var M={};f p&&(p=v.width,t="url("+v.url+")")}f.background.style.backgroundImage=t;Xlu(f,M.actionButtons||[]);f.show()}else f.hide()}); g.dq(this.api,this.S.element,4)}; Qt=function(z){zD.call(this,z);var K=this;ez(this.api,"getSphericalProperties",function(){return K.getSphericalProperties()}); ez(this.api,"setSphericalProperties",function(){K.setSphericalProperties.apply(K,g.P(g.i8.apply(0,arguments)))}); bD(this.api,"getSphericalProperties",function(){return K.api.getPresentingPlayerType()===2?{}:K.getSphericalProperties()}); bD(this.api,"setSphericalProperties",function(){var f=g.i8.apply(0,arguments);K.api.getPresentingPlayerType()!==2&&K.setSphericalProperties.apply(K,g.P(f))})}; q$=function(z){zD.call(this,z);GG(z,"createClientVe",this.createClientVe.bind(this));GG(z,"createServerVe",this.createServerVe.bind(this));GG(z,"destroyVe",this.destroyVe.bind(this));GG(z,"hasVe",this.hasVe.bind(this));GG(z,"logClick",this.logClick.bind(this));GG(z,"logVisibility",this.logVisibility.bind(this));GG(z,"setTrackingParams",this.setTrackingParams.bind(this))}; mI=function(z,K,f,M){function p(B){var v=!(B.status!==204&&B.status!==200&&!B.response),I;B={succ:""+ +v,rc:B.status,lb:((I=B.response)==null?void 0:I.byteLength)||0,rt:((0,g.X)()-t).toFixed(),shost:g.EW(z),trigger:K};FG8(B,z);f&&f(B);M&&!v&&M(new Jq("pathprobe.net",B))} var t=(0,g.X)();g.V4(z,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:p,onTimeout:p})}; FG8=function(z,K){var f;((f=window.performance)==null?0:f.getEntriesByName)&&(K=performance.getEntriesByName(K))&&K.length&&(K=K[0],z.pedns=(K.domainLookupEnd-K.startTime).toFixed(),z.pecon=(K.connectEnd-K.domainLookupEnd).toFixed(),z.perqs=(K.requestStart-K.connectEnd).toFixed(),OgS&&(z.perqsa=K.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; r35=function(z){OgS=z}; l4=function(z,K){this.hB=z;this.policy=K;this.playbackRate=1}; Zgp=function(z,K){var f=Math.min(2.5,Ei(z.hB));z=Vt(z);return K-f*z}; nE=function(z,K,f,M,p){p=p===void 0?!1:p;if(z.policy.Gc)return Math.ceil(z.policy.Gc*K);z.policy.oH&&(M=Math.abs(M));M/=z.playbackRate;var t=1/QT(z.hB);f=Math.max(.9*(M-3),Ei(z.hB)+z.hB.Y.S*t)/t*.8/(K+f);f=Math.min(f,M);z.policy.Dh>0&&p&&(f=Math.max(f,z.policy.Dh));return o$q(z,f,K)}; o$q=function(z,K,f){return Math.ceil(Math.max(Math.max(z.policy.r8,z.policy.I9*f),Math.min(Math.min(z.policy.Px,31*f),Math.ceil(K*f))))||z.policy.r8}; CV5=function(z,K,f){f=nE(z,K.S.info.yE,f.S.info.yE,0);var M=Ei(z.hB)+f/QT(z.hB);return Math.max(M,M+z.policy.XN-f/K.S.info.yE)}; Vt=function(z){return QT(z.hB,!z.policy.Zh,z.policy.mw)}; W1=function(z){return Vt(z)/z.playbackRate}; J1=function(z,K,f){var M=z.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],p=z.policy.playbackStartPolicy.startMinReadaheadPolicy||[];z=Infinity;K=g.a(K&&M.length>0?M:p);for(M=K.next();!M.done;M=K.next())M=M.value,p=M.minReadaheadMs||0,f<(M.minBandwidthBytesPerSec||0)||z>p&&(z=p);return z0&&(this.Y=f.Ns)}; zI8=function(z,K,f,M,p){if(!M.info.C){if(f.length===0)f.push(M);else{var t;(z=(t=f.pop())==null?void 0:g.bj(t,M))?f.push(z):f.push(M)}return p}var B;(f=(B=f.pop())==null?void 0:g.bj(B,M))||(f=M);if(z.policy.O3&&f.info.Y)return z.logger&&z.logger({incompleteSegment:f.info.H8()}),p;M=z.gr(f);p=M.Ia;M={clipId:M.clipId,formatId:M.formatId,startTimeMs:M.startTimeMs,durationMs:M.z$,g2:p,TH:p};p=T8g(K,M.startTimeMs);if(t=f=p>=0?K[p]:null){t=M;var v=p;B=f.startTimeMs+f.durationMs;var I=t.startTimeMs+t.durationMs; if(t.startTimeMs-B>z.Y)t=!1;else if(Uf5(z,f.formatId,t.formatId))f.durationMs=Math.max(B,I)-f.startTimeMs,f.TH=Math.max(f.TH,t.TH),t=!0;else if(Math.abs(f.startTimeMs-t.startTimeMs)<=z.Y)if(f.durationMs>t.durationMs+z.Y){var G=f.formatId,b=f.g2;v=f.TH;f.formatId=t.formatId;f.durationMs=t.durationMs;f.g2=t.g2;f.TH=t.TH;t.formatId=G;t.startTimeMs=I;t.durationMs=B-I;t.g2=b;t.TH=v;t=!1}else f.formatId=t.formatId,t=!0;else B>t.startTimeMs&&(B>I&&(K.splice(v+1,0,{formatId:f.formatId,startTimeMs:I,durationMs:B- I,g2:t.TH+1,TH:f.TH}),z.logger&&z.logger({splitOldStart:(G=f.startTimeMs)==null?void 0:G.toFixed(3),splitOldEnd:B==null?void 0:B.toFixed(3),splitNewStart:(b=t.startTimeMs)==null?void 0:b.toFixed(3),splitNewEnd:I==null?void 0:I.toFixed(3)})),f.durationMs=t.startTimeMs-f.startTimeMs,f.TH=t.g2-1),t=!1}t?M=f:(p+=1,K.splice(p,0,M));G=0;for(b=p+1;b=I+f.Y?f=!0:v+f.Y=0?z:-z-2}; K2q=function(z,K){if(z.P1){var f=z.P1.NL();if(f.length!==0){if(z.T&&K){var M=z.T,p=M.info.J;!kr(f,p)&&M.info.G>0&&(0,g.X)()-z.W<5E3&&(z.logger&&z.logger({dend:M.info.H8()}),f=Wca(f,p,p+.01))}z.policy.ND&&z.logger&&z.logger({cbri:""+z.S});M=[];for(var t=p=0;p=B){var b=Object.assign({},z.z5[t]),e=z.KH.T.get(gP(z.z5[t].formatId)),w=Math.max(I,B);B=e.index.NZ(w+z.Y/ 1E3);I=e.index.getStartTime(B);var D=B+ +(Math.abs(I-w)>z.Y/1E3);w=D+z.J;D=e.index.getStartTime(D)*1E3;t!==z.S||K?(b.g2=w,b.startTimeMs=D):(z.logger&&z.logger({pEvict:"1",og:b.startTimeMs,adj:I*1E3}),b.g2=B+z.J,b.startTimeMs=I*1E3);B=void 0;I=((B=z.T)==null?void 0:B.info.duration)||11;t===z.S&&vz.Y/1E3);B=I+z.J;e=e.index.sE(I)*1E3;b.TH=B;b.durationMs=e-b.startTimeMs;b.g2<=b.TH&&M.push(b)}G=0&&A1(z.audioTrack,z.S)>=0&&t?((z.videoTrack.C||z.audioTrack.C)&&z.loader.Th("iterativeSeeking",{status:"done",count:z.seekCount}),z.videoTrack.C=!1,z.audioTrack.C=!1):M&&g.mZ(function(){if(z.Y||!z.policy.oa)Xx(z);else{var B=K.startTime,v=K.duration;if(!z.policy.C){var I=f?z.videoTrack.C:z.audioTrack.C,G=z.videoTrack.W!==-1&&z.audioTrack.W!==-1,b=z.S>=B&&z.S432E3&&JjS(z.KH);z.T&&(p=z.T,z.T=0);g.mZ(function(){z.policy.C||xM(z,p,102)}); z.loader.Th("initManifestlessSync",{st:p,ost:p+z.loader.MB(),a:z.audioTrack.W,v:z.videoTrack.W});z.J&&(z.J.resolve(p+.1),z.J=null);z.policy.C&&xM(z,p,102)}}}; rK=function(z,K){var f=this;this.jE=z;this.requestNumber=++wNS;this.S=this.now();this.D=this.N=NaN;this.G=this.S;this.T=this.Ft=this.C=0;this.W=this.S;this.rE=this.l_=this.Bx=this.ra=this.O3=this.Hx=this.Y=this.J=0;this.Y1=this.isActive=!1;this.W1=this.oa=0;this.dO={wXd:function(){return f.jm}}; this.hB=K.hB;this.snapshot=vqW(this.hB);this.policy=this.hB.Y;this.M8=!!K.M8;this.mN=K.mN;this.PC=K.PC||0;this.ma=K.ma||0;K.K0&&(this.eV=new D5);var M;this.jm=(M=K.jm)!=null?M:!1;this.M8||t7S(this.hB)}; DoS=function(z){z.Bx=Math.max(z.Bx,z.C-z.O3);z.l_=Math.max(z.l_,z.G-z.ra);z.Hx=0}; ZS=function(z,K,f){Bia(z.hB,K);z.eV&&(z.eV.add(Math.ceil(K)-Math.ceil(z.G)),z.eV.add(Math.max(0,Math.ceil(f/1024)-Math.ceil(z.C/1024))));var M=K-z.G,p=f-z.C;z.Ft=p;z.rE=Math.max(z.rE,p/(M+.01)*1E3);z.G=K;z.C=f;z.Hx&&f>z.Hx&&DoS(z)}; o0=function(z,K){z.url=K;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; CE=function(z,K){rK.call(this,z,K);this.TP=this.LI=!1;this.vx=this.nH=Infinity;this.Px=NaN;this.nI=!1;this.VE=NaN;this.Z2=this.Xc=this.QE=0;this.d5=K.d5||1;this.uX=K.uX||this.d5;this.GD=K.GD;this.Ia=K.Ia;this.Er=K.Er;yHa(this);this.pC(this.S);this.SE=(this.VE-this.S)/1E3}; kFu=function(z){var K=z.Xc||z.QE;return K?z.snapshot.delay+Math.min(z.ma,(z.D-z.N)/1E3)+K:z.SE}; TD=function(z,K,f){if(!z.M8){K=Math.max(K,.01);var M=z.PC?Math.max(K,f/z.PC):K,p=z.hB.Y.T;p&&(M=K,z.PC&&(M=Math.max(K,f/z.PC*p)));So(z.hB,K,f,M)}}; hI8=function(z){return(z.W-z.S)/1E3}; yHa=function(z){z.Px=z.S+z.snapshot.delay*1E3;z.nI=!1}; U7=function(z,K){if(z.GD&&z.Ia!==void 0&&z.Er!==void 0){var f=Math,M=f.min,p=z.nH;var t=z.GD;var B=z.S;if(aJu(t,z.Ia))t=K;else{var v=0;t.l9&&(v=.2);t=B+(t.ma+v)*1E3}z.nH=M.call(f,p,t);f=Math;M=f.min;p=z.vx;t=z.GD;B=z.S;v=RIp(t,z.Ia,z.Er);v!==2&&(K=v?K:B+t.ma*1E3,t.l9&&(K+=t.ma*1E3));z.vx=M.call(f,p,K);z.nH<=z.S?yHa(z):(z.Px=z.nH,z.nI=!0)}}; SeT=function(z,K){if(K+1<=z.totalLength){var f=nI(z,K);f=f<128?1:f<192?2:f<224?3:f<240?4:5}else f=0;if(f<1||!(K+f<=z.totalLength))return[-1,K];if(f===1)z=nI(z,K++);else if(f===2)f=nI(z,K++),z=nI(z,K++),z=(f&63)+64*z;else if(f===3){f=nI(z,K++);var M=nI(z,K++);z=nI(z,K++);z=(f&31)+32*(M+256*z)}else if(f===4){f=nI(z,K++);M=nI(z,K++);var p=nI(z,K++);z=nI(z,K++);z=(f&15)+16*(M+256*(p+256*z))}else f=K+1,z.focus(f),mk(z,f,4)?z=cY8(z).getUint32(f-z.T,!0):(M=nI(z,f+2)+256*nI(z,f+3),z=nI(z,f)+256*(nI(z,f+1)+ 256*M)),K+=5;return[z,K]}; ze=function(z){this.jE=z;this.S=new PY}; K0=function(z,K){this.info=z;this.callback=K;this.state=1;this.N7=this.i$=!1;this.nz=null}; uGo=function(z){return g.zd(z.info.tL,function(K){return K.type===3})}; $C=function(z,K,f,M){var p=this;M=M===void 0?{}:M;this.policy=K;this.jE=f;this.status=0;this.S=new PY;this.Y=0;this.CH=this.J=this.T=!1;this.xhr=new XMLHttpRequest;this.xhr.open(M.method||"GET",z);if(M.headers)for(z=M.headers,K=g.a(Object.keys(z)),f=K.next();!f.done;f=K.next())f=f.value,this.xhr.setRequestHeader(f,z[f]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return p.Q5()}; this.xhr.onload=function(){return p.onDone()}; this.xhr.onerror=function(){return p.onError()}; this.xhr.fetch(function(t){p.S.append(t);p.Y+=t.length;t=(0,g.X)();p.jE.YQ(t,p.Y)},function(){},M.body||null)}; L2p=function(z,K){this.Y=(new TextEncoder).encode(z);this.S=(new TextEncoder).encode(K)}; SFT=function(z,K){var f;return g.n(function(M){if(!K)return M.return(K);f=new g.nf(z.Y);return M.return(f.encrypt(K,z.S))})}; HUd=function(z,K){var f;return g.n(function(M){if(M.Y==1){if(!K)return M.return(K);f=new g.nf(z.Y);return g.l(M,f.decrypt(K,z.S),2)}return M.return(M.S)})}; PHI=function(z,K){var f=this;this.S=z;this.jE=K;this.loaded=this.status=0;this.error="";z=ce(this.S.get("range")||"");if(!z)throw Error("bad range");this.range=z;this.Y=new PY;E6d(this).then(function(){f.jE.Ad()},function(M){f.error=""+M||"unknown_err"; f.jE.Ad()})}; E6d=function(z){var K,f,M,p,t,B,v,I,G,b,e,w,D,y,R;return g.n(function(S){if(S.Y==1){z.status=200;K=z.S.get("docid");f=yw(z.S.get("fmtid")||"");M=z.S.get("lmt")||"0";p=+(z.S.get("csz")||0);if(!K||!f||!p)throw Error("Invalid local URL");z.S.get("ck")&&z.S.get("civ")&&(t=new L2p(z.S.get("ck"),z.S.get("civ")));B=z.range;v=Math.floor(B.start/p);I=Math.floor(B.end/p);G=v}if(S.Y!=5)return G<=I?g.l(S,Qxp(K,f,M,G,t),5):S.jV(0);b=S.S;if(b===void 0)throw Error("invariant: data is undefined");e=G*p;w=(G+1)*p; D=Math.max(0,B.start-e);y=Math.min(B.end+1,w)-(D+e);R=new Uint8Array(b.buffer,D,y);z.Y.append(R);z.loaded+=y;z.loaded=400?(z.lastError="net.badstatus",!0):(p===void 0?0:p)?(z.lastError="ump.spsrejectfailure",!0):f||M!==void 0&&M?!1:(z.lastError=K===204?"net.nocontent":"net.connect",!0)}; Ge=function(z,K){if(z.policy.lZ)return!1;var f=K.getResponseHeader("content-type"),M=K.GJ();z=!M||M<=z.policy.An;return(!K.O9()||!f||f.indexOf("text/plain")!==-1)&&z}; JHa=function(z,K){var f="";K=K.Wu();K.totalLength<=z.policy.An&&(f=W2u(z,lf(K)));return f}; W2u=function(z,K){var f=J0(K);return NI(f)?(z.logger.debug(function(){return"Redirecting to "+f}),f):""}; BB=function(z){return mA(z.T,gp(z.zE.gS))}; g6q=function(z){var K=z.timing.pD();K.shost=gp(z.zE.gS);return K}; iXS=function(z,K){return(z==null?void 0:z.maxWidth)>(K==null?void 0:K.maxWidth)||(z==null?void 0:z.maxHeight)>(K==null?void 0:K.maxHeight)}; doo=function(z,K){for(var f=g.a(K.keys()),M=f.next();!M.done;M=f.next())if(M=K.get(M.value),M.length!==0){g.J2(M,function(v,I){return I.maxFramerate-v.maxFramerate}); for(var p=[M[0]],t=0,B=1;Bz.S||f.push(M)}return f}; bW=function(z,K,f){var M=AHS[z]||[];f.B("html5_shorts_onesie_mismatched_fix")&&(M=jR5[z]||[]);K.push.apply(K,g.P(M));f.B("html5_early_media_for_drm")&&K.push.apply(K,g.P(Yed[z]||[]))}; ZXg=function(z,K){var f=g.eu(z),M=z.Z(),p=M.C;M=M.B("html5_shorts_onesie_mismatched_fix");var t=z.WW();if(M){if(!p.Y){if(t&&eW)return eW;if(w_)return w_}}else if(w_&&!p.Y)return w_;var B=[],v=[],I={},G=D$.concat(XNd);M&&(G=D$.concat(xoS));z.B("html5_early_media_for_drm")&&(G=G.concat(F25),z.B("allow_vp9_1080p_mq_enc")&&G.push(OXS));var b=[].concat(g.P(rHd));z.B("html5_iamf_audio_onesie_fmt")&&b.push(["773"]);G=g.a(G);for(var e=G.next();!e.done;e=G.next()){var w=!1;e=g.a(e.value);for(var D=e.next();!D.done;D= e.next()){D=D.value;var y=b1(D,t&&M);if(y&&y.video&&!(fZ(y)&&!f.nH&&y.video.qualityOrdinal>f.zN)){var R=g.uY(z.Z().experiments,"html5_drm_byterate_soft_cap");R>0&&V$I(y)&&y.yE>R||(w?(B.push(D),bW(D,B,z)):(y=PN(f,y,p),y===!0?(w=!0,B.push(D),bW(D,B,z)):I[D]=y))}}}b=g.a(b);for(G=b.next();!G.done;G=b.next())for(G=g.a(G.value),w=G.next();!w.done;w=G.next())if(w=w.value,(e=nqp(w))&&e.audio&&(z.B("html5_onesie_51_audio")||!Mh(e)&&!pZ(e)))if(e=PN(f,e,p),e===!0){v.push(w);bW(w,v,z);break}else I[w]=e;if(!z.B("html5_enable_audio_quality_setting"))for(z= g.a(["141","774"]),b=z.next();!b.done;b=z.next())b=b.value,v.includes(b)&&(g.R8(v,b),I[b]="blkhqa");f.Y&&K("orfmts",I);if(M)return p.Y&&(p.Y=!1,eW=w_=void 0),t?eW={video:B,audio:v}:w_={video:B,audio:v};w_={video:B,audio:v};p.Y=!1;return w_}; g.Tpo=function(z,K,f){var M=f.C,p=[],t=[],B=f.B("html5_shorts_onesie_mismatched_fix");z=z.WW();var v=D$.concat(XNd);B&&(v=D$.concat(xoS));f.B("html5_early_media_for_drm")&&(v=v.concat(F25),f.B("allow_vp9_1080p_mq_enc")&&v.push(OXS));var I=[].concat(g.P(rHd));f.B("html5_iamf_audio_onesie_fmt")&&I.push(["773"]);v=g.a(v);for(var G=v.next();!G.done;G=v.next()){G=g.a(G.value);for(var b=G.next();!b.done;b=G.next()){b=b.value;var e=b1(b,z&&B);if(e&&e.video){var w=g.uY(f.experiments,"html5_drm_byterate_soft_cap"); if(!(w>0&&V$I(e)&&e.yE>w)&&PN(K,e,M)===!0){p.push({videoCodec:o6u[T5[b]],maxWidth:e.video.width,maxHeight:e.video.height,maxFramerate:e.video.fps});break}}}}B=g.a(I);for(z=B.next();!z.done;z=B.next())for(z=g.a(z.value),I=z.next();!I.done;I=z.next())if(I=I.value,(v=nqp(I))&&v.audio&&(f.B("html5_onesie_51_audio")||!Mh(v)&&!pZ(v))&&PN(K,v,M)===!0){t.push({audioCodec:CHg[T5[I]],numChannels:v.audio.numChannels});break}return{videoFormatCapabilities:p,audioFormatCapabilities:t}}; kC=function(z){var K={},f=z.AL,M=z.pH,p=f.getVideoData(),t=oe(0),B=f.getVisibilityState();if(M.B("html5_enable_audio_quality_setting")){var v=g.uY(M.experiments,"html5_default_audio_quality_setting_lr"),I;K.jG=(I=Uo8[v])!=null?I:0}t&&(K.MH=t,K.lastManualDirection=Oha(),t=ryv()||0,t>0&&(t=(M.B("html5_use_date_now_for_local_storage")?Date.now():(0,g.X)())-t,M.B("html5_use_date_now_for_local_storage")?t>0&&(K.timeSinceLastManualFormatSelectionMs=t):K.timeSinceLastManualFormatSelectionMs=t));t=M.B("html5_use_streamer_bandwidth_for_low_latency_live")&& p.isLowLatencyLiveStream;if(M.schedule.Y1&&!t){var G;t=M.B("html5_disable_bandwidth_cofactors_for_sabr_live")?!((G=z.Bh)==null||!G.Zh):!1;K.eG=QT(M.schedule,!t)}G=g.rI.medium;t=Math.floor(G*16/9);(v=p.WW())||(p.S&&p.T&&p.T.videoInfos.length!==0?(v=p.T.videoInfos[0],v=!!v.video&&v.video.width0&&(K.vp.authorizedFormats=z.authorizedFormats),z.sabrLicenseConstraint&&(K.vp.sabrLicenseConstraint=z.sabrLicenseConstraint));if(M.B("html5_onesie_media_capabilities")||M.B("html5_enable_server_format_filter"))K.jH=3;M.B("html5_onesie_audio_only_playback")&&vw(p)&&(K.jH=1);var E;((E=z.Bh)==null?0:E.D3)&&z.KP&&(K.jH=K.jH===void 0?7:K.jH|4);b=p.BA?p.BA:g.eu(p);M.B("html5_onesie_media_capabilities")&&(K.mediaCapabilities=g.Tpo(p,b,M));var L;if((L=z.Bh)== null?0:yv(L)){w=M.C;L=[];e=[];D=new Map;y=Array.from(w.S.values());y=g.a(y);for(R=y.next();!R.done;R=y.next())S=R.value,S.ev?e.push({audioCodec:CHg[S.Ra],numChannels:S.numChannels,spatialCapabilityBitmask:zt8[S.Ra]}):(E=o6u[S.Ra],R={videoCodec:E,maxWidth:S.maxWidth||0,maxHeight:S.maxHeight||0,maxFramerate:S.maxFramerate||0,is10BitSupported:S.qw||!1},S.maxBitrateBps&&(R.maxBitrateBps=S.maxBitrateBps,B=b1(S.itag),G=void 0,((G=B)==null?0:G.video)&&PN(b,B,w)===!0&&(B=B.yE*8,B>R.maxBitrateBps&&(R.maxBitrateBps= B))),S=E+"_"+S.qw,E=D.get(S)||[],E.push(R),D.set(S,E));L=doo(L,D);w={};M.B("html5_ssff_denylist_opus_low")&&(w={itagDenylist:[249,350]});K.mediaCapabilities={videoFormatCapabilities:L,audioFormatCapabilities:e,hdrModeBitmask:3,perPlaybackAttributes:w}}var q;if((q=z.Bh)==null?0:q.S){K.T2=b.T2;var V;K.zN=(V=z.Bh)==null?void 0:V.zN}M.XK&&(K.E7=M.XK);K.wg=z.aQ;K.g4=z.g4;K.fT=z.fT;K.Rg=z.Rg;z.yQ&&(K.uox=(0,g.X)()-z.yQ);z.isPrefetch&&M.B("html5_report_prefetch_requests")&&(K.isPrefetch=!0);BZ||(K.UcL=!0); q=Ei(M.schedule)*1E3;q>0&&(K.f8=q);var c;((c=z.Bh)==null?0:c.Wf)&&z.qm&&z.qm0?O:M.schedule.interruptions[0]||0;var x;if((x=z.Bh)==null?0:x.TP)K.OO=z.OO;if(p.s8||M.TP)K.audioTrackId=p.s8||M.TP;if(F6(p)&&!K.audioTrackId){var T; a:{var M8,$S,td;x=(M8=p.playerResponse)==null?void 0:($S=M8.playerConfig)==null?void 0:(td=$S.compositeVideoConfig)==null?void 0:td.sourceConfigs;var r,yI;M8=(T=p.playerResponse)==null?void 0:(r=T.playerConfig)==null?void 0:(yI=r.compositeVideoConfig)==null?void 0:yI.defaultActiveSourceVideoId;if(x&&M8)for(T=g.a(x),r=T.next();!r.done;r=T.next())if(r=r.value,r.videoId===M8&&r.audioTracks)for(r=g.a(r.audioTracks),yI=r.next();!yI.done;yI=r.next())if(yI=yI.value,yI.isDefaultForSource){T=yI.id||"";break a}T= ""}K.audioTrackId=T;p==null||p.Th("misstrkchg",{"default":K.audioTrackId})}var H5;if((H5=z.Bh)==null?0:H5.qU)if(z=q$S())K.detailedNetworkType=KA8[z]||KA8.other;M.B("html5_enable_voice_boost")&&(K.pjx=M.Ar);return K}; hp=function(z,K,f,M,p,t,B){var v={};K&&(v.aj=K);if(!z)return v;v.playbackCookie=f==null?void 0:f.playbackCookie;p&&(v.IG=p);v.oM=[];v.L9=[];if(B==null?0:B.size)for(K=g.a(B.values()),f=K.next();!f.done;f=K.next())v.L9.push(f.value);if(z.sabrContextUpdates.size>0)for(K=g.a(z.sabrContextUpdates.values()),f=K.next();!f.done;f=K.next())$6g(v,f.value,M);bv(z)&&t&&$6g(v,t,M);z.UZ&&(v.E9h=z.UZ);M=z.Z().S;v.clientInfo={clientName:f1S[M.c.toUpperCase()]||0};M.cbrand&&(v.clientInfo.deviceMake=M.cbrand);M.cmodel&& (v.clientInfo.deviceModel=M.cmodel);M.cver&&(v.clientInfo.clientVersion=M.cver);M.cos&&(v.clientInfo.osName=M.cos);M.cosver&&(v.clientInfo.osVersion=M.cosver);M=z.Z();M.B("html5_sabr_enable_server_xtag_selection")&&M.Ph&&(v.clientInfo.hl=M.Ph);z.vg&&(v.vg=z.vg);return v}; $6g=function(z,K,f){var M=K.type||0;(f==null?0:f.has(M))?z.L9.push(K):z.oM.push(M)}; c1=function(z,K,f,M,p,t){var B=t===void 0?{}:t;var v=B.x6===void 0?[]:B.x6;var I=B.hq===void 0?!1:B.hq;var G=B.fk===void 0?0:B.fk;var b=B.poToken===void 0?"":B.poToken;var e=B.C9===void 0?void 0:B.C9;var w=B.GZ===void 0?"":B.GZ;var D=B.mM===void 0?0:B.mM;var y=B.xx===void 0?new Uint8Array(0):B.xx;var R=B.Fz===void 0?!1:B.Fz;t=B.e4===void 0?0:B.e4;B=B.aj===void 0?void 0:B.aj;K0.call(this,K,p);var S=this;this.policy=z;this.logger=new g.Np("dash/request");this.aA=this.Pm=0;this.Xh=!1;this.Um=this.Ye= null;this.nF=!1;this.xx=this.mM=null;this.sF=this.rQ=!1;this.yl=null;this.e4=this.JV=0;this.Fs=!1;this.dO={Xr:function(L){S.Xr(L)}, Ube:function(){return S.nz}, ScH:function(L){S.nz=L}, oQ1:function(L){S.Pm=L}, aKV:function(L){S.IF.lastError=L}, eJ:function(){return S.xhr}}; this.timing=new CE(this,f);this.hq=I;this.mM=D;this.xx=y;this.zE=g.Tk(this.info,this.policy,M);this.zE.set("rn",this.Dz().toString());this.zE.set("rbuf",(G*1E3).toFixed().toString());this.hq&&this.zE.set("smb","1");this.policy.A0&&b&&this.zE.set("pot",b);w&&this.zE.set("bbs",w);this.policy.useUmp&&!iH(this.zE.gS)&&(this.LJ=new ze(this),this.zE.set("ump","1"),this.zE.set("srfvp","1"));if(z=this.policy.t1?this.policy.XD&&!isNaN(this.info.Er)&&this.info.Er>this.policy.UZ?!1:!0:!1)K=null,this.policy.D$&& this.policy.E8?K=[1]:R&&(K=[]),K!=null&&(this.policy.G4&&K.push(2),this.zE.set("defsel",K.join(",")));this.IF=new tp(this,this.policy,this.zE,this.info.eE,this.timing,this.logger,M,e);this.x6=v||null;this.N7=MKI(this);mov(this.IF);M=void 0;if(this.policy.u6||this.LJ||this.policy.Bx)M={method:"POST"},v=(0,g.aS)([120,0]),e={},this.policy.e7&&B&&(B=hp(void 0,B),e.tQ=B),this.policy.ez&&this.xx&&(e.videoPlaybackUstreamerConfig=this.xx),this.policy.Bx&&(B=this.info.J)&&Object.assign(e,B),Object.keys(e).length> 0?M.body=g.tM(e,g.IR):M.body=v;if(this.mM&&this.xx){this.zE.set("iwts","1");M={method:"POST"};B={Rg:this.mM*1E3};var E;v=(E=this.info.J)==null?void 0:E.X_;E=g.tM({eq:B,X_:v||void 0,videoPlaybackUstreamerConfig:this.xx},g.IR);M.body=E}try{this.xhr=f0(this.zE,this.policy.G,this.timing,z,M),this.IF.Y.start(),t&&(this.SX=new g.Kl(this.Iu,t,this),this.SX.start(t+(this.timing.hB.D.k9()||0)*1E3)),this.policy.Hf&&o0(this.timing,this.Ic()),this.logger.debug(function(){return"Sent, itag="+S.zE.get("itag")+ " seg="+S.info.tL[0].Ia+" range="+S.zE.get("range")+" time="+Math.round(S.info.tL[0].J)+"-"+Math.round(g.eS(S.info.tL).W)+" rtp="+(S.timing.J4()-Date.now()).toFixed(0)}),g.mZ(function(){})}catch(L){peq(this,L,!0)}}; MKI=function(z){if(!(CN(z.info)&&z.info.jm()&&z.policy.Gw&&z.x6)||z.info.eE.T>=2||oe()>0||!CYd())return!1;var K=z.zE.get("aitags");if(!K)return!1;K=yw(K).split(",");for(var f=[],M=g.a(z.x6),p=M.next();!p.done;p=M.next())p=p.value,g.h2(K,p)&&f.push(p);if(!f.length)return!1;z.zE.set("altitags",g.Dy(f.join(",")));return!0}; peq=function(z,K,f){f=f===void 0?!1:f;g.sm(K);z.IF.lastError="player.exception";z.errorMessage=K.name+"_"+K.message;f?g.mZ(function(){vB(z.IF)}):vB(z.IF)}; tKp=function(z,K){z.timing.Y1=!0;z.xhr.O9()&&z.timing.cH();if(z.policy.E0){var f;(f=z.SX)==null||f.stop()}p0(z.nz,K,!1)}; BPS=function(z,K){z.info=K;if(z.nz){var f=z.nz;K=K.tL;(K.length!==f.tL.length||K.length0){K=g.a(K.tL);for(var f=K.next();!f.done;f=K.next()){var M=void 0;z+=((M=f.value.range)==null?void 0:M.length)||0}return z}if(K.Zw.length>0)for(f=g.a(K.Zw),M=f.next();!M.done;M=f.next())z+=M.value.hA||0;return z+K.G6}; Qv=function(z,K){if(EK){var f=0;z=z.iP.get(K);if(z==null||!z.vW)return 0;z=g.a(z.vW.values());for(K=z.next();!K.done;K=z.next())f+=K.value.data.totalLength;return f}return((f=z.iP.get(K))==null?void 0:f.Vn.totalLength)||0}; qL=function(z,K){z=z.iP.get(K);if(EK){if(z==null||!z.IQ)return!1;K=z.vW.size>0;return z.yU.length>0||K}return!(z==null||!z.IQ)&&!(z==null||!z.Vn.totalLength)}; etS=function(z,K){var f=z.iP.get(K),M=bNq(z,K),p=!M&&!!f.bytesReceived;if(EK){var t;if((t=z.KH)==null?0:t.CI){z=g.a(f.vW.values());for(K=z.next();!K.done;K=z.next())if(!K.value.GS)return!1;return p}}else if(t=z.vr(K),p&&z.S&&t!==void 0)return t;return(p||f.bytesReceived===M)&&f.LR+Qv(z,K)===f.bytesReceived}; weq=function(z,K,f){z.iP.set(K,{Vn:new PY,LR:0,bytesReceived:0,G6:0,aZ:!1,rI:!1,vr:!1,ev:f,DY:[],tL:[],Zw:[],IQ:!1,vW:new Map,jI:new Map,yU:[]});z.logger.debug(function(){return"[initStream] formatId: "+K})}; D68=function(z,K,f,M){f.tL.push.apply(f.tL,g.P(M));if(EK){f.jI.has(K)||f.jI.set(K,[]);var p;(p=f.jI.get(K)).push.apply(p,g.P(M))}else if(f.nz)for(z=g.a(M),K=z.next();!K.done;K=z.next())f.nz.tL.push(K.value);else{f.nz=new ML(z.Bh,[].concat(g.P(f.tL)));var t;((t=z.Bh)==null?0:t.w2)&&g.d(z,f.nz)}}; yLT=function(z,K,f){var M,p=(M=z.KH)==null?void 0:M.T.get(K);if(!p)return[];if(f.bB){var t;return((t=p.JO(0,f.clipId))==null?void 0:t.tL)||[]}if(p.mz()){var B=f.startMs,v=f.durationMs,I=1E3,G;if(((G=z.Bh)==null?0:G.S)&&f.timeRange){var b;B=(b=f.timeRange.startTicks)!=null?b:-1;var e;v=(e=f.timeRange.qh)!=null?e:-1;var w;I=(w=f.timeRange.timescale)!=null?w:-1}if(f.Bs<0||f.z2<0||v<0||B<0||f.hA<0||I<0)return HB(z,K),[];z=sd(f.Bs,f.hA);K=f.gA||0;return[new jK(3,p,z,"makeSliceInfosMediaBytes",f.z2-1,B/ I,v/I,K,z.length-K,void 0,f.u9,f.clipId)]}if(f.z2<0)return HB(z,K),[];var D;return((D=z.KH)==null?0:D.CI)?(K=p.fW,G=K*p.info.yE,b=((B=z.Bh)==null?0:B.O3)?f.gA:void 0,((I=z.Bh)==null?0:I.xn)&&f.timeRange&&!b&&(v=f.timeRange.startTicks/f.timeRange.timescale),[new jK(3,p,void 0,"makeSliceInfosMediaBytes",f.z2,v,K,b,G,!0,f.u9,f.clipId)]):[]}; kku=function(z,K,f){z.KH=K;z.Bh=f;K=g.a(z.iP);for(f=K.next();!f.done;f=K.next()){var M=g.a(f.value);f=M.next().value;M=M.next().value;for(var p=g.a(M.DY),t=p.next();!t.done;t=p.next()){t=t.value;var B=yLT(z,f,t);D68(z,t.OP,M,B)}}}; mz=function(z,K,f,M){z.logger.debug(function(){return"[addStreamData] formatId: "+f+",headerId: "+K+" bytes: "+M.totalLength}); (z=z.iP.get(f))&&!z.rI&&(EK?(z.vW.has(K)||z.vW.set(K,{data:new PY,Nf:0,GS:!1}),HY(z.vW.get(K).data,M)):HY(z.Vn,M),z.bytesReceived+=M.totalLength,z.aZ=!0)}; PB=function(z,K){z.logger.debug(function(){return"[closeStream] formatId: "+K}); var f=z.iP.get(K);f&&!f.rI&&(f.rI=!0,f.Xo&&f.Xo(),htd(z)&&z.J.bH())}; htd=function(z){z=g.a(z.iP.values());for(var K=z.next();!K.done;K=z.next())if(!K.value.rI)return!1;return!0}; a1q=function(z){EK=z}; lW=function(z,K,f,M,p,t,B){g.J.call(this);this.policy=z;this.info=K;this.KH=f;this.jE=p;this.logger=new g.Np("sabr");this.LJ=new ze(this);this.Gk=new uW(this);this.yn=new L0(this);this.state=1;this.BK=!1;this.ju=0;this.clipId="";this.fJ=-1;this.jd=0;this.Aj=-1;this.Fs=this.D1=!1;this.lN=0;this.LS=!1;this.policy.cU?this.aF=new RS(this,t):this.aF=new CE(this,t);this.zE=this.policy.TP?K.Tu:Rtg(K,this.policy,M);this.zE.set("rn",""+this.Dz());this.zE.set("alr","yes");kku(this.yn,f,z);this.IF=new tp(this, this.policy,this.zE,K.eE,this.aF,this.logger,M,B,this.policy.enableServerDrivenRequestCancellation);mov(this.IF);var v;if((v=this.policy)==null?0:v.w2)g.d(this,this.yn),g.d(this,this.IF);z=K.Y;K={method:"POST",body:z};z&&(this.jd=z.length);try{this.xhr=f0(this.zE,this.policy.G,this.aF,BZ,K),this.policy.Hf&&o0(this.aF,this.Ic()),this.IF.Y.start()}catch(I){g.Al(I)}}; Sda=function(z){z.policy.a9&&z.YK&&!z.LS?z.LS=!0:z.aF.cH()}; ukg=function(z,K){var f=-1,M=-1,p=-1,t;if((t=z.dH)==null?0:t.items)for(z=g.a(z.dH.items),t=z.next();!t.done;t=z.next())t=t.value,K=v,I=z.KH.isManifestless&&z.policy.jl,B){var G;if(((G=z.S)==null?void 0:G.A$.event)==="predictStart"&&z.S.Iaz.W&&(z.W=NaN,z.G=NaN);z.S&&z.S.Ia===K?cL8(z,K,f,z.S,p):z.Y===1&&Jp(z,5,"noad")}; sad=function(z,K,f,M,p){M.KO?Jp(z,4,"cue"):(z.W=K,z.G=f,z.Th("sdai",{joinad:z.Y,sg:z.W,st:z.G.toFixed(3)}),z.N=Date.now(),Jp(z,2,z.Y===3?"staftpred":"join"),p.U6(M.A$))}; cL8=function(z,K,f,M,p){if(p&&M){var t=M.A$,B=p.JF(t);t.event==="predictStart"&&(z.l_=K);z.Th("sdai",{onqevt:t.event,sq:K,mt:f,gab:B,cst:t.startSecs,cueid:z.policy.oz&&(B||t.event==="start")?t.identifier:void 0},!0);if(B)if(t.event!=="predictStart")t.event==="start"&&z.l_===K-1&&z.Th("sdai",{gabonstart:K}),sad(z,K,f,M,p);else if(z.policy.FK)Jp(z,3,"predict");else{var v=K+Math.max(Math.ceil(-t.S/5E3),1);B=Math.floor(f-t.S/1E3);z.policy.Y?z.C=B:z.J=v;z.Th("sdai",{onpred:f,estsq:v,estmt:B.toFixed(3)}); g_(z.loader,B,B,v);z.N=Date.now();Jp(z,3,"predict");p.U6(M.A$)}else z.Y===1?((v=z.T)==null?0:v.zx(f))?(g_(z.loader,f,f,K),Jp(z,4,"sk2head")):Jp(z,5,"nogab"):t.event==="predictStart"?z.policy.Y&&z.C>0?(f=Math.floor(f-t.S/1E3),z.C!==f&&z.Th("sdai",{updateSt:f,old:z.C}),z.C=f):z.J>0&&(f=K+Math.max(Math.ceil(-t.S/5E3),1),z.J!==f&&(z.Th("sdai",{updateSt:f,old:z.J}),z.J=f)):z.policy.FK&&z.Y===3&&sad(z,K,f,M,p);var I,G;if(z.Fr&&t.event==="start"&&((I=z.S)==null?void 0:I.A$.event)!=="predictStart"&&((G=z.S)== null?void 0:G.Ia)===K-1){var b;z.Th("sdai",{ovlpst:(b=z.S)==null?void 0:b.A$.event,sq:K})}}else z.Th("sdai",{nulldec:1,sq:K,mt:f.toFixed(3),evt:(M==null?void 0:(t=M.A$)==null?void 0:t.event)||"none"})}; jaT=function(z,K,f){if(z.policy.Pg&&z.policy.Y)return!(z.Y===1||z.Y===2||!z.policy.FK&&z.Y===3&&f>=z.J);if(z.Y===1||z.Y===2)return!1;if(z.Y!==0&&K===z.audioTrack){if(z.policy.Y)return ALv(z.videoTrack,f)||ALv(z.videoTrack,f+1);z=iW(z.videoTrack);if(f>(z?z.Ia:-1))return!1}return!0}; d_=function(z,K,f){return(f<0||f===z.W)&&!isNaN(z.G)?z.G:K}; JLu=function(z,K){if(z.S){var f=z.S.A$.mP-(K.startTime+z.D-z.S.A$.startSecs);f<=0||(f=new CX(z.S.A$.startSecs-(isNaN(z.D)?0:z.D),f,z.S.A$.context,z.S.A$.identifier,"stop",z.S.A$.S+K.duration*1E3),z.Th("cuepointdiscontinuity",{segNum:K.Ia}),WB(z,f,K.Ia))}}; Jp=function(z,K,f){z.Y!==K&&(z.Th("sdai",{setsst:K,old:z.Y,r:f}),z.Y=K)}; cB=function(z,K,f,M){(M===void 0?0:M)?Jp(z,1,"seek"):K>0&&Math.abs(K-f)>=5&&z.Y===4&&Jp(z,5,"sk2t")}; sK=function(){this.Y="";this.S=new Map}; Ap=function(z,K,f){this.audio=z;this.video=K;this.reason=f}; jW=function(z,K,f){this.S=z;this.reason=K;this.token=f;this.videoId=void 0}; YC=function(z,K,f){g.J.call(this);this.policy=z;this.J=K;this.Th=f;this.T=new Map;this.C=0;this.W=!1;this.S="";this.Y=!1}; X1=function(z,K,f){if(f===void 0?0:f)z.W=!0;++z.C;f=6E4*Math.pow(2,z.C);f=(0,g.X)()+f;z.T.set(K.info.id,f)}; xC=function(z){for(var K=g.a(z.T.entries()),f=K.next();!f.done;f=K.next()){var M=g.a(f.value);f=M.next().value;M=M.next().value;M<(0,g.X)()&&z.T.delete(f)}return z.T}; Ydu=function(z){return z.W&&xC(z).size>0}; F1=function(z,K){z.S!==K&&(z.S=K,z.Y=!0)}; XeI=function(z,K){var f;K&&(f=g.yQ(z.J.S,function(p){return p.id===K})); if(!f&&(f=g.yQ(z.J.S,function(p){var t;return!((t=p.b8)==null||!t.isDefault)}),K)){var M; z.Th("iaf",{id:K,sid:(M=f)==null?void 0:M.id})}return f}; r_=function(z,K,f,M,p,t){var B=this;t=t===void 0?[]:t;this.loader=z;this.nH=K;this.policy=f;this.KH=M;this.W=p;this.rE=t;this.logger=new g.Np("dash/abr");this.S=ZY;this.T=this.G=null;this.N=-1;this.vx=!1;this.nextVideo=this.Y=null;this.J=[];this.Xc=new Set;this.Bx={};this.VE=new kv(1);this.D=0;this.QE=this.l_=this.Y1=!1;this.Hx=0;this.b_=!1;this.eV=new Set;this.Px=!1;this.dO={KZ:function(){OK(B)}}; this.C=new YC(this.policy,p,function(v,I){B.loader.Th(v,I)})}; ZNq=function(z,K,f){Z$(z,K);K=XeI(z.C,f);f||K||(K=x6u(z));K=K||z.W.S[0];z.Y=z.KH.S[K.id];OK(z);z.G=z.Y;FAu(z);ONq(z);z.T=z.nextVideo;z.G=z.Y;return rLu(z)}; TPq=function(z,K){if(ob8(z,K))return null;if(K.reason==="m"&&K.isLocked())return z.logger.debug(function(){return"User sets constraint to: "+RR(K)}),Z$(z,K),z.D=z.J.length-1,OK(z),oS(z),z.l_=z.l_||z.T!==z.nextVideo,z.T=z.nextVideo,new Ap(z.Y,z.T,K.reason); K.reason==="r"&&(z.N=-1);Z$(z,K);oS(z);if(K.reason==="r"&&z.nextVideo===z.T)return new Ap(z.Y,z.nextVideo,K.reason);Cro(z);return null}; U6v=function(z,K,f){z.Y=z.KH.S[K];z.G=z.Y;return new Ap(z.G,z.T,f?"t":"m")}; zZI=function(z,K){if(K.info.video){if(z.T!==K)return z.T=K,rLu(z)}else z.QE=z.G!==K,z.G=K;return null}; Kj8=function(z,K){if(K.S.info.video&&K.C){var f=(K.Y+K.T)/K.duration,M=K.S.info.yE;f&&M&&(z.VE.uj(1,f/M),z.policy.T&&f/M>1.5&&z.loader.Th("overshoot",{sq:K.Ia,br:f,max:M}))}}; C0=function(z,K,f){X1(z.C,K,f===void 0?!1:f);z.N=-1;Z$(z,z.S)}; $p8=function(z,K){return new Ap(z.G,z.T,K||z.S.reason)}; Cro=function(z){if(z.T&&z.nextVideo&&Te(z,z.T.info)z.policy.zN,v=p<=z.policy.zN?fZ(M):zr(M);if(!t||B||v)f[p]=M}return f}; Z$=function(z,K){z.S=K;var f=z.W.videoInfos;if(!z.S.isLocked()){var M=(0,g.X)();f=g.ds(f,function(v){if(v.yE>this.policy.yE)return!1;var I=this.KH.S[v.id];return xC(this.C).get(v.id)>M?!1:I.eE.T>4||I.W>4?(this.logger.debug(function(){return"Remove "+el(v)+"; 4 load failures"}),!1):this.eV.has(+v.itag)?!1:!0},z); Ydu(z.C)&&(f=g.ds(f,function(v){return v.video.width<=854&&v.video.height<=480}))}f.length||(f=z.W.videoInfos); var p=f;z.policy.ke&&(p=Mng(z,p,K));p=g.ds(p,K.J,K);if(z.S.isLocked()&&z.C.S){var t=g.yQ(f,function(v){return v.id===z.C.S}); t?p=[t]:F1(z.C,"")}z.policy.ke||(p=Mng(z,p,K));p.length||(p=[f[0]]);p.sort(function(v,I){return Te(z,v)-Te(z,I)}); K={};for(f=1;fK.h6.video.width?(g.a8(p,f),f--):Te(z,K.Nl)*z.policy.D>Te(z,K.h6)&&(g.a8(p,f-1),f--);var B=p[p.length-1];z.b_=!!z.T&&!!z.T.info&&z.T.info.Ra!==B.Ra;z.logger.debug(function(){return"Constraint: "+RR(z.S)+", "+p.length+" fmts selectable, max selectable fmt: "+el(B)}); z.J=p;z.Xc.clear();K=!1;for(f=0;f=1080&&(K=!0);prq(z.policy,B,z.KH.CI)}; Mng=function(z,K,f){var M=f.reason==="m"||f.reason==="s";z.policy.mI&&UK&&g.PJ&&(!M||f.S<1080)&&(K=K.filter(function(G){return G.video&&(!G.Y||G.Y.powerEfficient)})); if(K.length>0)if(Tr()){var p=fHo(z,K);K=K.filter(function(G){return!!G&&!!G.video&&G.Ra===p[G.video.qualityOrdinal].Ra})}else{var t,B,v=(t=K[0])==null?void 0:(B=t.video)==null?void 0:B.qualityOrdinal; if(v){f=K.filter(function(G){return!!G&&!!G.video&&G.video.qualityOrdinal===v}); var I=fHo(z,f)[v].Ra;K=K.filter(function(G){return!!G&&!!G.video&&G.Ra===I})}}return K}; tna=function(z,K){for(var f=0;f+1M}; OK=function(z){if(!z.Y||!z.policy.J&&!z.Y.info.b8){var K=z.W.S;z.Y&&(K=K.filter(function(M){return M.audio.S===z.Y.info.audio.S}),K.length||(K=z.W.S)); z.Y=z.KH.S[K[0].id];if(K.length>1&&!z.policy.QE){if(!z.policy.Bg){var f=g.yQ(K,function(M){return M.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); f&&(z.Y=z.KH.S[f.id])}f=!1;if(f=z.policy.RF?!0:z.S.isLocked()?z.S.S<240:tna(z,z.Y))z.Y=z.KH.S[g.eS(K).id]}}}; oS=function(z){if(!z.nextVideo||!z.policy.J)if(z.S.isLocked())z.nextVideo=z.S.S<=360?z.KH.S[z.J[0].id]:z.KH.S[g.eS(z.J).id],z.logger.debug(function(){return"Select max fmt: "+el(z.nextVideo.info)}); else{for(var K=Math.min(z.D,z.J.length-1),f=W1(z.nH),M=Te(z,z.Y.info),p=f/z.policy.Y1-M;K>0&&!(Te(z,z.J[K])<=p);K--);for(var t=f/z.policy.D-M;K=t);K++);z.nextVideo=z.KH.S[z.J[K].id];z.D!==K&&z.logger.info(function(){return"Adapt to: "+el(z.nextVideo.info)+", bandwidth: "+f.toFixed(0)+", bandwidth to downgrade: "+p.toFixed(0)+", bandwidth to upgrade: "+t.toFixed(0)+", constraint: "+RR(z.S)}); z.D=K}}; FAu=function(z){var K=z.policy.Y1,f=W1(z.nH),M=f/K-Te(z,z.Y.info);K=g.kf(z.J,function(p){return Te(this,p)t?p=0:M[B]>z.buffered[B]&&(B===t-1?p=2:B===t-2&&M[B+1]>z.buffered[B+1]&&(p=3))}z.S.add(K<<3|(f&&4)|p);K=Math.ceil(z.track.j_()*1E3);z.S.add(K-z.C);z.C=K;if(p===1)for(z.S.add(t),B=K=0;B=2&&z.S.add(M[t- 1]-z.buffered[t-1]);f&&z.S.add(f);z.buffered=M}; $Y=function(z,K,f){var M=this;this.policy=z;this.S=K;this.Hx=f;this.J=this.Y=0;this.NT=null;this.Y1=new Set;this.N=[];this.indexRange=this.initRange=null;this.D=new BC;this.l_=this.nH=!1;this.dO={jb1:function(){return M.T}, gec:function(){return M.chunkSize}, P4d:function(){return M.G}, Gca:function(){return M.W}}; (K=GOo(this))?(this.chunkSize=K.csz,this.T=Math.floor(K.clen/K.csz),this.G=K.ck,this.W=K.civ):(this.chunkSize=z.n5,this.T=0,this.G=g.q1(16),this.W=g.q1(16));this.C=new Uint8Array(this.chunkSize);this.G&&this.W&&(this.crypto=new L2p(this.G,this.W))}; GOo=function(z){if(z.policy.Hm&&z.policy.j7)for(var K=g.a(z.policy.Hm),f=K.next(),M={};!f.done;M={fV:void 0,aT:void 0},f=K.next())if(f=g.Iw(f.value),M.fV=+f.clen,M.aT=+f.csz,M.fV>0&&M.aT>0&&z.policy.J===f.docid&&z.S.info.id===f.fmtid&&z.S.info.lastModified===+f.lmt)return z={},z.clen=M.fV,z.csz=M.aT,z.ck=f.ck,z.civ=f.civ,z}; fM=function(z){return!!z.NT&&z.NT.cW()}; wrS=function(z,K){if(!fM(z)&&!z.CH()){if(!(z.nH||(z.nH=!0,z.T>0))){var f=M4(z);f=sN(z.policy.J,z.S.info,pM(z),f,z.policy.VE);tI(z,f)}if(K.info.type===1){if(z.NT){Bz(z,Error("Woffle: Expect INIT slices to always start us off"));return}z.initRange=sd(0,K.Y.totalLength)}else if(K.info.type===2)z.NT&&z.NT.type===1||Bz(z,Error("Woffle: Index before init")),z.indexRange=sd(z.initRange.end+1,K.Y.totalLength);else if(K.info.type===3){if(!z.NT){Bz(z,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(z.NT.type===3&&!xb(z.NT,K.info)&&(z.N=[],K.info.Ia!==Fk(z.NT)||K.info.Y!==0))return;if(K.info.C){f=g.a(z.N);for(var M=f.next();!M.done;M=f.next())bxS(z,M.value);z.N=[]}else{z.N.push(K);z.NT=K.info;return}}else{Bz(z,Error("Woffle: Unexpected slice type"));return}z.NT=K.info;bxS(z,K);eZW(z)}}; bxS=function(z,K){var f=0,M=lf(K.Y);if(z.J=M.length)return;if(f<0)throw Error("Missing data");z.J=z.T;z.Y=0}for(p={};f0){var B=M.getUint32(f+28);t+=B*16+4}var v=M.getUint32(f+t-4);try{var I=aHq(K.subarray(f+t,f+t+v));if(I!==null){var G=I;break a}}catch(b){}}f+=p}G=null;break a}catch(b){G=null;break a}G=void 0}if(G!=null)for(K=rk(QV(G,7,void 0,MM)),K==null||z.qT||(z.cryptoPeriodIndex=K),K=rk(QV(G,10,void 0,MM)),K!=null&&K>0&& !z.qT&&(z.S=K),G=JG(G,2,QzT,void 0===V8S?2:4),G=g.a(G),M=G.next();!M.done;M=G.next())K=z.T,f=K.push,M=yd(M.value),M=g.NW(M,4),f.call(K,M)}; SQp=function(z){return isNaN(z.cryptoPeriodIndex)?g.NW(z.initData):""+z.cryptoPeriodIndex}; IM=function(z,K,f){var M=f===void 0?{}:f;f=M.videoDuration===void 0?0:M.videoDuration;var p=M.WR===void 0?void 0:M.WR;M=M.Ks===void 0?!1:M.Ks;this.videoId=z;this.status=K;this.videoDuration=f;this.WR=p;this.Ks=M}; u7W=function(z,K,f,M,p){this.videoId=z;this.iK=K;this.Y=f;this.bytesDownloaded=M;this.S=p}; GV=function(z){this.S=z;this.offset=0}; bU=function(z){if(z.offset>=z.S.totalLength)throw Error();return nI(z.S,z.offset++)}; Ljq=function(z,K){K=K===void 0?!1:K;var f=bU(z);if(f===1){K=-1;for(f=0;f<7;f++){var M=bU(z);K===-1&&M!==255&&(K=0);K>-1&&(K=K*256+M)}return K}M=128;for(var p=0;p<6&&M>f;p++)f=f*256+bU(z),M*=128;return K?f:f-M}; EyS=function(z){try{var K=Ljq(z,!0),f=Ljq(z,!1);return{id:K,size:f}}catch(M){return{id:-1,size:-1}}}; Pjq=function(z){for(var K=new GV(z),f=-1,M=0,p=0;!M||!p;){var t=EyS(K),B=t.id;t=t.size;if(B<0)return;if(B===176){if(t!==2)return;M=K.e1()}else if(B===186){if(t!==2)return;p=K.e1()}B===374648427?f=K.e1()+t:B!==408125543&&B!==174&&B!==224&&K.skip(t)}K=VN(z,0,f);f=new DataView(K.buffer);f.setUint16(M,3840);f.setUint16(p,2160);M=new PY([K]);HY(M,z);return M}; Hxa=function(z,K,f){var M=this;this.loader=z;this.policy=K;this.C=f;this.logger=new g.Np("dash");this.Y=[];this.S=null;this.nH=-1;this.N=0;this.eV=NaN;this.Y1=0;this.T=NaN;this.D=this.vx=0;this.b_=-1;this.Bx=this.J=this.W=this.Hx=null;this.VE=this.QE=NaN;this.G=this.l_=this.Xc=this.rE=null;this.oa=!1;this.Px=this.timestampOffset=0;this.dO={Kn:function(){return M.Y}}; if(this.policy.J){var p=this.C,t=this.policy.J;this.policy.VE&&z.Th("atv",{ap:this.policy.VE});this.G=new $Y(this.policy,p,function(B,v,I){ew(z,new IM(M.policy.J,2,{WR:new u7W(t,B,p.info,v,I)}))}); this.G.D.promise.then(function(B){M.G=null;B===1?ew(z,new IM(M.policy.J,B)):M.loader.Th("offlineerr",{status:B.toString()})},function(B){var v=(B.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); B instanceof N4&&!B.S?(M.logger.info(function(){return"Assertion failed: "+v}),M.loader.Th("offlinenwerr",{em:v}),wG(M),ew(z,new IM(M.policy.J,4))):(M.logger.info(function(){return"Failed to write to disk: "+v}),M.loader.Th("dldbwerr",{em:v}),wG(M),ew(z,new IM(M.policy.J,4,{Ks:!0})))})}}; Q6S=function(z){return z.Y.length?z.Y[0]:null}; qQI=function(z,K){return z.Y.some(function(f){return f.info.Ia===K})}; Wj5=function(z,K,f,M){M=M===void 0?0:M;if(z.J){var p=z.J.Y+z.J.T;if(f.info.Y>0)if(f.info.Ia===z.J.Ia&&f.info.Y=0&&z.J.Ia>=0&&!xb(z.J,f.info))throw new g.UT("improper_continuation",z.J.H8(),f.info.H8());hVv(z.J,f.info)||Dc(z,"d")}else if(f.info.Y>0)throw new g.UT("continuation_of_null",f.info.H8());z.J=f.info;z.C=f.info.S;if(f.info.Y===0){if(z.S)if(!z.loader.isOffline()||z.policy.s8)z.loader.Th("slice_not_fully_processed", {buffered:z.S.info.H8(),push:f.info.H8()});else throw new g.UT("slice_not_fully_processed",z.S.info.H8(),f.info.H8());yB(z);z.vx=M}else{if(z.vx&&M&&z.vx!==M)throw z=new g.UT("lmt_mismatch",f.info.Ia,z.vx,M),z.level="WARNING",z;!f.info.S.mz()&&z.W&&(M=f.info,p=z.W.fJ,M.D="updateWithEmsg",M.Ia=p)}if(z.S){M=g.bj(z.S,f);if(!M)throw new g.UT("failed_to_merge",z.S.info.H8(),f.info.H8());z.S=M}else z.S=f;a:{f=g.tn(z.S.info.S.info);if(z.S.info.type!==3){if(!z.S.info.C)break a;z.S.info.type===6?mpI(z,K,z.S): lHg(z,z.S);z.S=null}for(;z.S;){M=z.S.Y.totalLength;if(z.nH<=0&&z.N===0){var t=z.S.Y,B=-1;p=-1;if(f){for(var v=0;v+80))break;if(e!==408125543)if(e===524531317)v=!0,b>=0&&(p=t.e1()+b,I=!0);else{if(v&&(e===160||e===163)&&(B<0&&(B=G),I))break;e===163&&(B=Math.max(0,B),p=t.e1()+b);if(e===160){B<0&&(p=B=t.e1()+ b);break}t.skip(b)}}B<0&&(p=-1)}if(B<0)break;z.nH=B;z.N=p-B}if(z.nH>M)break;z.nH?(M=Vn8(z,z.nH),M.C&&nyu(z,M),mpI(z,K,M),kY(z,M),z.nH=0):z.N&&(M=Vn8(z,z.N<0?Infinity:z.N),z.N-=M.Y.totalLength,kY(z,M))}}z.S&&z.S.info.C&&(kY(z,z.S),z.S=null)}; lHg=function(z,K){!K.info.S.mz()&&K.info.Y===0&&(g.tn(K.info.S.info)||K.info.S.info.qT())&&zad(K);if(K.info.type===1)try{nyu(z,K),J5o(z,K)}catch(p){g.sm(p);var f=Od(K.info);f.hms="1";z.loader.handleError("fmt.unparseable",f||{},1)}f=K.info.S;f.v3(K);z.G&&wrS(z.G,K);if(f.x9()&&z.policy.S)a:{z=z.loader.KH;K=K.info.clipId;f=g.Nh(f.info,z.CI);if(K){var M=gP({itag:f.itag,lmt:z.CI?0:f.lmt||0,xtags:f.xtags});if(z.b_[M])break a;z.b_[M]=K}z.QE.push(f)}}; v6S=function(z,K,f){if(z.Y.length!==0&&(f||z.Y.some(function(t){return t.info.J=aM(B)+v):K=z.getDuration()>=B.getDuration(),K=!K;K&&dpI(f)&&(K=z.Hx,hI?(v=Tn8(f),B=1/v,v=aM(z,v),K=aM(K)+B-v):K=K.getDuration()- z.getDuration(),K=1+K/f.info.duration,rq5(g.GO(f),K))}else{B=!1;z.W||(zad(f),f.S&&(z.W=f.S,B=!0,p=f.info,t=f.S.fJ,p.D="updateWithEmsg",p.Ia=t,p=f.S,p.cW&&(t=z.C.index,t.Y=!p.cW,t.T="emsg"),p=f.info.S.info,t=g.GO(f),g.tn(p)?ve(t,1701671783):p.qT()&&kb([408125543],307544935,t)));a:if((p=DH(f,z.policy.W1))&&UhI(f))v=c55(z,f),z.D+=v,p-=v,z.Y1+=p,z.T=z.policy.LW?z.T+p:NaN;else{if(z.policy.Nq){if(t=I=z.loader.zR(g.en(f),1),z.T>=0&&f.info.type!==6){if(z.policy.LW&&isNaN(z.QE)){g.Al(new g.UT("Missing duration while processing previous chunk", f.info.H8()));z.loader.isOffline()&&!z.policy.s8||s6S(z,f,t);Dc(z,"m");break a}M=I-z.T;var G=M-z.D,b=f.info.Ia,e=z.Bx?z.Bx.Ia:-1,w=z.VE,D=z.QE,y=z.policy.aP&&M>z.policy.aP,R=Math.abs(G)>10,S=Math.abs(z.T-t)<1E-7;if(Math.abs(G)>1E-4){z.Px+=1;var E=(v=z.W)==null?void 0:YqI(v);v={audio:""+ +z.ev(),sq:b.toFixed(),sliceStart:I,lastSq:e.toFixed(),lastSliceStart:w,lastSliceDuration:D,totalDrift:(M*1E3).toFixed(),segDrift:(G*1E3).toFixed(),skipRewrite:""+ +(y||R)};if(E==null?0:E.length)v.adCpn=E[0];z.loader.handleError("qoe.avsync", v);z.b_=b}y||R||S||(t=z.T);v=c55(z,f,I);p-=v;z.D=M+v}}else t=isNaN(z.T)?f.info.startTime:z.T;s6S(z,f,t)&&(z.Y1+=p,z.T=t+p,z.policy.yM&&z.Px>=z.policy.yM&&(z.Px=0,z.loader.Jd({resetForRewrites:"count"})))}z.Bx=f.info;z.QE=wN(f);f.T>=0&&(z.VE=f.T);if(B&&z.W){B=A58(z,!0);rP(f.info,B);z.S&&rP(z.S.info,B);K=g.a(K);for(v=K.next();!v.done;v=K.next())v=v.value,p=void 0,z.policy.C&&v.Ia!==((p=z.W)==null?void 0:p.fJ)||rP(v,B);(f.info.C||z.S&&z.S.info.C)&&f.info.type!==6||(z.l_=B,z.policy.Y?(K=j68(z.W),z.loader.Np(z.C, B,K)):(K=z.loader,K.KH.isManifestless&&YQI(K,B,null,!!z.C.info.video)),z.policy.lW||Xrv(z))}}J5o(z,f);z.timestampOffset&&ora(f,z.timestampOffset)}; kY=function(z,K){if(K.info.C){z.rE=K.info;if(z.W){var f=z.W,M=A58(z,!1);f=j68(f);z.loader.Np(z.C,M,f);z.l_||z.policy.lW||Xrv(z);z.l_=null}yB(z)}z.G&&wrS(z.G,K);if(M=z.YR())if(M=g.bj(M,K,z.policy.vP,z.policy.BA)){z.Y.pop();z.Y.push(M);return}z.Y.push(K)}; j68=function(z){if(z.KO()){var K=z.data["Stitched-Video-Id"]?z.data["Stitched-Video-Id"].split(",").slice(0,-1):[],f=YqI(z),M=[];if(z.data["Stitched-Video-Duration-Us"])for(var p=g.a(z.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),t=p.next();!t.done;t=p.next())M.push((Number(t.value)||0)/1E6);p=[];if(z.data["Stitched-Video-Start-Frame-Index"]){t=g.a(z.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var B=t.next();!B.done;B=t.next())p.push(Number(B.value)||0)}p=[]; if(z.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(t=g.a(z.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),B=t.next();!B.done;B=t.next())p.push((Number(B.value)||0)/1E6);z=new hZa(K,f,M,p,g.XfS(z),g.xTa(z))}else z=null;return z}; yB=function(z){z.S=null;z.nH=-1;z.N=0;z.W=null;z.eV=NaN;z.Y1=0;z.l_=null}; Dc=function(z,K){K={rst4disc:K,cd:z.D.toFixed(3),sq:z.Bx?z.Bx.Ia:-1};z.T=NaN;z.D=0;z.b_=-1;z.Bx=null;z.VE=NaN;z.QE=NaN;z.Xc=null;z.loader.Th("mdstm",K)}; J5o=function(z,K){if(z.isDrm()){if(K.info.S.info.qT()){var f=new Gk(g.GO(K));if(eK(f,[408125543,374648427,174,28032,25152,20533,18402])){var M=yM(f,!0);f=M!==16?null:SK(f,M)}else f=null;M="webm"}else K.info.N=y5W(g.GO(K)),f=kO8(K.info.N),M="cenc";f&&f.length&&(f=new vz(f,M),z.policy.Jx&&g.tn(K.info.S.info)&&(M=zV8(g.GO(K)))&&(f.Y=M),f.qT=K.info.S.info.qT(),K.S&&K.S.cryptoPeriodIndex&&(f.cryptoPeriodIndex=K.S.cryptoPeriodIndex),K.S&&K.S.Y&&(f.S=K.S.Y),z.loader.UI(f))}}; Xrv=function(z){var K=z.W,f=AqT(K);f&&(f.startSecs+=z.eV,z.loader.jw(z.C,f,K.fJ,K.KO()))}; A58=function(z,K){var f,M=z.W;if(f=AqT(M))f.startSecs+=z.eV;return new AH(M.fJ,z.eV,K?M.fW:z.Y1,M.ingestionTime,"sq/"+M.fJ,void 0,void 0,K,f)}; s6S=function(z,K,f){if(!ZZa(K,f))return K=Od(K.info),K.smst="1",z.loader.handleError("fmt.unparseable",K||{},1),!1;isNaN(z.eV)&&(z.eV=f);return!0}; c55=function(z,K,f){var M=0;if(K.info.S.info.qT()&&!UhI(K))return 0;if(z.Hx&&!z.ev()){var p=0;f&&g.tn(K.info.S.info)?p=f-z.T:K.info.S.info.qT()&&(p=z.D);var t=K.info.Ia;f=DH(K,z.policy.W1);var B=z.Hx;var v=B.b_;B=B.D;var I=Math.abs(B-p)>.02;if((t===v||t>v&&t>z.b_)&&I){M=Math.max(.95,Math.min(1.05,(f-(B-p))/f));if(g.tn(K.info.S.info))rq5(g.GO(K),M);else if(K.info.S.info.qT()&&(t=p-B,!g.tn(K.info.S.info)&&(K.info.S.info.qT(),M=new Gk(g.GO(K)),v=K.C?M:new Gk(new DataView(K.info.S.S.buffer)),DH(K,!0)))){var G= t*1E3,b=LN(v);v=M.pos;M.pos=0;if(M.S.getUint8(M.pos)===160||Ed(M))if(D1(M,160))if(yM(M,!0),D1(M,155)){if(t=M.pos,I=yM(M,!0),M.pos=t,G=G*1E9/b,b=hL(M),G=b+Math.max(-b*.7,Math.min(b,G)),G=Math.sign(G)*Math.floor(Math.abs(G)),!(Math.ceil(Math.log(G)/Math.log(2)/8)>I)){M.pos=t+1;for(t=I-1;t>=0;t--)M.S.setUint8(M.pos+t,G&255),G>>>=8;M.pos=v}}else M.pos=v;else M.pos=v;else M.pos=v}M=DH(K,z.policy.W1);M=f-M}M&&K.info.S.info.qT()&&z.loader.Th("webmDurationAdjustment",{durationAdjustment:M,videoDrift:p+M, audioDrift:B})}return M}; dpI=function(z){return z.info.S.mz()&&z.info.Ia===z.info.S.index.Mv()}; aM=function(z,K){K=(K=K===void 0?0:K)?Math.round(z.timestampOffset*K)/K:z.timestampOffset;z.C.J&&K&&(K+=z.C.J.S);return K+z.getDuration()}; xpu=function(z,K){K<0||(z.Y.forEach(function(f){ora(f,K)}),z.timestampOffset=K)}; dK=function(z,K,f,M,p){K0.call(this,f,p);var t=this;this.policy=z;this.formatId=K;this.yn=M;this.lastError=null;this.Xo=function(){t.CH()||(t.yn.iP.has(t.formatId)?(t.isComplete()||t.S.start(),qL(t.yn,t.formatId)&&t.uc(2),t.yn.rI(t.formatId)&&(etS(t.yn,t.formatId)?t.Xr(4):(t.lastError="net.closed",t.Xr(5)))):(t.lastError="player.exception",t.Xr(5)))}; this.S=new g.Kl(function(){t.isComplete()||(t.lastError="net.timeout",t.Xr(5))},1E3); this.S.start();I1d(this.yn,this.formatId,this.Xo);g.mZ(this.Xo)}; RM=function(z,K,f,M){g.J.call(this);var p=this;this.loader=z;this.policy=K;this.S=f;this.timing=M;this.logger=new g.Np("dash");this.T=[];this.Hx=[];this.Y=this.P1=null;this.Xc=!1;this.vx=this.Px=0;this.W=-1;this.nH=!1;this.eV=-1;this.Bx=null;this.l_=NaN;this.Y1=[];this.dO={NO:function(){return p.J}, pXE:function(){return p.T}, X9V:function(){return p.D}}; this.J=new Hxa(z,K,f);this.policy.S&&(this.D=new gK(this.J,this.loader.getManifest(),this.policy,function(t){p.policy.gx&&p.Th("buftl",t)})); this.policy.nI&&(this.N=new zV(this));this.yE=f.info.yE;this.G=this.policy.l_?!1:f.At();this.isManifestless=f.At();this.C=this.G;g.d(this,this.Bx)}; Sw=function(z,K,f){f=f===void 0?!1:f;K&&hI&&xpu(z.J,K.dj());if(!f){var M;(M=z.D)==null||pNW(M)}z.P1=K;(K=z.D)!=null&&(K.P1=z.P1)}; uU=function(z){var K=z.P1&&z.P1.a7();if(z.policy.yL){if((z=z.D)==null)z=void 0;else{var f;z=(f=z.T)==null?void 0:f.info}return z||null}return K}; FjI=function(z){for(var K={},f=0;f4&&z.Hx.shift()}; Oxo=function(z,K){if(K.PE()){var f=K.Op();f=g.a(f);for(var M=f.next();!M.done;M=f.next())M=M.value,z.policy.T&&K instanceof dK&&z.Th("omblss",{s:M.info.H8()}),Ey(z,K.info.tL,M,K.EC())}}; Ey=function(z,K,f,M){M=M===void 0?0:M;isNaN(z.l_)||(z.Th("aswm",{sq:K[0].Ia,id:K[0].S.info.itag,xtag:K[0].S.info.S,ep:Date.now()-z.l_}),z.l_=NaN);switch(f.info.type){case 1:case 2:r58(z,f);break;case 4:var p=f.info.S,t=p.vM(f),B;((B=z.Y)==null?0:B.type===4)&&PhI(f.info,z.Y)&&(z.Y=p.Ws(z.Y).pop());f=g.a(t);for(p=f.next();!p.done;p=f.next())Ey(z,K,p.value,M);break;case 3:f.info.S.info.video?(p=z.timing,p.eV||(p.eV=(0,g.X)(),g.iq("fvb_r",p.eV,p.S))):(p=z.timing,p.W||(p.W=(0,g.X)(),g.iq("fab_r",p.W,p.S))); Wj5(z.J,K,f,M);z.policy.S&&ZxI(z);break;case 6:Wj5(z.J,K,f,M),z.Y=f.info}}; r58=function(z,K){if(K.info.type===1)if(K.info.S.info.video){var f=z.timing;f.vx||(f.vx=(0,g.X)(),g.iq("vis_r",f.vx,f.S))}else f=z.timing,f.D||(f.D=(0,g.X)(),g.iq("ais_r",f.D,f.S));lHg(z.J,K);z=z.loader;z.videoTrack.S.x9()&&z.audioTrack.S.x9()&&z.policy.S&&!z.KH.CI&&(K=z.audioTrack.getDuration(),f=z.videoTrack.getDuration(),Math.abs(K-f)>1&&z.Th("trBug",{af:""+g.Nh(z.audioTrack.S.info,!1),vf:""+g.Nh(z.videoTrack.S.info,!1),a:""+K,v:""+f}))}; O7=function(z){return Q6S(z.J)}; ZxI=function(z){z.T.length?z.Y=g.eS(g.eS(z.T).info.tL):z.J.Y.length?z.Y=z.J.YR().info:z.Y=uU(z)}; Pz=function(z,K){var f={z5:[],FG:[]},M;if((z=z.D)==null)z=void 0;else{MAp(z,z.z5,"og");K2q(z,K);MAp(z,z.z5,"trim");var p=fJq(z);K=p.z5;p=p.BE;for(var t=[],B=0;B0){var w=yr(e,I);w>=0&&(b=(e.end(w)-I+.1)*1E3)}t.push({formatId:g.Nh(v.info.S.info,z.KH.CI), u9:v.info.u9,sequenceNumber:v.info.Ia+z.J,Q$:G,YH:v.info.T,Rq:b})}z={z5:K,FG:t}}return(M=z)!=null?M:f}; A1=function(z,K,f){f=f===void 0?!1:f;if(z.P1){var M=z.P1.NL(),p=hn(M,K),t=NaN,B=uU(z);B&&(t=hn(M,B.S.index.getStartTime(B.Ia)));if(p===t&&z.Y&&z.Y.T&&oyg(Hz(z),0))return K}z=CjS(z,K,f);return z>=0?z:NaN}; YM=function(z,K,f){z.S.x9();var M=CjS(z,K);if(M>=0)return M;var p;(p=z.D)==null||$oW(p,K,f);M=Math;p=M.min;var t=z.J;if(t.G)if(t=t.G,t.NT&&t.NT.type===3)t=t.NT.startTime;else if(t.T>0){var B=t.S.index;B=g.l_(B.offsets.subarray(0,B.count),t.T*t.chunkSize);t=t.S.index.getStartTime(B>=0?B:Math.max(0,-B-2))}else t=0;else t=Infinity;K=p.call(M,K,t);z.Y=z.policy.l_?null:z.S.WD(K).tL[0];QB(z)&&(z.policy.FR&&(f==null?void 0:f.seekSource)===60||z.P1&&z.P1.abort(),z.policy.u2&&(f=z.D)!=null&&(f.T=void 0)); z.vx=0;return z.Y?z.Y.startTime:K}; BpW=function(z){z.G=!0;z.C=!0;z.W=-1;YM(z,Infinity)}; q4=function(z){for(var K=0,f=g.a(z.T),M=f.next();!M.done;M=f.next())K+=QC8(M.value.info);return K+=gyT(z.J)}; lU=function(z,K){K=K===void 0?!1:K;var f=z.loader.getCurrentTime(),M=z.J.YR(),p=(M==null?void 0:M.info.W)||0;z.policy.t9&&(M==null?0:M.info.S.At())&&!M.info.C&&(p=M.info.J);if(!z.P1)return z.policy.S&&K&&!isNaN(f)&&M?p-f:0;var t=uU(z);if(t&&mR(t))return t.W;var B=z.P1.NL(!0);if(K&&M)return t=0,z.policy.S&&(t=Sl(B,p+.02)),t+p-f;p=Sl(B,f);z.policy.FN&&t&&(K=yr(B,f),B=yr(B,t.J-.02),K===B&&(f=t.W-f,z.policy.T&&f>p+.02&&z.Th("abh",{bh:p,bhtls:f}),p=Math.max(p,f)));return p}; TNv=function(z){var K=uU(z);return K?K.W-z.loader.getCurrentTime():0}; Up5=function(z,K){if(z.T.length){if(z.T[0].info.tL[0].startTime<=K)return;s7(z)}for(var f=z.J,M=f.Y.length-1;M>=0;M--)f.Y[M].info.startTime>K&&f.Y.pop();ZxI(z);z.Y&&K=0;B--){var v=p.Y[B];v.info.Ia>=K&&(p.Y.pop(),p.T-=DH(v,p.policy.W1),t=v.info)}t&&(p.J=p.Y.length>0?p.Y[p.Y.length-1].info:p.Xc,p.Y.length!==0||p.J||Dc(p,"r"));p.loader.Th("mdstm",{rollbk:1,itag:t?t.S.info.itag:"",popped:t?t.Ia:-1,sq:K,lastslc:p.J?p.J.Ia:-1,lastfraget:p.T.toFixed(3)});if(z.policy.S)return z.Y=null,!0;M>f?YM(z,M):z.Y=z.S.M0(K-1,!1).tL[0]}catch(I){return K=iB(I),K.details.reason="rollbkerr", z.loader.handleError(K.errorCode,K.details,K.severity),!1}return!0}; Wz=function(z,K){var f;for(f=0;f0?f||K.Ia>=z.eV:f}; JI=function(z){var K;return QB(z)||mR((K=z.J.YR())==null?void 0:K.info)}; Hz=function(z){var K=[],f=uU(z);f&&K.push(f);K=g.u_(K,z.J.R3());f=g.a(z.T);for(var M=f.next();!M.done;M=f.next()){M=M.value;for(var p=g.a(M.info.tL),t=p.next(),B={};!t.done;B={VY:void 0},t=p.next())B.VY=t.value,M.i$&&(K=g.ds(K,function(v){return function(I){return!PhI(I,v.VY)}}(B))),(Xk(B.VY)||B.VY.type===4)&&K.push(B.VY)}z.Y&&!yna(z.Y,g.eS(K),z.Y.S.mz())&&K.push(z.Y); return K}; oyg=function(z,K){if(!z.length)return!1;for(K+=1;K=K){K=t;break a}}K=p}return K<0?NaN:oyg(z,f?K:0)?z[K].startTime:NaN}; gG=function(z){return!(!z.Y||z.Y.S===z.S)}; zMS=function(z){return gG(z)&&z.S.x9()&&z.Y.S.info.yEK&&z.W1080&&!z.EO&&(z.vx=36700160,z.rE=5242880,z.Px=Math.max(4194304,z.Px),z.EO=!0);K.video.qualityOrdinal>2160&&!z.zB&&(z.vx=104857600,z.yE=13107200,z.zB=!0);g.uY(z.pH.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?K.isEncrypted()&&g.CJ()&&g.ZQ("samsung")&&(g.ZQ("kant")||g.ZQ("muse"))&&(z.yE=g.uY(z.pH.experiments,"html5_samsung_kant_limit_max_bitrate")):K.isEncrypted()&&g.CJ()&&g.ZQ("kant")&&(z.yE=1310720);z.Sm!==0&&K.isEncrypted()&& (z.yE=z.Sm);z.Ar!==0&&K.isEncrypted()&&f&&(z.yE=z.Ar);K.yE&&(z.mw=Math.max(z.r8,Math.min(z.Px,5*K.yE)))}; yv=function(z){return z.S&&z.zc}; AI=function(z){return z.S&&z.QJ&&z.playbackStartPolicy}; jw=function(z,K,f,M){z.QJ&&(z.playbackStartPolicy=K,z.mW=f,z.WY=M)}; sy=function(z,K,f){f=f===void 0?0:f;return g.uY(z.pH.experiments,K)||f}; eMa=function(z){var K=z===void 0?{}:z;z=K.E8;var f=K.l9;var M=K.ma;var p=K.Mv;K=K.YF;this.E8=z;this.l9=f;this.ma=M;this.Mv=p;this.YF=K}; aJu=function(z,K){if(K<0)return!0;var f=z.Mv();return K0)return 2;if(K<0)return 1;f=z.Mv();return K(0,g.X)()?0:1}; XF=function(z,K,f,M,p,t,B,v,I,G,b,e,w,D){D=D===void 0?null:D;g.J.call(this);var y=this;this.loader=z;this.policy=K;this.videoTrack=f;this.audioTrack=M;this.J=p;this.S=t;this.timing=B;this.C=v;this.schedule=I;this.KH=G;this.T=b;this.Y1=e;this.Fz=w;this.xx=D;this.l_=!1;this.GZ="";this.GD=null;this.Er=NaN;this.nH=!1;this.Y=null;this.mM=this.N=NaN;this.e4=this.W=0;this.logger=new g.Np("dash");this.dO={Yw:function(R,S){return y.Yw(R,S)}}; this.policy.qb>0&&(this.GZ=g.q1(this.policy.qb));this.policy.tJ&&(this.D=new YY(this.loader,this.policy,this.schedule),g.d(this,this.D))}; hM8=function(z,K,f){var M=K.Y?K.Y.S.eE:K.S.eE;var p=z.J,t;(t=!z.policy.C2)||(t=gp(M.S)===gp(M.Y));t?M=!1:(p=mA(p,gp(M.Y)),t=6E4*Math.pow(p.J,1.6),(0,g.X)()=p.J?(p.Th("sdai",{haltrq:t+1,est:p.J}),M=!1):M=p.Y!==2;if(!M||!JL(K.Y?K.Y.S.eE:K.S.eE,z.policy,z.J,z.loader.mC())||z.loader.isSuspended&&(!qw(z.schedule)||z.loader.C0))return!1;if(z.policy.J&&cG>=5)return g.$4(z.loader.Wy),!1;if(z.KH.isManifestless){if(K.T.length>0&&K.Y&&K.Y.Ia===-1||K.T.length>=z.policy.fE||!z.policy.cY&&K.T.length>0&&!z.policy.G.l9)return!1;if(K.G)return!z.KH.isLive|| !isNaN(z.Er)}if(pZu(K))return z.logger.debug("Pending request with server-selectable format found"),!1;if(!K.Y){if(!K.S.x9())return!1;YM(K,z.loader.getCurrentTime())}if(O7(K)&&(K.YR()!==O7(K)||z.loader.isSuspended))return!1;p=(M=z.policy.Cl)&&!K.T.length&&lU(K,!0)=z.policy.Sq)return!1;M=K.Y;if(!M)return!0;M.type===4&&M.S.x9()&&(K.Y=g.eS(M.S.Ws(M)),M= K.Y);if(!M.cW()&&!M.S.VH(M))return!1;t=z.KH.Ca||z.KH.J;if(z.KH.isManifestless&&t){t=K.S.index.Mv();var B=f.S.index.Mv();t=Math.min(t,B);if(K.S.index.wB()>0&&t>0&&M.Ia>=t)return K.eV=t,f.eV=t,!1}if(M.S.info.audio&&M.type===4||M.cW())return!1;t=!K.C&&!f.C;if(p=!p)p=M.W,p=!!(f.Y&&!mR(f.Y)&&f.Y.Wa5a(z,K)?(a5a(z,K),!1):(z=K.P1)&&z.isLocked()?!1:!0}; a5a=function(z,K){var f=z.S;f=f.S?f.S.A$:null;if(z.policy.Hx&&f)return f.startSecs+f.mP+15;K=j9(z.loader,K);z.policy.SE>0&&(f=((0,g.X)()-z.loader.hC)/1E3,K=Math.min(K,z.policy.SE+z.policy.w$*f));K=z.loader.getCurrentTime()+K;return z.policy.nk&&(f=RMo(z.loader)+z.policy.nk,f=0||K.eE.TW("defrag")==="1"||K.eE.TW("otf")==="1"){K=null;break a}p=sd(0,4096)}p=new Z1([new jK(5,M.S,p,"createProbeRequestInfo"+M.D,M.Ia)],K.Y);p.Mr=f;p.S=K.S;K=p}K&&FF(z,K)}}; FF=function(z,K){z.loader.R$(K);var f=QC8(K),M=z.loader.qn();f={hB:z.schedule,d5:f,uX:Zgp(z.C,f),jm:Yb(K.tL[0]),M8:iH(K.eE.S),K0:z.policy.T,mN:function(B,v){z.loader.FO(B,v)}}; if(z.schedule.Y.W){var p,t;f.PC=(((p=z.videoTrack.S)==null?void 0:p.info.yE)||0)+(((t=z.audioTrack.S)==null?void 0:t.info.yE)||0)}z.GD&&(f.Ia=K.tL[0].Ia,f.Er=K.Er,f.GD=z.GD);M={fk:q35(K,z.loader.getCurrentTime()),x6:z.policy.Gw&&CN(K)&&K.tL[0].S.info.video?NNu(z.T):void 0,hq:z.policy.Hx,poToken:z.loader.XP(),C9:z.loader.K4(),GZ:z.GZ,mM:isNaN(z.mM)?null:z.mM,xx:z.xx,Fz:z.Fz,e4:z.e4,aj:M};return new c1(z.policy,K,f,z.J,function(B,v){try{a:{var I=B.info.tL[0].S,G=I.info.video?z.videoTrack:z.audioTrack; if(!(B.state>=2)||B.isComplete()||B.GY()||!(!z.loader.u_||z.loader.isSuspended||lU(G)>3)){var b=ywS(B,z.policy,z.J);b===1&&(z.nH=!0);ufp(z,B,b);if(B.isComplete()||B.CH()&&v<3){if(z.policy.T){var e=B.timing.pD();e.rst=B.state;e.strm=B.xhr.O9();e.cncl=B.xhr&&B.IF.J?1:0;z.loader.Th("rqs",e)}B.Xh&&z.loader.Th("sbwe3",{},!0)}if(!z.CH()&&B.state>=2){nb8(z.timing,B,I);var w=z.loader;z.mM&&B.yl&&w&&(z.mM=NaN,z.loader.tY(B.yl),z.loader.Ou(),z.loader.Th("cabrUtcSeek",{mediaTimeSeconds:B.yl}));B.Cf&&z.mM&&B.Cf&& !B.Cf.action&&(z.loader.RK(z.mM),z.mM=NaN,z.loader.Th("cabrUtcSeekFallback",{targetUtcTimeSeconds:z.mM}));B.Z7&&z.loader.d6(B.Z7);z.policy.E0&&(z.e4=B.e4);if(B.state===3){Wz(G,B);CN(B.info)&&Oy(z,G,I,!0);if(z.Y){var D=B.info.mU();D&&z.Y.hU(B.info.tL[0].Ia,I.info.id,D)}z.loader.x8()}else if(B.isComplete()&&B.info.tL[0].type===5){if(B.state!==4)B.vC()&&z.loader.handleError(B.Ko(),B.rU());else{var y=(B.info.tL[0].S.info.video?z.videoTrack:z.audioTrack).T[0]||null;y&&y instanceof c1&&y.GY()&&y.k$()}B.dispose()}else{B.vC()|| LF8(z,B);var R;((R=B.ey)==null?0:R.itagDenylist)&&z.loader.rA(B.ey.itagDenylist);if(B.state===4)Evv(z,B),z.S&&d6a(z.S,B.info,z.Y);else if(z.policy.t1&&B.PE()&&!B.isComplete()&&!Evv(z,B)&&!B.vC())break a;B.vC()&&(PIv(z,B),isNaN(z.mM)||(z.loader.RK(z.mM),z.mM=NaN));z.policy.LI&&!B.isComplete()?HOa(z.loader):z.loader.x8();var S=k0I(B,z.policy,z.J);ufp(z,B,S)}}}}}catch(E){v=z.l_?1:0,z.l_=!0,B=gI(v),v=iB(E,v),z.loader.handleError(v.errorCode,v.details,v.severity),B||z.loader.W7()}},M)}; LF8=function(z,K){if(K.N7&&K.state>=2&&K.state!==3){var f=K.xhr.getResponseHeader("X-Response-Itag");if(f){z.logger.debug(function(){return"Applying streamer-selected format "+f}); var M=BNo(z.T,f),p=K.info.T;p&&(p-=M.y8(),M.T=!0,K.info.tL[0].S.T=!1,BPS(K,M.JO(p)),rG(z.loader,z.videoTrack,M),to5(z.videoTrack,M),z.loader.iX(M.info.video.quality),(p=K.EC())&&M.info.lastModified&&M.info.lastModified!==+p&&Wz(z.videoTrack,K))}else K.N7=!1}}; PIv=function(z,K){var f=K.info.tL[0].S,M=K.Ko();if(iH(f.eE.S)){var p=g.vi(K.qV(),3);z.loader.Th("dldbrerr",{em:p||"none"})}p=K.info.tL[0].Ia;var t=d_(z.S,K.info.tL[0].J,p);M==="net.badstatus"&&(z.W+=1);if(K.canRetry()&&QQd(z.loader)){if(!(K.info.eE.T>=z.policy.lA&&z.Y&&K.info.isDecorated()&&M==="net.badstatus"&&z.Y.EA(t,p))){p=(f.info.video&&f.eE.T>1||K.Pm===410||K.Pm===500||K.Pm===503)&&!(xC(z.T.C).size>0)&&!iH(f.eE.S);t=K.rU();var B=f.info.video?z.videoTrack:z.audioTrack;p&&(t.stun="1");z.loader.handleError(M, t);z.CH()||(p&&(z.logger.debug(function(){return"Stunning format "+f.info.id}),C0(z.T,f)),Wz(B,K),z.loader.x8())}}else B=1,z.Y&&K.info.isDecorated()&&M==="net.badstatus"&&z.Y.EA(t,p)&&(B=0),z.KH.isLive&&K.Ko()==="net.badstatus"&&z.W<=z.policy.q8*2?(WfS(z.KH),z.KH.Ca||z.KH.isPremiere?Fx(z.loader,0,{v8:"badStatusWorkaround"}):z.KH.J?Fx(z.loader,z.KH.nH,{v8:"badStatusWorkaround", zR:!0}):Zc(z.loader)):z.loader.handleError(M,K.rU(),B)}; Evv=function(z,K){if(z.policy.useUmp&&K.CH())return!1;try{var f=K.info.tL[0].S,M=f.info.video?z.videoTrack:z.audioTrack;if(z.KH.isManifestless&&M){z.W=0;M.G&&(K.CH(),K.isComplete()||K.PE(),M.G=!1);K.OE()&&z.loader.VP.uj(1,K.OE());var p=K.wB(),t=K.hg();dN(z.KH,p,t)}if(K.info.jm()&&!oa(K.info))for(var B=g.a(K.Op()),v=B.next();!v.done;v=B.next())r58(M,v.value);for(z.loader.getCurrentTime();M.T.length&&M.T[0].state===4;){var I=M.T.shift();Oxo(M,I);M.Px=I.pn()}M.T.length&&Oxo(M,M.T[0]);var G=!!O7(M);G&& K instanceof dK&&(f.info.ev()?Prd(z.timing):EbS(z.timing));return G}catch(b){K=K.rU();K.origin="hrhs";a:{z=z.loader;f=b;if(f instanceof Error){K.msg||(K.msg=""+f.message);K.name||(K.name=""+f.name);if(f instanceof g.UT&&f.args)for(M=g.a(Object.entries(f.args)),p=M.next();!p.done;p=M.next())t=g.a(p.value),p=t.next().value,t=t.next().value,K["arg"+p]=""+t;g.Al(f);if(f.level==="WARNING"){z.AL.Jd(K);break a}}z.handleError("fmt.unplayable",K,1)}return!1}}; qi8=function(z){var K=z.videoTrack.S.index;z.GD=new eMa({E8:z.policy.E8,l9:z.policy.G.l9,ma:K.bS(),Mv:function(){return K.Mv()}, YF:function(){return K.YF()}})}; Oy=function(z,K,f,M){if(!(f.x9()||f.Et()||f.T||!JL(f.eE,z.policy,z.J,z.loader.mC())||f.info.Ra==="f"||z.policy.S)){if(M){M=z.C;var p=f.info;M=o$q(M,p.video?M.policy.UV:M.policy.LY,p.yE)}else M=0;M=f.JO(M);z=FF(z,M);oa(M)&&LM(K,z);f.T=!0}}; oM=function(z,K,f,M,p,t,B,v){g.J.call(this);var I=this;this.loader=z;this.Bh=K;this.videoTrack=f;this.audioTrack=M;this.KH=p;this.N=t;this.isAudioOnly=B;this.D=v;this.Y=ZY;this.nH=!1;this.logger=new g.Np("sabr");this.G=this.l_=this.Y1=!1;this.videoInfos=this.W=this.N.videoInfos;this.T=this.Hx=this.N.S;this.S=new YC(K,t,function(G,b){I.loader.Th(G,b)}); this.isAudioOnly&&mwa(this,this.KH.S["0"])}; l5q=function(z,K){var f=[];K=g.a(K);for(var M=K.next();!M.done;M=K.next())f.push(g.Nh(M.value,z.KH.CI));return f}; mwa=function(z,K,f){K!==z.J&&(z.J&&(z.nH=!0),z.J=K,z.Lc(K,z.videoTrack,f))}; Jw8=function(z,K){z.logger.debug("setConstraint: "+RR(K));yv(z.Bh)&&(z.l_=K.reason==="m"||K.reason==="l"?!0:!1);K.reason==="m"?K.isLocked()&&VoS(z,K.S):nvS(z,K)?WFS(z,K.Y,K.S):z.videoInfos=z.W;z.Y=K}; nvS=function(z,K){return z.Bh.hx&&K.reason==="b"||z.Bh.GW&&K.reason==="l"||z.Bh.BY?!1:z.Bh.cP?!0:K.reason==="l"||K.reason==="b"||K.reason==="o"}; gvu=function(z,K){return K.isLocked()&&z.S.Y||z.Y===void 0?!1:K.equals(z.Y)}; iOT=function(z,K){var f,M=(f=z.J)==null?void 0:f.info.video.qualityOrdinal;return z.nH?!0:z.J?K!==M?!0:!z.S.Y||z.Bh.Fa&&z.S.S===z.J.info.itag?!1:!0:!1}; VoS=function(z,K){var f=z.S.S;if(f){z.videoInfos=z.W;var M=g.yQ(z.videoInfos,function(p){return p.id===f}); M&&M.video.qualityOrdinal===K?z.videoInfos=[M]:(M=z.videoInfos.map(function(p){return p.id}),z.loader.Th("sabrpf",{pfid:""+f, vfids:""+M.join(".")}),WFS(z,K,K),F1(z.S,""))}else WFS(z,K,K)}; WFS=function(z,K,f){z.videoInfos=z.W;z.videoInfos=g.ds(z.videoInfos,function(M){return M.video.qualityOrdinal>=K&&M.video.qualityOrdinal<=f})}; dwW=function(z,K,f){if(z.D){var M=g.ds(z.T,function(p){return p.id===z.D}); return CM(M,f).includes(K)}M=g.ds(z.T,function(p){var t;return!((t=p.b8)==null||!t.isDefault)}); return M.length>0?CM(M,f).includes(K):CM(z.T,f).includes(K)}; CM=function(z,K){return z.map(function(f){return gP(g.Nh(f,K))})}; cw5=function(z){var K;if((K=z.Y)==null?0:K.isLocked())return z.videoInfos;var f=xC(z.S);K=g.ds(z.videoInfos,function(M){return M.yE>z.Bh.yE?!1:!f.has(M.id)}); Ydu(z.S)&&(K=g.ds(K,function(M){return M.video.width<=854&&M.video.height<=480})); return K}; Awq=function(z,K,f){var M=z.KH,p=z.AL.getVideoData(),t=z.Ny,B=kC({pH:p.Z(),AL:z.AL,aQ:z.aQ,Bh:z.Bh,yQ:z.yQ,qm:z.qm,ZW:z.ZW,TQ:z.TQ,i4:z.i4,isPrefetch:z.isPrefetch,nS:z.nS,sabrLicenseConstraint:p.sabrLicenseConstraint,Rg:z.Rg,OO:z.OO,g4:z.g4,fT:z.fT,KP:!!t,authorizedFormats:p.authorizedFormats}),v=hp(p,z.aj,z.nextRequestPolicy,z.OC,z.IG,z.HQ,z.M3);f&&K&&(f=v.L9?v.L9.map(function(e){return e.type}):[],K("sabr",{stmctxt:f.join("_"), unsntctxt:v.oM?v.oM.join("_"):""}));K=z.wN;f=z.yY;if(f===void 0&&K===void 0){var I;f=sQp(M.CI,(I=z.cB)==null?void 0:I.video);var G;K=sQp(M.CI,(G=z.cB)==null?void 0:G.audio)}if(p.xx)var b=p.xx;p={eq:B,FG:z.FG,wN:K,yY:f,Ny:t,videoPlaybackUstreamerConfig:b,tQ:v};z.X_&&(p.X_=z.X_);p.z5=z.z5;p.Ry=M.QE;return p}; sQp=function(z,K){return K?[g.Nh(K.info,z)]:[]}; TV=function(z,K,f){var M=this;this.requestType=z;this.eE=K;this.jE=f;this.Y=null;this.dO={tqH:function(){var p;return(p=M.data)==null?void 0:p.isPrefetch}, IG:function(){var p;return(p=M.data)==null?void 0:p.IG}}}; Rtg=function(z,K,f){K=nN(z.eE,jQo(z,K,f),K);z.O_()&&K.set("probe","1");return K}; jQo=function(z,K,f){z.Mr===void 0&&(z.Mr=z.eE.Mr(K,f));return z.Mr}; YiI=function(z){var K,f;return((K=z.S)==null?void 0:(f=K.eq)==null?void 0:f.wg)||0}; XZ8=function(z){var K,f;return!!((K=z.S)==null?0:(f=K.eq)==null?0:f.Rg)}; xwS=function(z){var K={},f=[],M=[];if(!z.data)return K;for(var p=0;p=0&&(K in z.S||(z.S[K]=new OOW),z.S[K].un(f,M))}; T7o=function(z,K,f,M,p){var t=(0,g.X)(),B=p?p(K):void 0,v;p=(v=B==null?void 0:B.dK)!=null?v:1;if(p!==0){var I;v=(I=B==null?void 0:B.profile)!=null?I:f;CI5(z,v,t-M,p)}return K}; Uwo=function(z,K,f,M,p){if(K&&typeof K==="object"){var t=function(B){return T7o(z,B,f,M,p)}; if(k$(K))return K.then(t);if(ym(K))return uV(K,t)}return T7o(z,K,f,M,p)}; zNo=function(){}; z2=function(z,K){this.S=z;this.cipher=this.S.exports.AES128CTRCipher_create(K.byteOffset)}; Kro=function(z){return function(K){return{profile:z,dK:Math.ceil(K.byteLength/16)}}}; Ko=function(z,K){this.key=z;this.subtleCrypto=K;this.S=!1}; $Rd=function(z){var K=globalThis.crypto.subtle;K=K===void 0?window.crypto.subtle:K;return uV(Re(function(){return K.importKey("raw",z,{name:"AES-CTR"},!1,["encrypt"]).catch(function(f){return Promise.reject(f.name+": "+f.message)})}),function(f){return new Ko(f,K)})}; $e=function(z){this.S=!1;this.T=new Q7(z)}; fo=function(z,K){this.T=z;K=z.w9(K);this.S=new z2(z,K);z.free(K.byteOffset)}; fYg=function(z){g.Al("wasm encryptor failed: "+z);throw z;}; M7=function(z,K,f){var M=this;this.key=z;this.C=this.W=!1;this.H2=32768;this.wW=131072;K==null||uV(K,function(p){M.S=new fo(p,M.key);M.C=p.S}); if(f==null?0:f.wW)this.wW=f.wW;if(f==null?0:f.H2)this.H2=f.H2}; M1o=function(z,K,f){z.T||(z.T=new $e(z.key));return Lg(z.T.encrypt(K,f),fYg)}; pGT=function(z,K,f){if(!z.J){if(!("crypto"in globalThis&&"subtle"in globalThis.crypto))return ae("native encryptor unavailable");z.J=$Rd(z.key)}return Lg(uV(z.J,function(M){return M.encrypt(K,f)}),fYg)}; po=function(z,K,f){this.S=z;this.J=K;this.C=f;this.T=!1;this.iv=(0,g.aS)(Q9(16))}; t1q=function(z){z.Y||(z.Y=new M7(z.S.S,z.J,z.C));return z.Y}; BAq=function(z,K){var f;return g.n(function(M){(0,g.X)();f=fMT(z.S);return M.return(f.encrypt(K,z.iv))})}; NAS=function(z,K){var f;return g.n(function(M){(0,g.X)();var p=z.S;p.J||(p.J=new t3v(p.T));f=p.J;return M.return(vT5(f,K,z.iv))})}; vtv=function(z,K,f){var M;return g.n(function(p){(0,g.X)();M=fMT(z.S);return p.return(M.decrypt(K,f))})}; tr=function(z){g.J.call(this);var K=this;this.SV=z;this.S=new Map;this.J=[];this.Y=!V7();this.N=g.uY(this.SV.experiments,"html5_onesie_prewarm_interval_ms");this.D=new g.Kl(this.G,this.N,this);this.W=-1;this.dO={y1c:function(){return K.S}, lsH:function(){return K.C}, a7H:function(){return IYd}}; g.d(this,this.D);VAS(this,g.AV("yt-player-bandaid-host"));this.C=this.load();this.N&&this.C.then(function(){K.G()})}; VAS=function(z,K){var f=K==null?void 0:K.primary;z.T(0,f);f=f?Gt8(f):void 0;z.T(2,f);z.T(1,K==null?void 0:K.secondary)}; B0=function(z,K){return new g.WN("https://"+K+z.SV.L7.baseUrl)}; baS=function(z,K){z="https://"+gp(K.location)+"/initplayback?c="+g.tw(z.SV)+"&owc=1";mI(z,"pw",function(f){f.ht=K.S})}; N7=function(z,K,f,M){mI("https://"+K+"/videoplayback?probe=1",f,function(p){!M.B("html5_onesie_host_racing")||M.videoData.isLivePlayback||M.B("html5_onesie_probe_ec_hosts")||M.QQ||M.Gq();z.J.push(p)},function(p){z.J.push(p.details)})}; Gt8=function(z){return z.replace(/(\d+)---/g,function(K,f){K=Number(f);return(K===1?2:K-1)+"---"})}; eNW=function(z,K){var f,M,p,t,B,v,I,G;return g.n(function(b){if(b.Y==1){f=B0(z,"redirector.googlevideo.com");f.set("alr","yes");f.set("id",""+Math.round(Math.random()*1E5));if(K===1||K===2)f.set("cmo=sensitive_content","yes"),f.set("sc","yes");K===2&&f.set("cmo=td","c.youtube.com");M={format:"RAW",timeout:5E3};return g.l(b,Ja(f.Ic(),M),2)}p=b.S;if(p.xhr.status!==200||!p.xhr.responseText)return b.return(Promise.reject(new g.UT("b204258371_no_host",f.Ic(),p.xhr.status)));t=new g.WN(p.xhr.responseText); B=gp(t);v=t.get("ms");I=B0(z,B);G=t.get("mm");I.set("ms",v);I.set("mm",G);return B&&lJS(B)?K!==2||NL(B)?b.return(I):b.return(Promise.reject(new g.UT("b204258371_untrusted",B,v))):b.return(Promise.reject(new g.UT("b204258371_invalid",B,v)))})}; wGT=function(z){var K=z.J;z.J=[];return K}; lJS=function(z){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(z)}; NL=function(z){var K=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(z)&&!K.test(z)}; DR5=function(z,K){this.location=z;this.S=K}; yXp=function(z){this.rS=z;this.Y=!1;this.S=[]}; ktq=function(z){return z.S.length&&!z.S[0].isEncrypted}; IF=function(z){for(;ktq(z);){var K=z.S.shift(),f=K.videoId,M=K.OP,p=K.formatId,t=K.buffer;K=K.s7;if(t)K=void 0,(K=v0(z.rS.T5,f))==null||mz(K,M,p,t);else if(K)z.rS.T5.c9(f,M,p);else if(M=z.rS,M.S[p].qK=!0,f=v0(M.T5,f),f==null?0:f.iP.has(p))f==null||PB(f,p)}}; aY8=function(z,K,f){Eo(z,function(){var M=this;return function t(){var B,v,I,G,b,e,w,D,y,R;return Jd(t,function(S){switch(S.Y){case 1:g.u8(S,2);if(ktq(M))return S.return();M.Y=!0;if(!f){B=void 0;S.jV(4);break}v=da;return av(S,Pl(f),5);case 5:B=v(S.S);case 4:I=B,G=new Uint8Array(16),b=new M7(K,f),M.rS.bP("omd_s");case 6:if(!M.S.length||!M.S[0].isEncrypted){S.jV(8);break}e=M.S.shift();w=da;return av(S,Pl(b.encrypt(lf(e.buffer),G)),9);case 9:D=w(S.S);hNW(G);R=y=void 0;var E=M.rS,L=e.videoId,q=e.OP,V= e.formatId,c=new PY([(R=(y=I)==null?void 0:y.Iv(D))!=null?R:D]),O;(O=v0(E.T5,L))==null||mz(O,q,V,c);S.jV(6);break;case 8:M.rS.bP("omd_c"),IF(M),M.Y=!1,M.rS.Rv();case 2:g.mS(S),g.VI(S,0)}})}()})}; hNW=function(z){for(var K=0;K0;I--)f.push(v)}f.length!==B?K.error=!0:(t=f.slice(-t),f.length=p,Ha8(K,f,t));break;case 1:Ha8(K,G2,RNo);break;case 0:QBa(K, K.S&7);f=DL(K,16);p=DL(K,16);(f^p)!==65535&&(K.error=!0);K.output.set(K.data.subarray(K.Y,K.Y+f),K.T);K.Y+=f;K.T+=f;break;default:K.error=!0}z.T>z.output.length&&(z.output=new Uint8Array(z.T*2),z.T=0,z.Y=0,z.J=!1,z.S=0,z.register=0)}z.output.length!==z.T&&(z.output=z.output.subarray(0,z.T));return z.error?new Uint8Array(0):z.output}; Ha8=function(z,K,f){K=EtI(K);f=EtI(f);for(var M=z.data,p=z.output,t=z.T,B=z.register,v=z.S,I=z.Y;;){if(v<15){if(I>M.length){z.error=!0;break}B|=(M[I+1]<<8)+M[I]<>=7;G<0;)G=K[(B&1)-G],B>>=1;else B>>=G&15;v-=G&15;G>>=4;if(G<256)p[t++]=G;else if(z.register=B,z.S=v,z.Y=I,G>256){B=eF[G];B+=DL(z,bT[G]);I=P18(z,f);v=wX[I];v+=DL(z,SN8[I]);if(mRa&&Bf.length&&(z.error=!0);z.register|=(f[M+1]<<8)+f[M]<=0)return QBa(z,f&15),f>>4;for(QBa(z,7);f<0;)f=K[DL(z,1)-f];return f>>4}; DL=function(z,K){for(;z.S=z.data.length)return z.error=!0,0;z.register|=z.data[z.Y++]<>=K;z.S-=K;return f}; QBa=function(z,K){z.S-=K;z.register>>=K}; EtI=function(z){for(var K=[],f=g.a(z),M=f.next();!M.done;M=f.next())M=M.value,K[M]||(K[M]=0),K[M]++;var p=K[0]=0;f=[];var t=0;M=0;for(var B=1;B7&&(t+=K[B]);for(p=1;p>I&1;v=t<<4|B;if(B<=7)for(I=1<<7-B;I--;)M[I<>=7;B--;){M[I]||(M[I]=-K,K+=2);var G=p&1;p>>=1;I=G-M[I]}M[I]=v}}return M}; lYg=function(z){var K,f,M,p,t,B,v;return g.n(function(I){switch(I.Y){case 1:if(!("DecompressionStream"in window))return I.return(g.qN5(new g.uqW(z)));K=new DecompressionStream("gzip");f=K.writable.getWriter();f.write(z);f.close();M=K.readable.getReader();p=new PY([]);case 2:return g.l(I,M.read(),5);case 5:t=I.S;B=t.value;if(v=t.done){I.jV(4);break}p.append(B);I.jV(2);break;case 4:return I.return(lf(p))}})}; yi=function(z,K){this.S=z;this.Y=K}; V1q=function(z){return Lg(Lg(Re(function(){return uV(z.Y,function(K){return z.BZ(z.S,K)})}),function(){return z.CF(z.S)}),function(){return z.II(z.S)})}; ntS=function(z){SW.call(this,"onesie");this.T5=z;this.S={};this.T=!0;this.J=null;this.queue=new yXp(this);this.C={}}; Wrg=function(z){var K=z.queue;K.S.length&&K.S[0].isEncrypted&&!K.Y&&(K.S.length=0);K=g.a(Object.keys(z.S));for(var f=K.next();!f.done;f=K.next()){f=f.value;var M=z.S[f];if(!M.qK){var p=z.queue;p.S.push({videoId:M.videoId,formatId:f,isEncrypted:!1});p.Y||IF(p)}}}; iaa=function(z,K){var f=K.totalLength,M=!1;switch(z.J){case 0:z.T5.B("html5_future_onesie_ump_handler_on_player_response")?Lg(uV(JXS(z,K,z.T),function(p){gtI(z.T5,p)}),function(p){z.T5.Qa(p)}):z.y6(K,z.T).then(function(p){gtI(z.T5,p)},function(p){z.T5.Qa(p)}); break;case 2:z.bP("ormk");K=lf(K);z.T5.B("html5_future_onesie_ump_handler_on_media_decryption_key")?aY8(z.queue,K,z.T5.Z().rE):z.queue.decrypt(K);break;default:M=!0}z.T5.cE&&z.T5.Th("ombup","id.11;pt."+z.J+";len."+f+(M?";ignored.1":""));z.J=null}; dRI=function(z){if(z.Dy!==1)throw new Jq("onesie.response.badproxystatus",{st:z.Dy,webcrypto:!!V7(),textencoder:!!g.ZT.TextEncoder});if(z.httpStatus!==200)throw new Jq("onesie.response.badstatus",{st:z.httpStatus});}; JXS=function(z,K,f){return Eo(z,function(){var M=this;return function t(){var B,v,I,G,b,e,w,D,y,R,S,E,L,q,V,c,O,x,T,M8,$S,td,r;return Jd(t,function(yI){switch(yI.Y){case 1:g.u8(yI,2);M.T5.y6();B=lf(K);g.Sq(yI,4,5);if(!f){yI.jV(7);break}g.Sq(yI,8);b=da;return av(yI,Pl(cXv(M.T5,B,M.iv)),10);case 10:v=b(yI.S);g.Eu(yI,7,4);break;case 8:throw e=g.QI(yI,4),{name:"DecryptError",message:""+e};case 7:if(!M.T5.enableCompression){yI.jV(11);break}g.Sq(yI,12);D=da;var H5=(w=v)!=null?w:B;H5=V1q(new yi(H5,M.T5.Z().rE)); return av(yI,Pl(H5),14);case 14:I=D(yI.S);g.Eu(yI,11,4);break;case 12:throw y=g.QI(yI,4),{name:"DecompressError",message:""+y};case 11:G=Tv((S=(R=I)!=null?R:v)!=null?S:B,PSS);case 5:g.mS(yI,0,2);if(L=(E=M.T5.Z())==null?void 0:E.Px)((q=v)==null?void 0:q.buffer)===L.exports.memory.buffer&&L.free(v.byteOffset),((V=I)==null?void 0:V.buffer)===L.exports.memory.buffer&&L.free(I.byteOffset);g.VI(yI,6);break;case 4:throw O=c=g.QI(yI),new Jq("onesie.response.parse",{name:($S=O.name)!=null?$S:"unknown",message:(td= O.message)!=null?td:"unknown",wasm:((x=M.T5.Z())==null?0:x.Px)?((T=M.T5.Z())==null?0:(M8=T.Px)==null?0:M8.S)?"1js":"1":"0",enc:M.T,gz:M.T5.enableCompression,webcrypto:!!V7()});case 6:return dRI(G),r=g.dz(G.body),yI.return(r);case 2:g.mS(yI),g.VI(yI,0)}})}()})}; sB8=function(z){return new Promise(function(K){setTimeout(K,z)})}; AX8=function(z,K){var f=z.Z();f=z.Yx&&f.B("html5_onesie_preload_use_content_owner");var M=z.Ff,p=Nw(K.SV.experiments,"debug_bandaid_hostname");if(p)K=B0(K,p);else if((f===void 0?0:f)&&(M==null?0:M.url)&&!K.Y){var t=gp(new g.WN(M.url));K=B0(K,t)}else K=(t=K.S.get(0))==null?void 0:t.location.clone();if(K&&z.videoId){t=eo(z.videoId);z=[];if(t)for(t=g.a(t),f=t.next();!f.done;f=t.next())z.push(f.value.toString(16).padStart(2,"0"));K.set("id",z.join(""));return K}}; jBd=function(z,K,f){f=f===void 0?0:f;var M,p;return g.n(function(t){if(t.Y==1)return M=[],M.push(K.load()),f>0&&M.push(sB8(f)),g.l(t,Promise.race(M),2);p=AX8(z,K);return t.return(p)})}; YN5=function(z,K,f,M){M=M===void 0?!1:M;z.set("cpn",K.clientPlaybackNonce);z.set("opr","1");var p=K.Z();z.set("por","1");V7()||z.set("onem","1");K.startSeconds>0&&z.set("osts",""+K.startSeconds);M||(p.B("html5_onesie_disable_partial_segments")&&z.set("oses","1"),K=p.B("html5_gapless_onesie_no_media_bytes")&&NE(K)&&K.Yx,f&&!K?(K=f.audio,z.set("pvi",f.video.join(",")),p.B("html5_onesie_disable_audio_bytes")||z.set("pai",K.join(",")),BZ||z.set("osh","1")):(z.set("oad","0"),z.set("ovd","0"),z.set("oaad", "0"),z.set("oavd","0")))}; XGq=function(z,K,f,M,p){p=p===void 0?!1:p;var t="https://youtubei.googleapis.com/youtubei/"+K.MD.innertubeApiVersion+"/player",B=[{name:"Content-Type",value:"application/json"}];M&&B.push({name:"Authorization",value:"Bearer "+M});B.push({name:"User-Agent",value:g.H4()});g.zM("EOM_VISITOR_DATA")?B.push({name:"X-Goog-EOM-Visitor-Id",value:g.zM("EOM_VISITOR_DATA")}):(f=f.visitorData||g.zM("VISITOR_DATA"))&&B.push({name:"X-Goog-Visitor-Id",value:f});(f=g.zM("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&B.push({name:"X-YouTube-Lava-Device-Context", value:f});(K=Nw(K.experiments,"debug_sherlog_username"))&&B.push({name:"X-Youtube-Sherlog-Username",value:K});z=A0(JSON.stringify(z));return{url:t,gj:B,postBody:z,EdL:p,kD:p}}; Frp=function(z,K,f,M,p,t){var B=g.tM(z,ERS,z.kD?void 0:f.Px),v={encryptedClientKey:K.S.encryptedClientKey,Fh:!0,k_:!0,pL:xRS(f,!!z.kD),Ek:f.experiments.sf("html5_use_jsonformatter_to_parse_player_response")};if(z.kD)v.tvL=B;else{if(f.Px){z=t1q(K).Y(B,K.iv);var I;v.F4=(I=f.Px.Iv(z))!=null?I:z}else v.F4=K.encrypt(B);I=v.F4;(0,g.X)();I=pM8(new M38(K.S.T),I,K.iv);v.xz=I;v.iv=K.iv}K=M.getVideoData();M=kC({pH:f,AL:M,aQ:K.startSeconds*1E3});p={Lu:v,eq:M,onesieUstreamerConfig:p,vg:t,tQ:hp(K)};if(K.SE)if(f.B("html5_server_controlled_resume_time_refactor")){var G; p.reloadPlaybackParams=(G=K.SE)==null?void 0:G.reloadPlaybackParams}else p.reloadPlaybackParams=K.SE;return p}; OaW=function(z,K,f){var M,p,t;return g.n(function(B){if(B.Y==1)return M=g.tM(K,ERS),g.l(B,BAq(f,M),2);if(B.Y!=3)return p=B.S,g.l(B,NAS(f,p),3);t=B.S;return B.return({F4:p,encryptedClientKey:f.S.encryptedClientKey,iv:f.iv,xz:t,Fh:!0,k_:!0,pL:xRS(z,!!K.kD),Ek:z.experiments.sf("html5_use_jsonformatter_to_parse_player_response")})})}; rXv=function(z,K,f,M,p,t){var B,v,I,G,b;return g.n(function(e){if(e.Y==1)return g.l(e,OaW(f,z,K),2);B=e.S;v=M.getVideoData();I=kC({pH:f,AL:M,aQ:v.startSeconds*1E3});G={Lu:B,eq:I,onesieUstreamerConfig:p,vg:t,tQ:hp(v)};v.SE&&(f.B("html5_server_controlled_resume_time_refactor")?G.reloadPlaybackParams=(b=v.SE)==null?void 0:b.reloadPlaybackParams:G.reloadPlaybackParams=v.SE);return e.return(G)})}; xRS=function(z,K){z=QT(z.schedule,!0);K=K||!!V7()&&z>1572864;return"DecompressionStream"in window||!K}; hr=function(z,K){g.J.call(this);var f=this;this.AL=z;this.playerRequest=K;this.logger=new g.Np("onesie");this.xhr=null;this.state=1;this.OM=new BC;this.z6=!1;this.playerResponse="";this.LJ=new ze(this);this.rS=new ntS(this);this.eX="";this.QQ=this.D0=!1;this.Xf="";this.enableCompression=this.Kg=this.oy=!1;this.Wa=[];this.fJ=-1;this.SV=this.AL.Z();this.videoData=this.AL.getVideoData();this.cE=this.SV.i8();this.oT=this.SV.L7;this.w1=new po(this.oT.S,this.SV.rE,FF8(this.SV));this.Z$=this.SV.B("html5_onesie_check_timeout"); this.iQ=new g.Kl(this.BB,500,this);this.pU=new g.Kl(this.Gq,1E4,this);this.E$=new g.Kl(function(){if(!f.isComplete()){var M=ke(f);f.Qa(new Jq("net.timeout",M))}},1E3); this.XC=new g.Kl(this.pxc,2E3,this);this.QT=this.AL.K4();this.k6=this.B("html5_onesie_wait_for_media_availability");g.d(this.videoData,this);g.d(this,this.iQ);g.d(this,this.pU);g.d(this,this.XC);g.d(this,this.w1);z=IQ();BZ&&z&&(this.E1=new Map);this.Ei=new Map;this.Q0=new Map;this.HK=new Map;this.KL=new Map}; v0=function(z,K){var f;return(f=z.E1)==null?void 0:f.get(K)}; otW=function(z,K,f){var M;return g.n(function(p){if(p.Y==1)return z.bP("oprd_s"),Zaa(z)?g.l(p,vtv(z.w1,K,f),3):(M=z.w1.decrypt(K,f),p.jV(2));p.Y!=2&&(M=p.S);z.bP("oprd_c");return p.return(M)})}; cXv=function(z,K,f){z.bP("oprd_s");K=t1q(z.w1).encrypt(K,f);uV(K,function(){z.bP("oprd_c")}); return K}; C15=function(z){return z.B("html5_onesie_host_probing")||z.cE?BZ:!1}; gtI=function(z,K){z.bP("oprr");z.playerResponse=K;z.Kg||(z.k6=!1);aF(z)}; aF=function(z){if(!z.playerResponse)return!1;if(z.oy)return!0;var K=z.videoData.B("html5_onesie_audio_only_playback")&&vw(z.videoData);if(z.E1&&z.k6){if(!z.E1.has(z.eX))return!1;var f=z.E1.get(z.eX),M;if(M=f){M=!1;for(var p=g.a(f.iP.keys()),t=p.next();!t.done;t=p.next())if(t=f.iP.get(t.value))for(var B=g.a(t.Zw),v=B.next();!v.done;v=B.next())v.value.hA>0&&(t.ev?M=!0:K=!0);M=!(K&&M)}if(M)return!1}z.bP("ofr");z.OM.resolve(z.playerResponse);if(!z.Z$){var I;(I=z.E$)==null||I.start();z.pU.start()}return z.oy= !0}; UR5=function(z){if(z.E1&&!z.B("html5_onesie_media_capabilities")){z.bP("ogsf_s");var K=ZXg(z.AL.getVideoData(),function(M,p){z.Th(M,p)}),f=TAT(z.AL); K.video=sRq(f,K.video);z.bP("ogsf_c");if(K.video.length)return K;z.Th("ombspf","l."+f.Y+";u."+f.S+";o."+f.T+";r."+f.reason)}}; Zaa=function(z,K){return z.B("html5_onesie_sync_request_encryption")||(K==null?0:K.kD)||g.MR(z.SV)&&z.B("html5_embed_onesie_use_sync_encryption")?!1:!!V7()}; ke=function(z){if(!z.aF)return{};var K=z.aF.pD(),f;K.d=(f=z.aF.eV)==null?void 0:f.yv();K.shost=z.Tu;K.ty="o";return K}; zgS=function(z,K){var f,M;(M=(z=(f=z.E1)==null?void 0:f.get(K))==null)||(K=z.T?!1:z.T=!0,M=!K);return!M}; KUv=function(z,K,f,M,p,t,B,v,I,G,b){g.J.call(this);var e=this;this.AL=z;this.loader=K;this.policy=f;this.audioTrack=M;this.videoTrack=p;this.KH=t;this.hB=B;this.b_=v;this.T=I;this.timing=G;this.Y1=b;this.S=[];this.C={};this.Xc=this.QE=!1;this.J=this.Px=this.N=this.i4=0;this.D=null;this.nH={z5:[],FG:[]};this.Hx={z5:[],FG:[]};this.G=null;this.W=[];this.dO={cn1:function(){return e.S}, QPe:function(){return e.C}, ZGx:function(){e.S.length=0}, S_x:function(){return e.videoData.rE}, Nua:function(){return e.N}, Nx_:function(w){e.N=w}, AVh:function(w){e.J=w}, OR:function(w){e.G=w}, O4:function(w){e.W=w}}; this.videoData=this.AL.getVideoData();this.policy.tJ&&(this.Bx=new YY(this.loader,this.policy,this.hB),g.d(this,this.Bx))}; Muv=function(z,K){K=K===void 0?!1:K;if($EW(z)){z.policy.W&&z.loader.Th("sabrcrq",{create:1});var f=new TV(0,z.KH.D,z);z.policy.K3>0&&z.J++;K=fAW(z,f,K);z.S.push(K);var M;(M=z.Bx)==null||wZv(M,z.KH.D)}}; BHg=function(z,K){var f=pwv(z);if(z.policy.XK){var M=z.nH;var p=z.Hx}else M=RF(z,z.audioTrack),p=RF(z,z.videoTrack);var t=[].concat(g.P(M.z5),g.P(p.z5));SF(z)&&t.push.apply(t,g.P(z.W));var B=[].concat(g.P(M.FG),g.P(p.FG)),v=z.loader.qn();if(z.policy.A1&&!z.videoData.isLivePlayback){var I=z.videoData.lengthSeconds*1E3;f>=I&&z.loader.Th("invalidSabrCmt",{cmt:f,vd:I})}var G,b;I=z.AL;var e=z.KH,w=z.Y,D=z.videoData.rE,y=z.policy,R=z.loader.hC,S=RMo(z.loader)*1E3,E=(G=z.eV)==null?void 0:G.ZW;G=(b=z.eV)== null?void 0:b.TQ;var L;b=Number((L=z.T.J)==null?void 0:L.info.itag)||0;var q;L=Number((q=z.T.C)==null?void 0:q.info.itag)||0;K={AL:I,KH:e,z5:t,FG:B,aQ:f,nextRequestPolicy:w,OC:D,Bh:y,yQ:R,qm:S,ZW:E,TQ:G,i4:z.i4,isPrefetch:K||z.loader.isSuspended,bG:b,Vd:L,aj:v,M3:z.AL.Q8()};f=z.loader.XP();t=eo(f);f&&(K.IG=t);if(f=z.AL.Ex())K.Rg=f*1E3;var V;f=z.T;t=f.Y1;if(((V=f.Bh)==null?0:yv(V))&&!t)for(V=g.a(f.T),B=V.next();!B.done;B=V.next())if(B.value.b8){t=!0;break}V=yv(f.Bh)&&!t?[]:l5q(f,f.T);K.wN=V;V=z.T; yv(V.Bh)&&!V.l_?V=[]:(f=cw5(V),f.length===0&&(f=V.W),V=l5q(V,f));K.yY=V;K.Ny=SF(z)?[z.G]:void 0;z.policy.PY&&(K.g4=tuT(z.loader,z.audioTrack),K.fT=tuT(z.loader,z.videoTrack));if(z.policy.Y){V=z.loader.getCurrentTime();M=uT(z,M.z5,V);p=uT(z,p.z5,V);p=Math.min(M,p);SF(z)&&z.policy.uT&&(M=uT(z,z.W,V),z.AL.i8()&&M0&&z.S[0].IT()&&(K.HQ=z.S[0].qG());return K}; pwv=function(z){var K,f=z.policy.C&&((K=z.loader)==null?void 0:K.nT());K=z.loader.getCurrentTime()||0;K=NHv(z,K);var M=z.loader.MB()||0;K+=M;M=n5(z.videoData)||g.V_(z.videoData);var p=0;f?(M&&(p=Number.MAX_SAFE_INTEGER),z.videoData.Y1&&(p=Math.ceil(z.videoData.nH*1E3))):p=Math.ceil(K*1E3);return Math.min(Number.MAX_SAFE_INTEGER,p)}; SF=function(z){return z.policy.D3&&!!z.G}; NHv=function(z,K){if(z.loader.isSeeking())return K;var f=z.AL.qL();if(!f)return K;f=f.MV();if(f.length===0||kr(f,K))return K;if(!dG(z.videoTrack,K)&&!dG(z.audioTrack,K))return z.loader.Th("sundrn",{b:0,lt:K}),K;for(var M=K,p=Infinity,t=0;tK)){var B=K-f.end(t);B=20)?(z.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),K):M}; uT=function(z,K,f){z=z.loader.MB()||0;return jF(K,(f+z)*1E3)/1E3+f}; $EW=function(z){if(z.policy.K3>0){var K=Math.floor((0,g.X)()/1E4);if(K===z.Px){if(z.J>=z.policy.K3){if(z.J===z.policy.K3){var f={reason:"toomanyrequests"};f.limit=z.J;z.loader.handleError("player.exception",f);z.J+=1}return!1}}else z.Px=K,z.J=0}if(z.loader.isSuspended&&z.loader.C0)return!1;if(z.l_&&(0,g.X)()0&&(!z.policy.N||z.S.length!==1||!z.S[0].IT()))return!1;var M;if((M=z.KH.D)==null||!JL(M,z.policy,z.C,z.loader.mC())||JI(z.audioTrack)&&JI(z.videoTrack))return!1; if(Ye(z,z.audioTrack)&&Ye(z,z.videoTrack))return z.policy.T&&z.loader.Th("sabrHeap",{a:""+q4(z.audioTrack),v:""+q4(z.videoTrack)}),!1;if(K=z.policy.Y){K=!1;if(z.Y1.Y===2)K=!0;else if(z.Y1.Y===3){pwv(z);z.loader.MB();var p=Pz(z.audioTrack,z.loader.isSeeking()).z5;M=Pz(z.videoTrack,z.loader.isSeeking()).z5;var t=z.loader.getCurrentTime()||0;p=uT(z,p,t);M=uT(z,M,t);M=Math.min(p,M);t=z.Y1;M>=t.C?(t.Th("sdai",{haltrq:M,est:t.C}),M=!0):M=!1;M&&(K=!0)}K&&z.policy.W&&z.loader.Th("sabrcrq",{waitad:1})}if(K)return!1; z.policy.XK&&(z.nH=RF(z,z.audioTrack),z.Hx=RF(z,z.videoTrack));if(!z.Y)return z.policy.W&&z.loader.Th("sabrcrq",{nopolicy:1}),!0;if(z.AL.Ex())return z.policy.W&&z.loader.Th("sabrcrq",{utc:1}),!0;if(z.T.G)return z.policy.W&&z.loader.Th("sabrcrq",{audio:1}),!0;if(!z.Y.targetAudioReadaheadMs||!z.Y.targetVideoReadaheadMs)return z.policy.W&&z.loader.Th("sabrcrq",{noreadahead:1}),!0;if(z.policy.C&&z.loader.nT())return z.policy.W&&z.loader.Th("sabrcrq",{seekToHead:1}),!0;K=Math.min(j9(z.loader,z.audioTrack)* 1E3,z.Y.targetAudioReadaheadMs);M=Math.min(j9(z.loader,z.videoTrack)*1E3,z.Y.targetVideoReadaheadMs);var B=Math.min(K,M);t=lU(z.audioTrack,!0)*1E3;p=lU(z.videoTrack,!0)*1E3;var v=z.AL.getCurrentTime()*1E3;if(z.policy.XK){var I=jF(z.nH.z5,v);var G=jF(z.Hx.z5,v)}else I=t,G=p;var b=IK||M>=0&&p.g2>M+1)break;f=Math.max(f,p.startTimeMs+p.durationMs);M=Math.max(M,p.TH)}return Math.max(0,f-K)}; fAW=function(z,K,f){var M={hB:z.hB,mN:function(I,G){z.AL.FO(I,G)}, jm:z.policy.oi,K0:z.policy.T};z.hB.Y.W&&(M.PC=(z.videoTrack.S.info.yE||0)+(z.audioTrack.S.info.yE||0));z.policy.Rf&&(M.ma=z.audioTrack.S.index.bS(),M.jm=!1);var p=jQo(K,z.policy,z.C)?2:1;p!==z.N&&(z.N=p,IAg(z));f=BHg(z,f);if(z.policy.N&&z.policy.T&&f.OC){for(var t=p="",B=g.a(f.OC),v=B.next();!v.done;v=B.next())v=v.value,z.videoData.sabrContextUpdates.has(v)||z.policy.N&&f.HQ&&f.HQ.type===v?p+="_"+v:t+="_"+v;z.loader.Th("sabrbldrqs",{ctxts:p,misctxts:t})}!K.setData(f,z.policy,z.C)&&z.policy.N&&z.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);M=new lW(z.policy,K,z.KH,z.C,z,M,z.loader.K4());Vv(z.timing);z.policy.W&&z.loader.Th("sabrcrq",{rn:M.Dz(),probe:K.O_()});return M}; xe=function(z,K){if(K.CH()||z.CH())z.policy.yw||(z.policy.C?Xy(z.loader):z.loader.x8());else{if(z.policy.T&&K.isComplete()&&K instanceof lW){var f=z.loader,M=f.Th,p,t,B=Object.assign(K.aF.pD(),{rst:K.state,strm:K.xhr.O9(),d:(p=K.aF.eV)==null?void 0:p.yv(),cncl:K.xhr&&K.IF.J?1:0,rqb:K.jd,cwt:K.lN,swt:(t=K.YK)==null?void 0:t.oo});p=Object.assign(xwS(K.info),B);M.call(f,"rqs",p)}if(K.isComplete()&&K.O_()&&K instanceof lW)z.policy.Ft?K.Vb()?(K.dispose(),z.S.length===0?z.loader.x8():(z=z.S[0],z instanceof lW&&z.GY()&&z.k$())):K.vC()&&z.loader.handleError(K.Ko(),K.rU()):(K.dispose(),z.loader.x8());else{if(K.Qb())K instanceof lW&&nb8(z.timing,K),IAg(z),GPp(z);else if(K.vC())f=z.AL.Ex(),K instanceof lW&&XZ8(K.info)&&f&&z.loader.RK(f),K instanceof hr?z.S.pop():(f=1,K.canRetry()&&QQd(z.loader)&&(b5W(z,K),f=0),z.loader.handleError(K.Ko(),K.rU(),f));else{if(z.loader.isSuspended&&!K.isComplete())return;GPp(z)}K.CH()||K instanceof hr||(K.isComplete()?f=k0I(K,z.policy,z.C):(f=ywS(K,z.policy,z.C),f===1&&(z.QE= !0)),f!==0&&(M=new TV(1,K.info.eE),M.Mr=f===2,fAW(z,M)));z.policy.LI&&!K.isComplete()?HOa(z.loader):z.loader.x8()}}}; GPp=function(z){for(;z.S.length&&z.S[0].jp(z.u3());){var K=z.S.shift();egT(z,K)}z.S.length&&egT(z,z.S[0])}; egT=function(z,K){K instanceof lW&&(z.vx=K);var f=new Set(K.jQ(z.u3()));f=g.a(f);for(var M=f.next();!M.done;M=f.next()){var p=M.value;if(!(M=!(K instanceof hr))){M=z.T;var t=M.KH.CI,B=CM(M.videoInfos,t);t=dwW(M,p,t);var v=B.includes(p);!M.Bh.yF||t||v||M.loader.Th("sabrcpf",{fid:""+p,vfids:""+B.join("."),said:M.D||""});M=t||B.includes(p)}if(M&&(M=K.R3(p,z.u3()),B=z.policy.D3&&Gr(M[0].S.info.mimeType),(!(!B&&z.policy.Ax&&M.length>0&&(M[0].S.info.ev()?lU(z.audioTrack):lU(z.videoTrack))>3)||K.isComplete())&& K.PE(p,z.u3())))for(p=K.Op(p,z.u3()),p=g.a(p),t=p.next();!t.done;t=p.next())if(t=t.value,z.policy.T&&K instanceof hr&&z.loader.Th("omblss",{s:t.info.H8()}),B)v=z.timing,v.Y1||(v.Y1=(0,g.X)(),g.iq("fcb_r",v.Y1,v.S)),v=z,v.videoData.CI()&&v.G&&gP(v.G)===gP(g.Nh(t.info.S.info,v.KH.CI))&&v.AL.publish("sabrCaptionsDataLoaded",t,v.O4.bind(v));else{v=t.info.S.info.ev();var I=t.info.S;if(v){var G=void 0;var b=z.T,e=(G=K.l$(z.u3()))==null?void 0:G.token;b.G&&I!==b.C?G=!0:(b.G=!1,I!==b.C&&(b.C=I,b.Lc(I,b.audioTrack, e)),G=!1);if(G)continue}else G=void 0,mwa(z.T,I,(G=K.l$(z.u3()))==null?void 0:G.token);G=v?z.audioTrack:z.videoTrack;K instanceof hr&&(G.G=!1,K instanceof hr&&(v?Prd(z.timing):EbS(z.timing)));try{Ey(G,M,t)}catch(w){t=iB(w),z.loader.handleError(t.errorCode,t.details,t.severity),G.W7(),z.Hn(!1,"pushSlice"),Xy(z.loader)}}}}; b5W=function(z,K){z.policy.N?z.S.splice(z.S.indexOf(K)).forEach(function(f){f.dispose()}):(z.S.pop(),K==null||K.dispose())}; wwS=function(z,K,f){for(var M=[],p=0;p0)for(var K=g.a(z.videoData.sabrContextUpdates.keys()),f=K.next();!f.done;f=K.next()){f=f.value;var M=void 0;((M=z.videoData.sabrContextUpdates.get(f))==null?0:M.sendByDefault)&&z.videoData.rE.add(f)}if(z.policy.N&&z.S.length)for(K=g.a(z.S),f=K.next();!f.done;f=K.next())(f=f.value.qG())&&f.type&&f.sendByDefault&&z.videoData.rE.add(f.type)}; DE8=function(z){z.policy.Z2&&(z.eV=void 0,z.i4=0)}; yfW=function(z,K){if(K.vC()||K.CH()){var f=z.loader,M=f.Th,p=K.state;z=z.u3();var t,B;if((K=(t=K.E1)==null?void 0:t.get(z))==null)K=void 0;else{t=0;z=K.jQ();for(var v=0;v=z.policy.H0,B=!1;if(t){var v=0;!isNaN(K)&&K>z.C&&(v=K-z.C,z.C=K);v/p=z.policy.RL&&!z.T;if(!t&&!f&&SMS(z,K))return NaN;f&&(z.T=!0);a:{M=B;f=(0,g.X)()/1E3-(z.aA.k9()||0)-z.G.S-z.policy.ra;t=z.Y.startTime;f=t+f;if(M){if(isNaN(K)){Fy(z,NaN,"n",K);t=NaN;break a}M=K-z.policy.w8;M=t.J&&M<=t.W){M=!0;break a}M=!1}M=!M}if(M)return z.Th("ostmf",{ct:z.getCurrentTime(),a:K.S.info.ev()}),!1;(z=z.l_)!=null&&(z.iP.get(f).IQ=!0);return!0}; qMp=function(z){if(!z.KH.CI)return!0;var K=z.AL.getVideoData();if(z.AL.kI())return z.Th("ombpa",{}),!1;var f,M;if(z.policy.p5&&!!((f=z.N)==null?0:(M=f.qd)==null?0:M.N3a)!==z.KH.Ca)return z.Th("ombplmm",{}),!1;f=K.W1||K.liveUtcStartSeconds||K.t9;if(z.KH.Ca&&f)return z.Th("ombplst",{}),!1;if(z.KH.N)return z.Th("ombab",{}),!1;f=Date.now();return cr(z.KH)&&!isNaN(z.nH)&&f-z.nH>z.policy.Yk*1E3?(z.Th("ombttl",{}),!1):z.KH.dh&&z.KH.J||!z.policy.Au&&z.KH.isPremiere||Rp(K)!==0&&!z.policy.S||K.B("html5_disable_onesie_media_for_mosaic")&& F6(K)||K.Fr()&&!K.B("html5_enable_onesie_media_for_lifa")&&K.isDaiEnabled()&&K.enableServerStitchedDai||K.B("html5_disable_onesie_media_for_lifa_eligible")&&x3(K)?!1:!0}; mEu=function(z,K){var f=K.S,M=z.KH.CI;if(qMp(z))if(z.l_&&z.l_.iP.has(gP(g.Nh(f.info,M)))){if(M=gP(g.Nh(f.info,M)),Qpq(z,K)){var p=new Z1(z.l_.R3(M)),t=function(B){try{if(B.vC())z.handleError(B.Ko(),B.rU()),Wz(K,B),CN(B.info)&&Oy(z.C,K,f,!0),z.x8();else if(Evv(z.C,B)){var v;(v=z.T)==null||d6a(v,B.info,z.Y1);z.x8()}}catch(I){B=iB(I),z.handleError(B.errorCode,B.details,B.severity),z.W7()}}; f.T=!0;oa(p)&&(LM(K,new dK(z.policy,M,p,z.l_,t)),Vv(z.timing))}}else z.Th("ombfmt",{})}; lAW=function(z,K){K=K||z.videoTrack&&z.videoTrack.Y&&z.videoTrack.Y.startTime||z.getCurrentTime();var f=rG,M=z.videoTrack,p=z.S;K=p.nextVideo&&p.nextVideo.index.NZ(K)||0;p.Hx!==K&&(p.Bx={},p.Hx=K,Z$(p,p.S));K=!p.S.isLocked()&&p.N>-1&&(0,g.X)()-p.NK.S&&K.reason==="b";M||p||f?(z.AL.Jd({reattachOnConstraint:M?"u":p?"drm":"perf",lo:K.Y,up:K.S}),z.policy.Fa||(z.J.S.Y=!1)):(z.policy.Fa&&(z.J.S.Y=!1),Xy(z))}}else if(!ob8(z.S,K)&&z.videoTrack){z.logger.debug(function(){return"Setting constraint: r="+K.reason+" u="+K.S}); f=z.S.S;dES(z,TPq(z.S,K));lAW(z);M=K.isLocked()&&K.reason==="m"&&z.S.l_;p=z.policy.Co&&K.reason==="l"&&gG(z.videoTrack);f=f.S>K.S&&K.reason==="b";var t=z.S.b_&&!Tr();M||p||f||t?z.AL.Jd({reattachOnConstraint:M?"u":p?"drm":t?"codec":"perf"}):Xy(z)}}; spq=function(z,K,f){if((!z.u_||Kw(z.u_)&&!z.policy.Ri)&&!z.Vv.isSeeking()&&(z.policy.S||gG(K)&&K.S.x9()&&z.S.Y1)){var M=z.getCurrentTime()+CV5(z.D,K,f);z.logger.debug(function(){return"Clearing back to "+M.toFixed(3)}); Up5(K,M)}}; dES=function(z,K){K&&(z.logger.debug(function(){return"Logging new format: "+el(K.video.info)}),AfS(z.AL,new jW(K.video,K.reason))); if(z.S.QE){var f=$p8(z.S,"a");z.AL.hw(new jW(f.audio,f.reason))}}; Xy=function(z){g.$4(z.W1)}; HOa=function(z){z.policy.LI&&z.policy.t1&&Math.min(TNv(z.videoTrack),TNv(z.audioTrack))*1E3>z.policy.TT?g.$4(z.nI):z.x8()}; jpd=function(z,K){var f=(0,g.X)()-K,M=lU(z.audioTrack,!0)*1E3,p=lU(z.videoTrack,!0)*1E3;z.logger.debug(function(){return"Appends paused for "+f}); if(z.policy.T&&(z.Th("apdpe",{dur:f.toFixed(),abuf:M.toFixed(),vbuf:p.toFixed()}),AI(z.policy))){var t=W1(z.D);z.Th("sdps",{ct:K,ah:M.toFixed(),vh:p.toFixed(),mr:J1(z.D,z.Q_,t),bw:t.toFixed(),js:z.isSeeking(),re:+z.Q_,ps:(z.policy.mW||"").toString(),rn:(z.policy.WY||"").toString()})}}; YM8=function(z){if(pZu(z.videoTrack))return z.logger.debug("Pausing appends for server-selectable format"),"ssf";if(z.policy.Xc&&cz(z.videoTrack)&&cz(z.audioTrack))return"updateEnd";if(JI(z.audioTrack)||JI(z.videoTrack)&&z.videoTrack.S.info.Ra!=="f")return"";if(z.Vv.isSeeking()){var K=z.D;var f=z.videoTrack;var M=z.audioTrack;if(K.policy.S){var p=K.policy.MD;AI(K.policy)&&(p=J1(K,!1,W1(K)));K=p;f=lU(M,!0)>=K&&lU(f,!0)>=K}else f.T.length||M.T.length?(p=f.S.info.yE+M.S.info.yE,p=10*(1-W1(K)/p),K=Math.max(p, K.policy.MD),f=lU(M,!0)>=K&&lU(f,!0)>=K):f=!0;if(!f)return"abr";f=z.videoTrack;if(f.T.length>0&&f.J.Y.length===1&&Q6S(f.J).info.G360);M=AI(z.policy)&&z.policy.ai;if(!z.Q_||!M&&f)return"";f=z.policy.MP;AI(z.policy)&&(f=J1(z.D,z.Q_,W1(z.D)));f=KFa(z.videoTrack,z.getCurrentTime(),f)||KFa(z.audioTrack,z.getCurrentTime(), f);return AI(z.policy)?f?"mbnm":"":(z.videoTrack.T.length>0||z.audioTrack.T.length>0||xY(z.C,z.videoTrack,z.audioTrack)||xY(z.C,z.audioTrack,z.videoTrack))&&f?"nord":""}; Xwq=function(z){if(z.G){var K=z.G.x8(z.audioTrack,aC(z.u_.Y.NL()));K&&z.AL.seekTo(K,{Wr:!0,v8:"pollSubsegmentReadahead",zR:!0})}}; Cv8=function(z,K,f){if(z.policy.Xc&&cz(K))return!1;if(f.wj())return!0;if(!f.Y0())return!1;var M=O7(K);if(!M||M.info.type===6)return!1;var p;if(z.policy.x4||((p=z.T)==null?0:jaT(p,K,M.info.Ia)))z.Bx=0;else return z.Vv.isSeeking()&&Xy(z),z.Bx=z.Bx||(0,g.X)(),!1;if(!Og(z,K,f,M.info))return!1;if(z.KH.Y&&M.info.Y===0){if(p=xEu(K,f,M)){var t=uU(K);z.Th("initchg",{it:M.info.S.info.id,sr:!!t&&t.S===M.info.S,ty:M.info.type,seg:M.info.Ia})}t=g.tn(M.info.S.info);z.policy.Ph&&t&&!p&&Kfp(M)}t=z.G&&!!z.G.J&&K.S.info.audio; p=z.KH.isManifestless||M.C;if(!(z.KH.Y&&M.info.Y!==0||p&&!t)&&FUI(z,K,f,M))return!0;if(t)return!1;t=j9(z,K);t=z.getCurrentTime()+t;if(M.info.J>t)return z.policy.S&&O5W(z,K),z.policy.cf&&v6S(K.J,t,!1),!1;rf8(z,K);var B;z.policy.ES&&f===((B=z.u_)==null?void 0:B.S)&&z.VE&&(f.h4()===0?(z.VE=!1,z.policy.ES=!1):z.rE=f.h4());if(!Z5v(z,f,M,K))return!1;z.policy.Xc&&M.info.cW()?(z.AL.Z().i8()&&z.Th("eosl",{ls:M.info.H8()}),M.isLocked=!0):(K.Bn(M),Kj8(z.S,M.info),z.logger.debug(function(){return"Appended "+ M.info.H8()+", buffered: "+D0(f.NL())})); p&&o3o(z,M.info.S.TJ);return!0}; O5W=function(z,K){K===z.videoTrack?z.vx=z.vx||(0,g.X)():z.eV=z.eV||(0,g.X)()}; rf8=function(z,K){K===z.videoTrack?z.vx=0:z.eV=0}; Z5v=function(z,K,f,M){var p=z.policy.nI?(0,g.X)():0,t=f.C&&f.info.S.S||void 0,B=f.Y;f.C&&(B=THT(z,f,B)||B);var v=lf(B);B=z.policy.nI?(0,g.X)():0;K=UEu(z,K,v,f.info,t);(M=M.N)!=null&&(t=f.info,p=B-p,B=(0,g.X)()-B,!M.Y||hVv(M.Y,t)&&M.Y.Ia===t.Ia||M.flush(),M.J+=p,M.T+=B,p=1,!M.Y&&t.Y&&(p=2),KM(M,p,K),B=Math.ceil(t.Y/1024),p===2&&M.S.add(B),M.S.add(Math.ceil((t.Y+t.T)/1024)-B),M.Y=t);z.Hx=0;if(K===0)return z.Px&&(z.logger.debug("Retry succeed, back to normal append logic."),z.Px=!1,z.TP=!1),z.SE=0,!0; if(K===2||K===5)return z$S(z,"checked",K,f.info),!1;if(K===1){if(!z.Px)return z.logger.debug("QuotaExceeded, retrying."),z.Px=!0,!1;if(!z.TP)return z.TP=!0,z.AL.seekTo(z.getCurrentTime(),{v8:"quotaExceeded",zR:!0}),!1;f.info.Zf()?(p=z.policy,p.vx=Math.floor(p.vx*.8),p.nH=Math.floor(p.nH*.8)):(p=z.policy,p.rE=Math.floor(p.rE*.8),p.nH=Math.floor(p.nH*.8));z.policy.S?X1(z.J.S,f.info.S,!1):C0(z.S,f.info.S)}z.AL.Jd({reattachOnAppend:K});return!1}; THT=function(z,K,f){var M;if(M=z.policy.XR&&z.u_&&!z.u_.D&&!z.AL.iq())K=K.info.S.info,M=K.qT()&&zr(K)&&K.video&&K.video.width<3840&&K.video.width>K.video.height;if(M&&(z.u_.D=!0,Aq('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return f=Pjq(f),z.policy.T&&z.Th("sp4k",{s:!!f}),f}; z$S=function(z,K,f,M){var p="fmt.unplayable",t=1;f===5||f===3?(p="fmt.unparseable",z.policy.S?!M.S.info.video||xC(z.J.S).size>0||X1(z.J.S,M.S,!1):!M.S.info.video||xC(z.S.C).size>0||C0(z.S,M.S)):f===2&&(z.SE<15?(z.SE++,p="html5.invalidstate",t=0):p="fmt.unplayable");M=Od(M);var B;M.mrs=(B=z.u_)==null?void 0:pw(B);M.origin=K;M.reason=f;z.policy.NP&&(M.trg="appenderr");z.handleError(p,M,t)}; YQI=function(z,K,f,M,p){var t=z.KH;var B=z.policy.S,v=!1,I=-1;for(w in t.S){var G=Gr(t.S[w].info.mimeType)||t.S[w].info.Zf();if(M===G)if(G=t.S[w].index,G.Zz(K.Ia)){v=G;var b=K,e=v.It(b.Ia);e&&e.startTime!==b.startTime?(v.segments=[],v.xB(b),v=!0):v=!1;v?I=K.Ia:!K.pending&&B&&(b=G.getDuration(K.Ia),b!==K.duration&&(t.publish("clienttemp","mfldurUpdate",{itag:t.S[w].info.itag,seg:K.Ia,od:b,nd:K.duration},!1),G.xB(K),v=!0))}else G.xB(K),v=!0}I>=0&&(B={},t.publish("clienttemp","resetMflIndex",(B[M?"v": "a"]=I,B),!1));t=v;eIW(z.Vv,K,M,t);if(z.policy.aL&&z.policy.Y&&(I=K.A$||null)&&(B=z.oa)!=null){if(B.S.has(I.identifier)){var w=B.S.get(I.identifier);w.event=I.event;w.startTimeSecs=I.startSecs;w.mP=I.mP}else B.S.set(I.identifier,{event:I.event,startTimeSecs:I.startSecs,mP:I.mP,Ql:[]});B.Y=I.event==="stop"?"":I.identifier}z.T.Np(K,f,M,p);if(z.policy.C3&&f){var D;(D=z.O3)!=null&&D.J.set(K.Ia,f)}K.Ia===z.KH.dh&&t&&Wr(z.KH)&&K.startTime>Wr(z.KH)&&(z.KH.nH=K.startTime+(isNaN(z.timestampOffset)?0:z.timestampOffset), z.Vv.isSeeking()&&z.Vv.S5)return z.Hx= 0,z.AL.Jd({initSegStuck:1,as:M.info.H8()}),!0}else z.Hx=0,z.LI=M;z.policy.eK&&(f.abort(),(B=K.N)!=null&&(KM(B,4),B.flush()));p=UEu(z,f,t,I,p);var G;(G=K.N)==null||IHd(G,p,I);if(p!==0)return K8u(z,p,M),!0;M.info.Zf()?qdv(z.timing):m6u(z.timing);z.logger.debug(function(){return"Appended init for "+M.info.S.info.id}); o3o(z,M.info.S.TJ);return f.IH()}; xEu=function(z,K,f){if(K.AO()==null){z=uU(z);if(!(K=!z||z.S!==f.info.S)){a:if(z=z.N,f=f.info.N,z.length!==f.length)f=!1;else{for(K=0;K1)return 6;B.Bx=new g.Kl(function(){var v=O7(B);z.CH()||v==null||!v.isLocked?z.AL.Z().i8()&&z.Th("eosl",{delayA:v==null?void 0:v.info.H8()}):$sv(B)?(z.AL.Z().i8()&&z.Th("eosl",{dunlock:v==null?void 0:v.info.H8()}),fod(z,B===z.audioTrack)):(z.Th("nue",{ls:v.info.H8()}),v.info.Y1+=1,z.u_&&z.YD())},1E4,z); z.AL.Z().i8()&&z.Th("eosl",{delayS:M.H8()});B.Bx.start()}z.policy.hP&&(M==null?void 0:M.S)instanceof Ud&&M.cW()&&z.Th("poseos",{itag:M.S.info.itag,seg:M.Ia,lseg:M.S.index.Mv(),es:M.S.index.T});K.appendBuffer(f,M,p)}catch(v){if(v instanceof DOMException){if(v.code===11)return 2;if(v.code===12)return 5;if(v.code===22||v.message.indexOf("Not enough storage")===0)return K=Object.assign({name:"QuotaExceededError",buffered:D0(K.NL()).replace(/,/g,"_"),vheap:q4(z.videoTrack),aheap:q4(z.audioTrack),message:g.vi(v.message, 3),track:z.u_?K===z.u_.Y?"v":"a":"u"},E3W(z.policy.d9)),z.handleError("player.exception",K),1;g.sm(v)}return 4}return z.u_.rI()?3:0}; Fx=function(z,K,f){z.AL.seekTo(K,f)}; o3o=function(z,K){K&&z.AL.UI(new vz(K.key,K.type))}; ew=function(z,K){z.AL.wA(K)}; j9=function(z,K){if(z.Px&&!z.Q_)return 3;if(z.isSuspended)return 1;var f;if((f=z.u_)==null?0:f.u_&&f.u_.streaming===!1)return 4;f=(K.S.info.audio?z.policy.rE:z.policy.vx)/(K.yE*z.policy.r_);if(z.policy.lY>0&&z.u_&&Kw(z.u_)&&(K=K.S.info.video?z.u_.Y:z.u_.S)&&!K.IH()){K=K.NL();var M=yr(K,z.getCurrentTime());M>=0&&(K=z.getCurrentTime()-K.start(M),f+=Math.max(0,Math.min(K-z.policy.lY,z.policy.PP)))}z.policy.nH>0&&(f=Math.min(f,z.policy.nH));return f}; tuT=function(z,K){return(j9(z,K)+z.policy.UN)*K.yE}; pDI=function(z){z.b_&&!z.isSuspended&&qw(z.schedule)&&(Mzd(z,z.b_),z.b_="")}; Mzd=function(z,K){mI(K,"cms",function(f){z.policy.T&&z.Th("pathprobe",f)},function(f){z.AL.handleError(f)})}; tzW=function(z,K){if(z.u_&&z.u_.J&&!z.u_.rI()&&(K.fk=lU(z.videoTrack),K.Y=lU(z.audioTrack),z.policy.T)){var f=q4(z.videoTrack),M=q4(z.audioTrack),p=D0(z.u_.Y.NL(),"_",5),t=D0(z.u_.S.NL(),"_",5);Object.assign(K.S,{lvq:f,laq:M,lvb:p,lab:t})}K.bandwidthEstimate=Vt(z.D);var B;(B=z.audioTrack.N)==null||B.flush();var v;(v=z.videoTrack.N)==null||v.flush();z.logger.debug(function(){return Wf(K.S)})}; Bqa=function(z,K){z.Y1=K;z.T&&(z.T.T=K);z.Y1.Rd(z.videoTrack.S.info.qT());z.C.Y=z.Y1;z.policy.Y&&(z.Y.D=z.Y1)}; GG8=function(z,K){if(z.u_&&z.u_.Y){if(z.policy.d4){var f=N7S(z.audioTrack);if(f&&f.ev()){var M=z.AL;if(M.PU&&(M.PU.S=f,f=M.Vh(M.PU.videoId),f.qoe)){f=f.qoe;M=M.PU;var p=g.ZL(f.provider);Nqv(f,p,M)}}}z.policy.ea&&(f=N7S(z.videoTrack))&&f.Zf()&&(M=z.AL,M.kA&&(M.kA.S=f,f=M.Vh(M.kA.videoId),f.qoe&&vOS(f.qoe,M.kA)));K-=isNaN(z.timestampOffset)?0:z.timestampOffset;z.getCurrentTime()!==K&&z.resume();z.Vv.isSeeking()&&z.u_&&!z.u_.rI()&&(M=z.getCurrentTime()<=K&&K=0&&t1?v.T[0]=K&&Pvp(z,M.startTime,!1)}); return f&&f.startTimez.getCurrentTime())return f.start/1E3;return Infinity}; v3d=function(z){if(z.AL.getVideoData().isLivePlayback)return!1;var K=z.AL.qL();if(!K)return!1;K=K.getDuration();if(z.u_&&z.u_.S&&z.u_.Y){var f=z.getCurrentTime(),M=z.u_.S.NL();z=z.u_.Y.NL();M=M?hn(M,f):f;f=z?hn(z,f):f;f=Math.min(M,f);K=isNaN(f)?!1:f>=K-.01}else K=!1;return K}; K8u=function(z,K,f){z.policy.vF&&NE(z.AL.getVideoData())?(z.AL.AC()||z$S(z,"sepInit",K,f.info),yTS(z.AL,"sie")):z$S(z,"sepInit",K,f.info)}; QQd=function(z){return z.AL.mC()0){var p=M.S.shift();h$S(M,p.info)}M.S.length>0&&(p=M.S[0].time-(0,g.X)(),M.Y.start(Math.max(0,p)))}},0); g.d(this,this.Y);K.subscribe("widevine_set_need_key_info",this.C,this)}; h$S=function(z,K){a:{var f=K.cryptoPeriodIndex;if(isNaN(f)&&z.T.size>0)f=!0;else{for(var M=g.a(z.T.values()),p=M.next();!p.done;p=M.next())if(p.value.cryptoPeriodIndex===f){f=!0;break a}f=!1}}z.publish("log_qoe",{wvagt:"reqnews",canskip:f});f||z.publish("rotated_need_key_info_ready",K)}; aoq=function(){var z={};var K=z.url;var f=z.interval;z=z.retries;this.url=K;this.interval=f;this.retries=z}; R$v=function(z,K){this.statusCode=z;this.message=K;this.Y=this.heartbeatParams=this.errorMessage=null;this.S={};this.nextFairplayKeyId=null}; Shq=function(z,K,f){f=f===void 0?"":f;g.J.call(this);this.message=z;this.requestNumber=K;this.QR=f;this.onError=this.onSuccess=null;this.S=new g.XU(5E3,2E4,.2)}; umW=function(z,K,f){z.onSuccess=K;z.onError=f}; EOg=function(z,K,f,M){var p={timeout:3E4,onSuccess:function(t){if(!z.CH()){rl("drm_net_r",void 0,z.QR);var B=t.status==="LICENSE_STATUS_OK"?0:9999,v=null;if(t.license)try{v=Ij(t.license)}catch(y){g.sm(y)}if(B!==0||v){v=new R$v(B,v);B!==0&&t.reason&&(v.errorMessage=t.reason);if(t.authorizedFormats){B={};for(var I=[],G={},b=g.a(t.authorizedFormats),e=b.next();!e.done;e=b.next())if(e=e.value,e.trackType&&e.keyId){var w=L8S[e.trackType];if(w){w==="HD"&&t.isHd720&&(w="HD720");e.isHdr&&(w+="HDR");B[w]|| (I.push(w),B[w]=!0);var D=null;try{D=Ij(e.keyId)}catch(y){g.sm(y)}D&&(G[g.NW(D,4)]=w)}}v.Y=I;v.S=G}t.nextFairplayKeyId&&(v.nextFairplayKeyId=t.nextFairplayKeyId);t.sabrLicenseConstraint&&(v.sabrLicenseConstraint=Ij(t.sabrLicenseConstraint));t=v}else t=null;if(t)z.onSuccess(t,z.requestNumber);else z.onError(z,"drm.net","t.p;p.i")}}, onError:function(t){if(!z.CH())if(t&&t.error)t=t.error,z.onError(z,"drm.net.badstatus","t.r;p.i;c."+t.code+";s."+t.status,t.code);else z.onError(z,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){z.onError(z,"drm.net","rt.req."+z.requestNumber)}}; M&&(p.OL="Bearer "+M);g.pv(f,"player/get_drm_license",K,p)}; PD8=function(z,K,f,M){g.Dv.call(this);this.videoData=z;this.SV=K;this.D=f;this.sessionId=M;this.C={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.Y1=this.l_=!1;this.T=null;this.nH=[];this.J=[];this.authorizedFormats=[];this.G=!1;this.S={};this.status="";this.W=NaN;this.Y=z.C;this.cryptoPeriodIndex=f.cryptoPeriodIndex;z={};Object.assign(z,this.SV.S);z.cpn=this.videoData.clientPlaybackNonce;this.videoData.Hx&&(z.vvt=this.videoData.Hx,this.videoData.mdxEnvironment&&(z.mdx_environment= this.videoData.mdxEnvironment));this.SV.nH&&(z.authuser=this.SV.nH);this.SV.pageId&&(z.pageid=this.SV.pageId);isNaN(this.cryptoPeriodIndex)||(z.cpi=this.cryptoPeriodIndex.toString());var p=(p=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.H4()))?p[1]:"";p==="ATV"&&(z.cdt=p);this.C=z;this.C.session_id=M;this.N=!0;this.Y.flavor==="widevine"&&(this.C.hdr="1");this.Y.flavor==="playready"&&(K=Number(Nw(K.experiments,"playready_first_play_expiration")),!isNaN(K)&&K>=0&&(this.C.mfpe=""+K),this.N=!1);K="";g.UQ(this.Y)? TO(this.Y)?(M=f.Y)&&(K="https://www.youtube.com/api/drm/fps?ek="+Lyd(M)):(K=f.initData.subarray(4),K=new Uint16Array(K.buffer,K.byteOffset,K.byteLength/2),K=String.fromCharCode.apply(null,K).replace("skd://","https://")):K=this.Y.Y;this.baseUrl=K;this.fairplayKeyId=Wv(this.baseUrl,"ek")||"";if(K=Wv(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(K);this.nH=f.qT?[g.NW(f.initData,4)]:f.T;zS(this,{sessioninit:f.cryptoPeriodIndex});this.status="in"}; Vwp=function(z,K){zS(z,{createkeysession:1});z.status="gr";rl("drm_gk_s",void 0,z.videoData.N);z.url=Hqg(z);try{z.T=K.createSession(z.D,function(f){zS(z,{m:f})})}catch(f){K="t.g"; f instanceof DOMException&&(K+=";c."+f.code);z.publish("licenseerror","drm.unavailable",1,K,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}z.T&&(QNv(z.T,function(f,M){qhS(z,f,M)},function(f,M,p){if(!z.CH()){M=void 0; var t=1;g.UQ(z.Y)&&g.jo(z.SV)&&z.SV.B("html5_enable_safari_fairplay")&&p===1212433232&&(M="ERROR_HDCP",t=z.SV.B("html5_safari_fairplay_ignore_hdcp")?0:t);z.error("drm.keyerror",t,f,M)}},function(){z.CH()||(zS(z,{onkyadd:1}),z.Y1||(z.publish("sessionready"),z.Y1=!0))},function(f){z.h1(f)}),g.d(z,z.T))}; Hqg=function(z){var K=z.baseUrl;kUd(K)||z.error("drm.net",2,"t.x");if(!Wv(K,"fexp")){var f=["23898307","23914062","23916106","23883098"].filter(function(p){return z.SV.experiments.experiments[p]}); f.length>0&&(z.C.fexp=f.join())}f=g.a(Object.keys(z.C));for(var M=f.next();!M.done;M=f.next())M=M.value,K=Osd(K,M,z.C[M]);return K}; qhS=function(z,K,f){if(!z.CH())if(K){zS(z,{onkmtyp:f});z.status="km";switch(f){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":nYv(z,K);return;default:z.publish("ctmp","message_type",{t:f,l:K.byteLength})}z.l_||(rl("drm_gk_f",void 0,z.videoData.N),z.l_=!0,z.publish("newsession",z));if(ZH(z.Y)&&(K=WR8(K),!K))return;K=new Shq(K,++z.requestNumber,z.videoData.N);umW(K,function(M){JIo(z,M)},function(M,p,t){if(!z.CH()){var B=0; M.S.Y>=3&&(B=1,p="drm.net.retryexhausted");zS(z,{onlcsrqerr:p,info:t});z.error(p,B,t);z.shouldRetry(gI(B),M)&&gY5(z,M)}}); g.d(z,K);iM8(z,K)}else z.error("drm.unavailable",1,"km.empty")}; nYv=function(z,K){zS(z,{sdpvrq:1});z.W=Date.now();if(z.Y.flavor!=="widevine")z.error("drm.provision",1,"e.flavor;f."+z.Y.flavor+";l."+K.byteLength);else{var f={cpn:z.videoData.clientPlaybackNonce};Object.assign(f,z.SV.S);f=g.V8("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",f);K={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, K)}),responseType:"arraybuffer"};g.gV(f,K,3,500).then(ng(function(M){M=M.xhr;if(!z.CH()){M=new Uint8Array(M.response);var p=String.fromCharCode.apply(null,M);try{var t=JSON.parse(p)}catch(B){}t&&t.signedResponse?(z.publish("ctmp","drminfo",{provisioning:1}),t=(Date.now()-z.W)/1E3,z.W=NaN,z.publish("ctmp","provs",{et:t.toFixed(3)}),z.T&&z.T.update(M)):(t=t&&t.error&&t.error.message,M="e.parse",t&&(M+=";m."+t),z.error("drm.provision",1,M))}}),ng(function(M){z.CH()||z.error("drm.provision",1,"e."+M.errorCode+ ";c."+(M.xhr&&M.xhr.status))}))}}; KH=function(z){var K;if(K=z.N&&z.T!=null)z=z.T,K=!(!z.S||!z.S.keyStatuses);return K}; iM8=function(z,K){z.status="km";rl("drm_net_s",void 0,z.videoData.N);var f=new g.M1(z.SV.MD),M={context:g.y5(f.config_||g.Dh())};M.drmSystem=d4g[z.Y.flavor];M.videoId=z.videoData.videoId;M.cpn=z.videoData.clientPlaybackNonce;M.sessionId=z.sessionId;M.licenseRequest=g.NW(K.message);M.drmParams=z.videoData.drmParams;isNaN(z.cryptoPeriodIndex)||(M.isKeyRotated=!0,M.cryptoPeriodIndex=z.cryptoPeriodIndex);var p,t,B=!!((p=z.videoData.Y)==null?0:(t=p.video)==null?0:t.isHdr());M.drmVideoFeature=B?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(M.context&&M.context.client){if(p=z.SV.S)M.context.client.deviceMake=p.cbrand,M.context.client.deviceModel=p.cmodel,M.context.client.browserName=p.cbr,M.context.client.browserVersion=p.cbrver,M.context.client.osName=p.cos,M.context.client.osVersion=p.cosver;M.context.user=M.context.user||{};M.context.request=M.context.request||{};z.videoData.Hx&&(M.context.user.credentialTransferTokens=[{token:z.videoData.Hx,scope:"VIDEO"}]);M.context.request.mdxEnvironment=z.videoData.mdxEnvironment|| M.context.request.mdxEnvironment;z.videoData.D3&&(M.context.user.kidsParent={oauthToken:z.videoData.D3});g.UQ(z.Y)&&(M.fairplayKeyId=g.NW(Eo8(z.fairplayKeyId)));g.IB(z.SV,g.X6(z.videoData)).then(function(v){EOg(K,M,f,v);z.status="rs"})}else z.error("drm.net",2,"t.r;ic.0")}; JIo=function(z,K){if(!z.CH())if(zS(z,{onlcsrsp:1}),z.status="rr",K.statusCode!==0)z.error("drm.auth",1,"t.f;c."+K.statusCode,K.errorMessage||void 0);else{rl("drm_kr_s",void 0,z.videoData.N);if(K.heartbeatParams&&K.heartbeatParams.url&&z.videoData.B("outertube_streaming_data_always_use_staging_license_service")){var f=z.Y.Y.match(/(.*)youtube.com/g);f&&(K.heartbeatParams.url=f[0]+K.heartbeatParams.url)}K.heartbeatParams&&z.publish("newlicense",K.heartbeatParams);K.Y&&(z.J=K.Y,z.videoData.p5||z.publish("newlicense", new aoq),z.videoData.p5=!0,z.G=$E(z.J,function(M){return M.includes("HDR")})); K.S&&(z.SV.B("html5_enable_vp9_fairplay")&&TO(z.Y)?(f=g.NW(Eo8(z.fairplayKeyId),4),z.S[f]={type:K.S[f],status:"unknown"}):z.S=XT(K.S,function(M){return{type:M,status:"unknown"}})); Cx(z.Y)&&(K.message=jPv(g.NW(K.message)));z.T&&(zS(z,{updtks:1}),z.status="ku",z.T.update(K.message).then(function(){rl("drm_kr_f",void 0,z.videoData.N);KH(z)||(zS(z,{ksApiUnsup:1}),z.publish("keystatuseschange",z))},function(M){M="msuf.req."+z.requestNumber+";msg."+g.vi(M.message,3); z.error("drm.keyerror",1,M)})); g.UQ(z.Y)&&z.publish("fairplay_next_need_key_info",z.baseUrl,K.nextFairplayKeyId);z.SV.B("html5_enable_vp9_fairplay")&&TO(z.Y)&&z.publish("qualitychange",cII(z.J));K.sabrLicenseConstraint&&z.publish("sabrlicenseconstraint",K.sabrLicenseConstraint)}}; gY5=function(z,K){var f=K.S.getValue();f=new g.Kl(function(){iM8(z,K)},f); g.d(z,f);f.start();g.xj(K.S);zS(z,{rtyrq:1})}; sMS=function(z,K){for(var f=[],M=g.a(Object.keys(z.S)),p=M.next();!p.done;p=M.next())p=p.value,f.push(p+"_"+z.S[p].type+"_"+z.S[p].status);return f.join(K)}; AIp=function(z){var K={};K[z.status]=KH(z)?sMS(z,"."):z.J.join(".");return K}; jMg=function(z,K,f){var M={};M.isHdr=K.includes("HDR");switch(K.replace("HDR","").replace("720","")){case "AUDIO":M.trackType=1;break;case "SD":M.trackType=2;break;case "HD":M.trackType=3;break;case "UHD1":M.trackType=4;break;case "UHD2":M.trackType=5;break;default:M.trackType=0}!M.trackType||f[K]||KH(z)&&!$x(z,K)||(z.authorizedFormats.push(M),f[K]=!0)}; $x=function(z,K){for(var f in z.S)if(z.S[f].status==="usable"&&z.S[f].type===K)return!0;return!1}; Yy8=function(z,K){for(var f in z.S)if(z.S[f].type===K)return z.S[f].status}; zS=function(z,K){var f=f===void 0?!1:f;Wf(K);(f||z.SV.i8())&&z.publish("ctmp","drmlog",K)}; Xzg=function(z){var K=z[0];z[0]=z[3];z[3]=K;K=z[1];z[1]=z[2];z[2]=K;K=z[4];z[4]=z[5];z[5]=K;K=z[6];z[6]=z[7];z[7]=K}; cII=function(z){return g.h2(z,"UHD2")||g.h2(z,"UHD2HDR")?"highres":g.h2(z,"UHD1")||g.h2(z,"UHD1HDR")?"hd2160":g.h2(z,"HD")||g.h2(z,"HDHDR")?"hd1080":g.h2(z,"HD720")||g.h2(z,"HD720HDR")?"hd720":"large"}; WR8=function(z){for(var K="",f=0;f'.charCodeAt(M);z=z.T.createSession("video/mp4",K,f);return new fH(null,null,null,null,z)}; TGg=function(z,K){var f=z.W[K.sessionId];!f&&z.J&&(f=z.J,z.J=null,f.sessionId=K.sessionId,z.W[K.sessionId]=f);return f}; ZMI=function(z,K){var f=z.subarray(4);f=new Uint16Array(f.buffer,f.byteOffset,f.byteLength/2);f=String.fromCharCode.apply(null,f).match(/ek=([0-9a-f]+)/)[1];for(var M="",p=0;p19.2999?(z=f.Hf,f=f.jl,f>=z&&(f=z* .75),K=(z-f)*.5,f=new T2(K,z,z-K-f,this)):f=null;break a;case "widevine":f=new Ug(K,this,z);break a;default:f=null}if(this.C=f)g.d(this,this.C),this.C.subscribe("rotated_need_key_info_ready",this.iR,this),this.C.subscribe("log_qoe",this.Je,this);KO(this.SV.experiments);this.Je({cks:this.S.getInfo()})}; zla=function(z){var K=rIT(z.J);K?K.then(ng(function(){$78(z)}),ng(function(f){if(!z.CH()){g.sm(f); var M="t.a";f instanceof DOMException&&(M+=";n."+f.name+";m."+f.message);z.publish("licenseerror","drm.unavailable",1,M,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(z.Je({mdkrdy:1}),z.N=!0); z.Y1&&(K=rIT(z.Y1))}; MF8=function(z,K,f){z.Px=!0;f=new vz(K,f);z.SV.B("html5_eme_loader_sync")&&(z.W.get(K)||z.W.set(K,f));fLp(z,f)}; fLp=function(z,K){if(!z.CH()){z.Je({onInitData:1});if(z.SV.B("html5_eme_loader_sync")&&z.videoData.T&&z.videoData.T.S){var f=z.G.get(K.initData);K=z.W.get(K.initData);if(!f||!K)return;K=f;f=K.initData;z.W.remove(f);z.G.remove(f)}z.Je({initd:K.initData.length,ct:K.contentType});if(z.S.flavor==="widevine")if(z.eV&&!z.videoData.isLivePlayback)tx(z);else{if(!(z.SV.B("vp9_drm_live")&&z.videoData.isLivePlayback&&K.qT)){z.eV=!0;f=K.cryptoPeriodIndex;var M=K.S;RZg(K);K.qT||(M&&K.S!==M?z.publish("ctmp","cpsmm", {emsg:M,pssh:K.S}):f&&K.cryptoPeriodIndex!==f&&z.publish("ctmp","cpimm",{emsg:f,pssh:K.cryptoPeriodIndex}));z.publish("widevine_set_need_key_info",K)}}else z.iR(K)}}; $78=function(z){if(!z.CH())if(z.SV.B("html5_drm_set_server_cert")||TO(z.S)){var K=z.J.setServerCertificate();K?K.then(ng(function(f){z.SV.i8()&&z.publish("ctmp","ssc",{success:f})}),ng(function(f){z.publish("ctmp","ssce",{n:f.name, m:f.message})})).then(ng(function(){p0o(z)})):p0o(z)}else p0o(z)}; p0o=function(z){z.CH()||(z.N=!0,z.Je({onmdkrdy:1}),tx(z))}; tF8=function(z){return z.S.flavor==="widevine"&&z.videoData.B("html5_drm_cpi_license_key")}; tx=function(z){if(z.Px&&z.N&&!z.Hx){for(;z.T.length;){var K=z.T[0],f=tF8(z)?SQp(K):g.NW(K.initData);if(TO(z.S)&&!K.Y)z.T.shift();else{if(z.Y.get(f))if(z.S.flavor!=="fairplay"||TO(z.S)){z.T.shift();continue}else z.Y.delete(f);RZg(K);break}}z.T.length&&z.createSession(z.T[0])}}; BXW=function(z){var K;if(K=g.CJ()){var f;K=!((f=z.J.Y)==null||!f.getMetrics)}K&&(K=z.J.getMetrics())&&(K=g.dz(K),z.publish("ctmp","drm",{metrics:K}))}; NXg=function(){var z=gn5();return!(!z||z==="visible")}; IL8=function(z){var K=ve8();K&&document.addEventListener(K,z,!1)}; G2T=function(z){var K=ve8();K&&document.removeEventListener(K,z,!1)}; ve8=function(){if(document.visibilityState)var z="visibilitychange";else{if(!document[RZ+"VisibilityState"])return"";z=RZ+"visibilitychange"}return z}; bog=function(z){g.J.call(this);var K=this;this.AL=z;this.mT=0;this.W=this.Y=this.C=!1;this.J=0;this.pH=this.AL.Z();this.videoData=this.AL.getVideoData();this.T=g.uY(this.pH.experiments,"html5_delayed_retry_count");this.S=new g.Kl(function(){K.AL.bW()},g.uY(this.pH.experiments,"html5_delayed_retry_delay_ms")); g.d(this,this.S)}; k2u=function(z,K,f){var M=z.videoData.Y,p=z.videoData.J;NE(z.AL.getVideoData())&&z.pH.B("html5_gapless_fallback_on_qoe_restart")&&yTS(z.AL,"pe");if((K==="progressive.net.retryexhausted"||K==="fmt.unplayable"||K==="fmt.decode")&&!z.AL.i9.C&&M&&M.itag==="22")return z.AL.i9.C=!0,z.yW("qoe.restart",{reason:"fmt.unplayable.22"}),z.AL.b4(),!0;var t=!1;if(z.videoData.isExternallyHostedPodcast){if(t=z.videoData.E3H)f.mimeType=t.type,z.Th("3pp",{url:t.url});f.ns="3pp";z.AL.HA(K,1,"VIDEO_UNAVAILABLE",Wf((new Jq(K, f,1)).details));return!0}var B=z.mT+3E4<(0,g.X)()||z.S.isActive();if(z.pH.B("html5_empty_src")&&z.videoData.isAd()&&K==="fmt.unplayable"&&/Empty src/.test(""+f.msg))return f.origin="emptysrc",z.yW("auth",f),!0;B||elI(z.AL.cC())||(f.nonfg="paused",B=!0,z.AL.pauseVideo());(K==="fmt.decode"||K==="fmt.unplayable")&&(p==null?0:Mh(p)||pZ(p))&&(K3q(z.pH.C,p.Ra),f.acfallexp=p.Ra,t=B=!0);!B&&z.T>0&&(z.S.start(),B=!0,f.delayed="1",--z.T);p=z.AL.loader;!B&&((M==null?0:fZ(M))||(M==null?0:zr(M)))&&(K3q(z.pH.C, M.Ra),t=B=!0,f.cfallexp=M.Ra);if(!B)return w0o(z,f);B=!1;z.C?z.mT=(0,g.X)():B=z.C=!0;var v=z.videoData;if(v.b_){v=v.b_.H4();var I=Date.now()/1E3+1800;v=v6048E5&&SgS(z,"signature");return!1}; SgS=function(z,K){try{K={detail:"pr."+K},g.zt(z.pH)&&z.pH.B("html5_reload_by_kabuki_app")?z.AL.HA("qoe.restart",1,void 0,Wf(K),"7"):(z.yW("qoe.restart",K),window.location.reload())}catch(f){}}; Lbu=function(z,K){var f=z.pH.C;f.G=!1;f.Y=!0;z.yW("qoe.restart",{e:K===void 0?"fmt.noneavailable":K,detail:"hdr"});z.AL.bW(!0)}; Eed=function(z,K,f,M,p,t){this.videoData=z;this.S=K;this.reason=f;this.Y=M;this.token=p;this.videoId=t}; B3=function(z,K,f){this.SV=z;this.M5=K;this.AL=f;this.D=this.W=this.S=this.J=this.G=this.Y=0;this.C=!1;this.N=g.uY(this.SV.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.T=new Map}; HoS=function(z,K,f){!z.SV.B("html5_tv_ignore_capable_constraint")&&g.iY(z.SV)&&(f=f.compose(PT8(z,K)));return f}; QFu=function(z){if(z.AL.cC().isInline())return ZY;var K;z.B("html5_exponential_memory_for_sticky")?K=mF(z.SV.Gw,"sticky-lifetime")<.5?"auto":hH[oe()]:K=hH[oe()];return g.DJ("auto",K,!1,"s")}; m7v=function(z,K){var f,M=qgu(z,(f=K.S)==null?void 0:f.videoInfos);f=z.AL.getPlaybackRate();return f>1&&M?(z=Cqg(z.SV.C,K.S.videoInfos,f),new wp(0,z,!0,"o")):new wp(0,0,!1,"o")}; qgu=function(z,K){return K&&g.iY(z.SV)?K.some(function(f){return f.video.fps>32}):!1}; lLg=function(z,K){if(z.B("html5_disable_ustreamer_constraint_for_sabr")&&bv(K.videoData))return ZY;var f=z.AL.rB();z.B("html5_use_video_quality_cap_for_ustreamer_constraint")&&f&&f.Ro>0&&k6(K.videoData.Nq)&&(z=f.Ro,K.videoData.Nq=new wp(0,z,!1,"u"));return K.videoData.Nq}; PT8=function(z,K){if(g.iY(z.SV)&&VO(z.SV.C,nX.HEIGHT))var f=K.S.videoInfos[0].video.qualityOrdinal;else{var M=z.bq(!!K.S.S);vw(K.videoData)||OM(K.videoData);K=K.S.videoInfos;if(K.length){var p=g.uY(z.SV.experiments,"html5_override_oversend_fraction")||.85,t=K[0].video;t.projectionType!=="MESH"&&t.projectionType!=="EQUIRECTANGULAR"&&t.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||d7||(p=.45);z=g.uY(z.SV.experiments,"html5_viewport_undersend_maximum");for(t=0;t0&&(f=Math.min(f,M));if(M=g.uY(z.SV.experiments,"html5_max_vertical_resolution")){z=4320;for(p=0;pM&&(z=Math.min(z,t.video.qualityOrdinal));if(z<4320){for(p=M=0;p32){p=!0;break a}}p=!1}p&&(f=Math.min(f,M));(M=g.uY(z.SV.experiments,"html5_live_quality_cap"))&&K.videoData.isLivePlayback&&(f=Math.min(f,M));f=neS(z,K,f);z=g.uY(z.SV.experiments,"html5_byterate_soft_cap");return new wp(0,f===4320?0:f,!1,"d",z)}; Jru=function(z){var K,f,M,p;return g.n(function(t){switch(t.Y){case 1:return z.S.S&&typeof((K=navigator.mediaCapabilities)==null?void 0:K.decodingInfo)==="function"?g.l(t,Promise.resolve(),2):t.return(Promise.resolve());case 2:f=g.a(z.S.videoInfos),M=f.next();case 3:if(M.done){t.jV(0);break}p=M.value;return g.l(t,nka(p),4);case 4:M=f.next(),t.jV(3)}})}; iop=function(z,K){if(!K.videoData.Y||z.B("html5_disable_performance_downgrade"))return!1;Date.now()-z.G>6E4&&(z.Y=0);z.Y++;z.G=Date.now();if(z.Y!==4)return!1;geg(z,K.videoData.Y);return!0}; crg=function(z,K,f,M){if(!K||!f||!K.videoData.Y)return!1;var p=g.uY(z.SV.experiments,"html5_df_downgrade_thresh"),t=z.B("html5_log_media_perf_info");if(!((0,g.X)()-z.J<5E3?0:t||p>0))return!1;var B=((0,g.X)()-z.J)/1E3;z.J=(0,g.X)();f=f.getVideoPlaybackQuality();if(!f)return!1;var v=f.droppedVideoFrames-z.W,I=f.totalVideoFrames-z.D;z.W=f.droppedVideoFrames;z.D=f.totalVideoFrames;var G=f.displayCompositedVideoFrames===0?0:f.displayCompositedVideoFrames||-1;t&&z.SV.i8()&&z.AL.Th("ddf",{dr:f.droppedVideoFrames, de:f.totalVideoFrames,comp:G});if(M)return z.S=0,!1;if((I-v)/B>z.N||!p||g.iY(z.SV))return!1;z.S=(I>60?v/I:0)>p?z.S+1:0;if(z.S!==3)return!1;geg(z,K.videoData.Y);z.AL.Th("dfd",Object.assign({dr:f.droppedVideoFrames,de:f.totalVideoFrames},d78()));return!0}; geg=function(z,K){var f=K.Ra,M=K.video.fps,p=K.video.qualityOrdinal-1,t=z.T;K=""+f+(M>49?"p60":M>32?"p48":"");f=Yy(f,M,t);p>0&&(f=Math.min(f,p));if(!Nj.has(K)&&Uo().includes(K)){var B=f;f=TI();+f[K]>0&&(B=Math.min(+f[K],B));f[K]!==B&&(f[K]=B,g.sT("yt-player-performance-cap",f,2592E3))}else if(Nj.has(K)||t==null){a:{B=B===void 0?!0:B;M=Uo().slice();if(B){if(M.includes(K))break a;M.push(K)}else{if(!M.includes(K))break a;M.splice(M.indexOf(K),1)}g.sT("yt-player-performance-cap-active-set",M,2592E3)}jn.set(K, f)}else Nj.add(K),t==null||t.set(K,f);z.AL.UD()}; sFp=function(z,K){if(!K.S.S)return z.C?new wp(0,360,!1,"b"):ZY;for(var f=!1,M=!1,p=g.a(K.S.videoInfos),t=p.next();!t.done;t=p.next())fZ(t.value)?f=!0:M=!0;f=f&&M;M=0;p=g.uY(z.SV.experiments,"html5_performance_cap_floor");p=z.SV.Y?240:p;K=g.a(K.S.videoInfos);for(t=K.next();!t.done;t=K.next()){var B=t.value;if(!f||!fZ(B))if(t=Yy(B.Ra,B.video.fps,z.T),B=B.video.qualityOrdinal,Math.max(t,p)>=B){M=B;break}}return new wp(0,M,!1,"b")}; Aro=function(z,K){var f=z.AL.cC();return f.isInline()&&!K.XN?new wp(0,480,!1,"v"):bv(K)?ZY:f.isBackground()&&nv()/1E3>60&&!g.iY(z.SV)?new wp(0,360,!1,"v"):ZY}; jFp=function(z,K,f){if(z.SV.experiments.sf("html5_disable_client_autonav_cap_for_onesie")&&K.fetchType==="onesie"||g.iY(z.SV)&&(oe(-1)>=1080||K.osid))return ZY;var M=g.uY(z.SV.experiments,"html5_autonav_quality_cap"),p=g.uY(z.SV.experiments,"html5_autonav_cap_idle_secs");return M&&K.isAutonav&&nv()/1E3>p?(f&&(M=neS(z,f,M)),new wp(0,M,!1,"e")):ZY}; neS=function(z,K,f){if(z.B("html5_optimality_defaults_chooses_next_higher")&&f)for(z=K.S.videoInfos,K=1;K=0||(z.provider.AL.getVisibilityState()===3?z.C=!0:(z.S=g.ZL(z.provider),z.delay.start()))}; x7W=function(z){if(!(z.Y<0)){var K=g.ZL(z.provider),f=K-z.J;z.J=K;z.playerState.state===8?z.playTimeSecs+=f:z.playerState.isBuffering()&&!g.Z(z.playerState,16)&&(z.rebufferTimeSecs+=f)}}; Fbo=function(z){var K;switch((K=z.SV.playerCanaryStage)==null?void 0:K.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}}; Oov=function(z){return window.PressureObserver&&new window.PressureObserver(z)}; rr5=function(z){z=z===void 0?Oov:z;g.J.call(this);var K=this;try{this.T=z(function(M){K.Y=M.at(-1)}); var f;this.J=(f=this.T)==null?void 0:f.observe("cpu",{sampleInterval:2E3}).catch(function(M){M instanceof DOMException&&(K.S=M)})}catch(M){M instanceof DOMException&&(this.S=M)}}; Zog=function(z){var K={},f=window.h5vcc;K.hwConcurrency=navigator.hardwareConcurrency;z.S&&(K.cpe=z.S.message);z.Y&&(K.cpt=z.Y.time,K.cps=z.Y.state);if(f==null?0:f.cVal)K.cb2s=f.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),K.cb5s=f.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),K.cb30s=f.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return K}; oeW=function(z){var K;g.n(function(f){switch(f.Y){case 1:return g.Sq(f,2),g.l(f,z.J,4);case 4:g.Eu(f,3);break;case 2:g.QI(f);case 3:(K=z.T)==null||K.disconnect(),g.Rv(f)}})}; TXp=function(z,K){K?CTu.test(z):(z=g.Iw(z),Object.keys(z).includes("cpn"))}; zOu=function(z,K,f,M,p,t,B){var v={format:"RAW"},I={};if(eg(z)&&wV()){if(B){var G;((G=U7S.uaChPolyfill)==null?void 0:G.state.type)!==2?B=null:(B=U7S.uaChPolyfill.state.data.values,B={"Synth-Sec-CH-UA-Arch":B.architecture,"Synth-Sec-CH-UA-Model":B.model,"Synth-Sec-CH-UA-Platform":B.platform,"Synth-Sec-CH-UA-Platform-Version":B.platformVersion,"Synth-Sec-CH-UA-Full-Version":B.uaFullVersion});I=Object.assign(I,B);v.withCredentials=!0}(B=g.zM("EOM_VISITOR_DATA"))?I["X-Goog-EOM-Visitor-Id"]=B:M?I["X-Goog-Visitor-Id"]= M:g.zM("VISITOR_DATA")&&(I["X-Goog-Visitor-Id"]=g.zM("VISITOR_DATA"));f&&(I["X-Goog-PageId"]=f);(M=K.nH)&&!fa(K)&&(I["X-Goog-AuthUser"]=M);p&&(I.Authorization="Bearer "+p);K.B("enable_datasync_id_header_in_web_vss_pings")&&K.s8&&K.datasyncId&&(I["X-YouTube-DataSync-Id"]=K.datasyncId);B||I["X-Goog-Visitor-Id"]||p||f||M?v.withCredentials=!0:K.B("html5_send_cpn_with_options")&&CTu.test(z)&&(v.withCredentials=!0)}Object.keys(I).length>0&&(v.headers=I);t&&(v.onFinish=t);return Object.keys(v).length>1? v:null}; KO5=function(z,K,f,M,p,t,B,v){wV()&&f.token&&(z=GM(z,{ctt:f.token,cttype:f.C1,mdx_environment:f.mdxEnvironment}));M.B("net_pings_low_priority")&&(K||(K={}),K.priority="low");t||v&&M.B("nwl_skip_retry")?(K==null?K={}:TXp(z,M.B("html5_assert_cpn_with_regex")),B?$h().sendAndWrite(z,K):$h().sendThenWrite(z,K,v)):K?(TXp(z,M.B("html5_assert_cpn_with_regex")),px8(z,K)):g.F$(z,p)}; $j5=function(z){for(var K=[],f=0;f0&&f>0&&!z.Y&&z.T<1E7)try{z.J=z.C({sampleInterval:K,maxBufferSize:f});var M;(M=z.J)==null||M.addEventListener("samplebufferfull",function(){return g.n(function(p){if(p.Y==1)return g.l(p,z.stop(),2);p3p(z);g.Rv(p)})})}catch(p){z.Y=Mf8(p.message)}}; GS=function(z,K){var f,M;return!!((f=window.h5vcc)==null?0:(M=f.settings)==null?0:M.set(z,K))}; BvW=function(){var z,K,f,M=(z=window.h5vcc)==null?void 0:(K=z.settings)==null?void 0:(f=K.getPersistentSettingAsString)==null?void 0:f.call(K,"cpu_usage_tracker_intervals");if(M!=null){var p;z=(p=JSON.parse(M))!=null?p:[];p=z.filter(function(G){return G.type==="total"}).map(function(G){return G.seconds}); K=g.a(tf8);for(f=K.next();!f.done;f=K.next())f=f.value,p.indexOf(f)===-1&&z.push({type:"total",seconds:f});var t,B;(t=window.h5vcc)==null||(B=t.settings)==null||B.set("cpu_usage_tracker_intervals_enabled",1);var v,I;(v=window.h5vcc)==null||(I=v.settings)==null||I.set("cpu_usage_tracker_intervals",JSON.stringify(z))}}; NvT=function(){var z=window.H5vccPlatformService,K="";if(z&&z.has("dev.cobalt.coat.clientloginfo")&&(z=z.open("dev.cobalt.coat.clientloginfo",function(){}))){var f=z.send(new ArrayBuffer(0)); f&&(K=String.fromCharCode.apply(String,g.P(new Uint8Array(f))));z.close()}return K}; g.wv=function(z){g.J.call(this);var K=this;this.provider=z;this.logger=new g.Np("qoe");this.S=new Map;this.sequenceNumber=1;this.nH=NaN;this.Dv="N";this.D=this.q5=this.Ta=this.l_=this.Y=0;this.Z2=this.vx=this.W=this.Xc="";this.ra=this.Px=NaN;this.O3=0;this.RF=-1;this.E0=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.TP=this.isEmbargoed=this.eV=this.isOffline=this.isBuffering=!1;this.QW=[];this.N=null;this.SE=this.J=this.oa=this.G=!1;this.T=-1;this.b_=!1;this.D3=new g.Kl(this.LQ,750,this);this.OV= this.adCpn=this.Y1=this.contentCpn="";this.adFormat=void 0;this.Ph=0;this.rE=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.SU=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.nI=!1;this.Ft=NaN;this.Bx=0;this.W1=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.LI=!1;this.dO={ZR:function(M){K.ZR(M)}, Y_E:function(){return K.C}, nJ:function(){return K.contentCpn}, ONV:function(){return K.Y1}, reportStats:function(){K.reportStats()}, DPq:function(){return K.S.get("cat")||[]}, TW:function(M){return K.S.get(M)||[]}, Kmq:function(){return K.S}, DbE:function(){return 0}, mP1:function(){return{adCpn:K.adCpn,OV:K.OV,adFormat:K.adFormat}}}; this.Hx=this.provider.SV.B("html5_qoe_relaxed_reporting");var f=g.uY(this.provider.SV.experiments,"html5_qoe_proto_mock_length");f&&!bG.length&&(bG=$j5(f));g.d(this,this.D3);try{navigator.getBattery().then(function(M){K.N=M})}catch(M){}g.ef(this,0,"vps",["N"]); z.SV.i8()&&(this.Bx=(0,g.X)(),this.Ft=g.um(function(){var M=(0,g.X)(),p=M-K.Bx;p>500&&K.Th("vmlock",{diff:p.toFixed()});K.Bx=M},250)); this.provider.videoData.ya&&(this.remoteControlMode=vx8[this.provider.videoData.ya]||0);this.provider.videoData.O8&&(f=NII(this.provider.videoData.O8),f==null?0:f.length)&&(this.remoteConnectedDevices=f);z.SV.i8()&&(this.VE=new rr5,g.d(this,this.VE));f=g.uY(z.SV.experiments,"html5_js_self_profiler_sample_interval_ms");z=g.uY(z.SV.experiments,"html5_js_self_profiler_max_samples");f>0&&z>0&&(this.QE=new Ic(f,z),g.d(this,this.QE))}; Dt=function(z,K,f){var M=z.S.get(K);M?M.push(f):z.S.set(K,[f])}; g.ef=function(z,K,f,M){Dt(z,f,K.toFixed(3)+":"+M.join(":"))}; It8=function(z,K){var f=z.adCpn||z.provider.videoData.clientPlaybackNonce,M=z.provider.getCurrentTime(f);g.ef(z,K,"cmt",[M.toFixed(3)]);M=z.provider.t$(f);if(z.C&&M*1E3>z.C.V0+100&&z.C){var p=z.C;f=p.isAd;M=M*1E3-p.V0;z.d1=K*1E3-p.uKL-M-p.xTE;p=(0,g.X)()-M;K=z.d1;M=z.provider.videoData;var t=M.isAd();if(f||t){t=(f?"ad":"video")+"_to_"+(t?"ad":"video");var B={};M.W&&(B.cttAuthInfo={token:M.W,videoId:M.videoId});B.startTime=p-K;oV(t,B);g.ZE({targetVideoId:M.videoId,targetCpn:M.clientPlaybackNonce}, t);rl("pbs",p,t)}else p=z.provider.AL.Rx(),p.W!==M.clientPlaybackNonce?(p.C=M.clientPlaybackNonce,p.Y=K):M.WW()||g.Al(new g.UT("CSI timing logged before gllat",{cpn:M.clientPlaybackNonce}));z.Th("gllat",{l:z.d1.toFixed(),prev_ad:+f});delete z.C}}; yn=function(z,K){K=K===void 0?NaN:K;K=K>=0?K:g.ZL(z.provider);var f=z.provider.AL.Mh(),M=f.iO-(z.Px||0);M>0&&g.ef(z,K,"bwm",[M,(f.Ms-(z.ra||0)).toFixed(3)]);isNaN(z.Px)&&f.iO&&z.isOffline&&z.ZR(!1);z.Px=f.iO;z.ra=f.Ms;isNaN(f.bandwidthEstimate)||g.ef(z,K,"bwe",[f.bandwidthEstimate.toFixed(0)]);z.provider.SV.i8()&&Object.keys(f.S).length!==0&&z.Th("bwinfo",f.S);if(z.provider.SV.i8()||z.provider.SV.B("html5_log_meminfo"))M=E3W(z.provider.B("html5_enable_chrobalt_media_source_memory_apis")),Object.values(M).some(function(t){return t!== void 0})&&z.Th("meminfo",M); if(z.provider.SV.i8()){var p;(M=(p=z.VE)==null?void 0:Zog(p))&&Object.values(M).some(function(t){return t!=null})&&z.Th("cpuinfo",M)}z.QE&&z.Th("jsprof",z.QE.flush()); z.N&&g.ef(z,K,"bat",[z.N.level,z.N.charging?"1":"0"]);p=z.provider.AL.getVisibilityState();z.RF!==p&&(g.ef(z,K,"vis",[p]),z.RF=p);It8(z,K);(p=GSu(z.provider))&&p!==z.O3&&(g.ef(z,K,"conn",[p]),z.O3=p);bHd(z,K,f)}; bHd=function(z,K,f){if(!isNaN(f.fk)){var M=f.fk;f.Y96E3&&(new g.Kl(z.reportStats,0,z)).start()}}; DjS=function(z){z.provider.videoData.Yx&&kx(z,"prefetch");z.provider.videoData.Ft&&z.Th("reload",{r:z.provider.videoData.reloadReason,ct:z.provider.videoData.Ft});z.provider.videoData.oa&&kx(z,"monitor");z.provider.videoData.isLivePlayback&&kx(z,"live");BZ&&kx(z,"streaming");z.provider.videoData.ya&&z.Th("ctrl",{mode:z.provider.videoData.ya},!0);if(z.provider.videoData.O8){var K=z.provider.videoData.O8.replace(/,/g,"_");z.Th("ytp",{type:K},!0)}z.provider.videoData.qS&&(K=z.provider.videoData.qS.replace(/,/g, "."),z.Th("ytrexp",{ids:K},!0));var f=z.provider.videoData;K=z.provider.SV.B("enable_white_noise")||z.provider.SV.B("enable_webgl_noop");f=g.Su(f)||g.Ww(f)||g.Jf(f)||g.gH(f);(K||f)&&(K=(0,g.hx)())&&z.S.set("gpu",[K]);OM(z.provider.videoData)&&g.ef(z,g.ZL(z.provider),"dt",["1"]);z.provider.SV.i8()&&(K=(0,g.X)()-z.provider.SV.FK,z.Th("playerage",{secs:Math.pow(1.6,Math.round(Math.log(K/1E3)/Math.log(1.6))).toFixed()}));z.J=!0;z.nH=g.um(function(){z.reportStats()},1E4)}; kSI=function(z,K,f){var M=g.ZL(z.provider);yxg(z,M,K,0,f);yn(z,M);w38(z)}; yxg=function(z,K,f,M,p){var t=z.provider.SV.S.cbrver;z.provider.SV.S.cbr==="Chrome"&&/^96[.]/.test(t)&&f==="net.badstatus"&&/rc\.500/.test(p)&&hOW(z,3);z.provider.SV.B("html5_use_ump")&&/b248180278/.test(p)&&hOW(z,4);t=z.provider.getCurrentTime(z.adCpn||z.provider.videoData.clientPlaybackNonce);M=M===1?"fatal":"";f=[f,M,t.toFixed(3)];M&&(p+=";a6s."+kH());p&&f.push(atW(p));g.ef(z,K,"error",f);z.J=!0}; vOS=function(z,K){var f=g.ZL(z.provider);if(!z.provider.SV.experiments.sf("html5_refactor_sabr_video_format_selection_logging")||K.S.id!==z.Xc){var M=[K.S.id,K.Y,z.Xc,K.reason];K.token&&M.push(K.token);g.ef(z,f,"vfs",M);z.Xc=K.S.id;M=z.provider.AL.getPlayerSize();if(M.width>0&&M.height>0){M=[Math.round(M.width),Math.round(M.height)];var p=g.Ka();p>1&&M.push(p);g.ef(z,f,"view",M)}z.oa||(z.provider.SV.i8()&&kx(z,"rqs2"),z.provider.videoData.S&&LX(z.provider.videoData.S)&&z.S.set("preload",["1"]));z.oa= !0;z.J=!0}K.reason==="m"&&++z.Ph===100&&hOW(z,2);g.ef(z,f,"vps",[z.Dv]);z.Hx||z.reportStats(f)}; ROT=function(z){z.T>=0||(z.provider.SV.PA||z.provider.AL.getVisibilityState()!==3?z.T=g.ZL(z.provider):z.b_=!0)}; Nqv=function(z,K,f){if(z.provider.SV.experiments.sf("html5_refactor_sabr_audio_format_selection_logging")){K=f.S;var M=[K.audio&&K.video?K.Gg?K.Gg:"":K.id];K.b8&&K.b8.id&&M.push(K.b8.id);K=M.join(";");K!==z.W&&(M=[K,z.W,f.reason],f.token&&M.push(f.token),g.ef(z,g.ZL(z.provider),"afs",M),z.W=K)}else f.S.id!==z.W&&(M=[f.S.id,z.W,f.reason],f.token&&M.push(f.token),g.ef(z,K,"afs",M),z.W=f.S.id)}; kx=function(z,K){Dt(z,"cat",K)}; ac=function(z,K,f,M,p,t){var B=g.ZL(z.provider);f!==1&&f!==3&&f!==5||g.ef(z,B,"vps",[z.Dv]);Dt(z,"xvt","t."+B.toFixed(3)+";m."+t.toFixed(3)+";g."+K+";tt."+f+";np.0;c."+M+";d."+p)}; hOW=function(z,K){z.SE||(Dt(z,"fcnz",""+K),z.SE=!0)}; atW=function(z){/[^a-zA-Z0-9;.!_-]/.test(z)&&(z=z.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return z}; Stp=function(z){this.provider=z;this.G=!1;this.S=0;this.J=-1;this.pN=NaN;this.T=0;this.segments=[];this.W=this.C=0;this.previouslyEnded=!1;this.N=this.provider.AL.getVolume();this.D=this.provider.AL.isMuted()?1:0;this.Y=Rc(this.provider)}; Sf=function(z){z.Y.startTime=z.T;z.Y.endTime=z.S;var K=!1;z.segments.length&&g.eS(z.segments).isEmpty()?(z.segments[z.segments.length-1].previouslyEnded&&(z.Y.previouslyEnded=!0),z.segments[z.segments.length-1]=z.Y,K=!0):z.segments.length&&z.Y.isEmpty()||(z.segments.push(z.Y),K=!0);K?z.Y.endTime===0&&(z.previouslyEnded=!1):z.Y.previouslyEnded&&(z.previouslyEnded=!0);z.C+=z.S-z.T;z.Y=Rc(z.provider);z.Y.previouslyEnded=z.previouslyEnded;z.previouslyEnded=!1;z.T=z.S}; LOq=function(z){u4o(z);z.W=g.um(function(){z.update()},100); z.pN=g.ZL(z.provider);z.Y=Rc(z.provider)}; u4o=function(z){g.EJ(z.W);z.W=NaN}; Exd=function(z,K,f){f-=z.pN;return K===z.S&&f>.5}; PG8=function(z,K,f,M){this.SV=K;this.Z2=f;this.segments=[];this.experimentIds=[];this.b_=this.Ft=this.isFinal=this.delayThresholdMet=this.W1=this.RF=this.autoplay=this.autonav=!1;this.O3="yt";this.W=[];this.G=this.N=null;this.sendVisitorIdHeader=this.VE=!1;this.D=this.pageId="";this.C=f==="watchtime";this.T=f==="playback";this.Hx=f==="atr";this.PA=f==="engage";this.sendVisitorIdHeader=!1;this.uri=this.Hx?"/api/stats/"+f:"//"+K.Sm+"/api/stats/"+f;M&&(this.Ft=M.fs,M.rtn&&(this.G=M.rtn),this.C?(this.playerState= M.state,M.rti>0&&(this.N=M.rti)):(this.K3=M.mos,this.Hm=M.volume,M.at&&(this.adType=M.at)),M.autonav&&(this.autonav=M.autonav),M.inview!=null&&(this.E0=M.inview),M.size&&(this.ra=M.size),M.playerwidth&&(this.C3=M.playerwidth),M.playerheight&&(this.ES=M.playerheight));this.Ph=g.$o(K.S);this.D=Nw(K.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.D==="all"||this.D==="once")this.LI=g.$o(K.Ft);this.Gw=K.E0;this.experimentIds=Owa(K.experiments);this.QE=K.Ph;this.O3=K.Y1;this.region=K.region; this.userAge=K.userAge;this.oa=K.tJ;this.QW=nv();this.sendVisitorIdHeader=K.sendVisitorIdHeader;this.eV=K.B("vss_pings_using_networkless")||K.B("kevlar_woffle");this.FK=K.B("vss_final_ping_send_and_write");this.Bx=K.B("vss_use_send_and_write");this.pageId=K.pageId;this.XK=K.B("vss_playback_use_send_and_write");K.livingRoomAppMode&&(this.livingRoomAppMode=K.livingRoomAppMode);this.BA=K.J&&K.B("embeds_append_synth_ch_headers");g.Jw(K)&&(this.Px=K.Hx);g.yS(g.Xf(K))&&this.W.push(1);this.accessToken=g.X6(z); z.yw[this.Z2]?this.J=z.yw[this.Z2]:z.yw.playback&&(this.J=z.yw.playback);this.adFormat=z.adFormat;this.adQueryId=z.adQueryId;this.autoplay=qlg(z);this.T&&(this.RF=z.X9&&sM(z)==="adunit"?!0:!1);this.autonav=z.isAutonav||this.autonav;this.contentVideoId=ju(z);this.clientPlaybackNonce=z.clientPlaybackNonce;this.W1=z.f3;z.W&&(this.l_=z.W,this.TP=z.kq);z.mdxEnvironment&&(this.mdxEnvironment=z.mdxEnvironment);this.S=z.ra;this.nI=z.nI;z.Y&&(this.SU=z.Y.itag,z.J&&z.J.itag!==this.SU&&(this.SE=z.J.itag));z.S&& LX(z.S)&&(this.offlineDownloadUserChoice="1");this.eventLabel=sM(z);this.b_=z.lW?!1:z.Ix;this.b3=z.hP;if(K=Hw(z))this.lW=K;this.t9=z.UV;this.partnerId=z.partnerId;this.eventId=z.eventId;this.playlistId=z.hE||z.playlistId;this.a9=z.a9;this.ya=z.ya;this.O8=z.O8;this.Pg=z.Pg;this.subscribed=z.subscribed;this.videoId=z.videoId;this.videoMetadata=z.videoMetadata;this.visitorData=z.visitorData;this.osid=z.osid;this.r4=z.r4;this.referrer=z.referrer;this.Ar=z.Te||z.Ar;this.rE=z.cP;this.uT=z.uT;this.userGenderAge= z.userGenderAge;this.Sq=z.Sq;this.embedsRct=z.embedsRct;this.embedsRctn=z.embedsRctn;g.Jw(this.SV)&&z.mutedAutoplay&&(z.mutedAutoplayDurationMode===2&&z.limitedPlaybackDurationInSeconds===0&&z.endSeconds===0?this.W.push(7):this.W.push(2));z.isEmbedsShortsMode(new g.W9(this.C3,this.ES),!!this.playlistId)&&this.W.push(3);g.Kq(z)&&this.W.push(4);this.Xc=z.UN;z.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=z.compositeLiveIngestionOffsetToken)}; HHo=function(z,K){var f=z.sendVisitorIdHeader?z.visitorData:void 0;return g.IB(z.SV,z.accessToken).then(function(M){return zOu(z.uri,z.SV,z.pageId,f,M,K,z.BA)})}; mjW=function(z,K){return function(){z.SV.B("html5_simplify_pings")?(z.S=z.vx,z.D3=K(),z.QW=0,z.send()):HHo(z).then(function(f){var M=Qco(z);M.cmt=M.len;M.lact="0";var p=K().toFixed(3);M.rt=Number(p).toString();M=g.V8(z.uri,M);z.SV.B("vss_through_gel_double")&&qto(M);z.eV?(f==null&&(f={}),z.Bx?$h().sendAndWrite(M,f):$h().sendThenWrite(M,f)):f?g.V4(M,f):g.F$(M)})}}; Qco=function(z){var K={ns:z.O3,el:z.eventLabel,cpn:z.clientPlaybackNonce,ver:2,cmt:z.Y(z.S),fmt:z.SU,fs:z.Ft?"1":"0",rt:z.Y(z.D3),adformat:z.adFormat,content_v:z.contentVideoId,euri:z.Gw,lact:z.QW,live:z.lW,cl:(764512846).toString(),mos:z.K3,state:z.playerState,volume:z.Hm};z.subscribed&&(K.subscribed="1");Object.assign(K,z.Ph);z.D==="all"?Object.assign(K,z.LI):z.D==="once"&&z.T&&Object.assign(K,z.LI);z.autoplay&&(K.autoplay="1");z.RF&&(K.sautoplay="1");z.W1&&(K.dni="1");!z.C&&z.Px&&(K.epm=lto[z.Px]); z.isFinal&&(K["final"]="1");z.b_&&(K.splay="1");z.nI&&(K.delay=z.nI);z.QE&&(K.hl=z.QE);z.region&&(K.cr=z.region);z.userGenderAge&&(K.uga=z.userGenderAge);z.userAge!==void 0&&z.oa&&(K.uga=z.oa+z.userAge);z.vx!==void 0&&(K.len=z.Y(z.vx));!z.C&&z.experimentIds.length>0&&(K.fexp=z.experimentIds.toString());z.G!==null&&(K.rtn=z.Y(z.G));z.Ar&&(K.feature=z.Ar);z.ya&&(K.ctrl=z.ya);z.O8&&(K.ytr=z.O8);z.SE&&(K.afmt=z.SE);z.offlineDownloadUserChoice&&(K.ODUC=z.offlineDownloadUserChoice);z.Y1&&(K.lio=z.Y(z.Y1)); z.C?(K.idpj=z.b3,K.ldpj=z.t9,z.delayThresholdMet&&(K.dtm="1"),z.N!=null&&(K.rti=z.Y(z.N)),z.Sq&&(K.ald=z.Sq),z.compositeLiveIngestionOffsetToken&&(K.clio=z.compositeLiveIngestionOffsetToken)):z.adType!==void 0&&(K.at=z.adType);z.ra&&(z.T||z.C)&&(K.size=z.ra);z.T&&z.W.length&&(K.pbstyle=z.W.join(","));z.E0!=null&&(z.T||z.C)&&(K.inview=z.Y(z.E0));z.C&&(K.volume=uG(z,g.UZ(z.segments,function(M){return M.volume})),K.st=uG(z,g.UZ(z.segments,function(M){return M.startTime})),K.et=uG(z,g.UZ(z.segments,function(M){return M.endTime})), $E(z.segments,function(M){return M.playbackRate!==1})&&(K.rate=uG(z,g.UZ(z.segments,function(M){return M.playbackRate}))),$E(z.segments,function(M){return M.S!=="-"})&&(K.als=g.UZ(z.segments,function(M){return M.S}).join(",")),$E(z.segments,function(M){return M.previouslyEnded})&&(K.pe=g.UZ(z.segments,function(M){return""+ +M.previouslyEnded}).join(","))); K.muted=uG(z,g.UZ(z.segments,function(M){return M.muted?1:0})); $E(z.segments,function(M){return M.visibilityState!==0})&&(K.vis=uG(z,g.UZ(z.segments,function(M){return M.visibilityState}))); $E(z.segments,function(M){return M.connectionType!==0})&&(K.conn=uG(z,g.UZ(z.segments,function(M){return M.connectionType}))); $E(z.segments,function(M){return M.Y!==0})&&(K.blo=uG(z,g.UZ(z.segments,function(M){return M.Y}))); $E(z.segments,function(M){return!!M.T})&&(K.blo=g.UZ(z.segments,function(M){return M.T}).join(",")); $E(z.segments,function(M){return!!M.compositeLiveStatusToken})&&(K.cbs=g.UZ(z.segments,function(M){return M.compositeLiveStatusToken}).join(",")); $E(z.segments,function(M){return M.J!=="-"})&&(K.cc=g.UZ(z.segments,function(M){return M.J}).join(",")); $E(z.segments,function(M){return M.clipId!=="-"})&&(K.clipid=g.UZ(z.segments,function(M){return M.clipId}).join(",")); if($E(z.segments,function(M){return!!M.audioId})){var f="au"; z.T&&(f="au_d");K[f]=g.UZ(z.segments,function(M){return M.audioId}).join(",")}wV()&&z.l_&&(K.ctt=z.l_,K.cttype=z.TP,K.mdx_environment=z.mdxEnvironment); z.PA&&(K.etype=z.nH!==void 0?z.nH:0);z.rE&&(K.uoo=z.rE);z.livingRoomAppMode&&z.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(K.clram=Vfd[z.livingRoomAppMode]||z.livingRoomAppMode);z.J?nx8(z,K):(K.docid=z.videoId,K.referrer=z.referrer,K.ei=z.eventId,K.of=z.r4,K.osid=z.osid,K.vm=z.videoMetadata,z.adQueryId&&(K.aqi=z.adQueryId),z.autonav&&(K.autonav="1"),z.playlistId&&(K.list=z.playlistId),z.Pg&&(K.ssrt="1"),z.uT&&(K.upt=z.uT));z.T&&(z.embedsRct&&(K.rct=z.embedsRct),z.embedsRctn&&(K.rctn= z.embedsRctn),z.compositeLiveIngestionOffsetToken&&(K.clio=z.compositeLiveIngestionOffsetToken));z.Xc&&(K.host_cpn=z.Xc);return K}; nx8=function(z,K){if(K&&z.J){var f=new Set(["q","feature","mos"]),M=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),p=new Set(["aqi","autonav","list","ssrt","upt"]);z.J.ns==="3pp"&&(K.ns="3pp");for(var t=g.a(Object.keys(z.J)),B=t.next();!B.done;B=t.next())B=B.value,M.has(B)||f.has(B)||p.has(B)&&!z.J[B]||(K[B]=z.J[B])}}; uG=function(z,K){return g.UZ(K,z.Y).join(",")}; qto=function(z){z.indexOf("watchtime")!==-1&&g.Ds("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:z}})}; WOp=function(z,K){z.attestationResponse&&HHo(z).then(function(f){f=f||{};f.method="POST";f.postParams={atr:z.attestationResponse};z.eV?z.Bx?$h().sendAndWrite(K,f):$h().sendThenWrite(K,f):g.V4(K,f)})}; LH=function(z){g.J.call(this);this.provider=z;this.W="paused";this.C=NaN;this.G=[10,10,10,40];this.N=this.D=0;this.l_=this.Hx=this.nH=this.Y1=this.T=!1;this.Y=this.J=NaN;this.logger=new g.Np("vss");this.S=new Stp(z)}; cxp=function(z){if(!z.T){z.provider.videoData.LU===16623&&g.Al(Error("Playback for EmbedPage"));var K=Et(z,"playback");z.G=Jxo(z);LOq(z.S);K.G=P3(z);z.Y>0&&(K.S-=z.Y);K.send();if(z.provider.videoData.Wf){K=z.provider.SV;var f=z.provider.videoData,M={html5:"1",video_id:f.videoId,cpn:f.clientPlaybackNonce,ei:f.eventId,ptk:f.Wf,oid:f.lr,ptchn:f.Y7,pltype:f.TI,content_v:ju(f)};f.dc&&Object.assign(M,{m:f.dc});K=g.V8(K.c7+"ptracking",M);gxW(z,K)}z.provider.videoData.nI||(iHd(z),dja(z));z.T=!0;z=z.S;z.S= z.t$();z.pN=g.ZL(z.provider);!(z.T===0&&z.S<5)&&z.S-z.T>2&&(z.T=z.S);z.G=!0}}; Jxo=function(z){var K=z.provider.videoData.hP,f=z.provider.videoData.UV,M=[10+K,10,10,40+f-K,40],p,t=(p=z.provider.videoData.getPlayerResponse())==null?void 0:p.playbackTracking,B=t==null?void 0:t.videostatsScheduledFlushWalltimeSeconds;p=t==null?void 0:t.videostatsDefaultFlushIntervalSeconds;if(!(B&&B.length>0&&p))return z.logger.info("Missing valid scheduled pings config "+B+" "+p),M;K=[B[0]+K].concat(g.P(B.slice(1).map(function(v,I){return v-B[I]})),[p+f-K, p]);return K.some(function(v){return v<0})?(z.logger.S(347111855,"Neg vss scheduled pings "+B+" "+p),M):K}; P3=function(z,K){K=K===void 0?NaN:K;var f=g.ZL(z.provider);K=isNaN(K)?f:K;K=Math.ceil(K);var M=z.G[z.D];z.D+11E3;!(t.length>1)&&t[0].isEmpty()||v||(B.G=P3(z,p));B.send();z.N++}},(p-f)*1E3); return z.J=p}; H3=function(z){g.LJ(z.C);z.C=NaN}; scI=function(z){z.S.update();z=z.S;z.segments.length&&z.S===z.T||Sf(z);var K=z.segments;z.segments=[];return K}; Et=function(z,K){var f=jcd(z.provider);Object.assign(f,{state:z.W});K=new PG8(z.provider.videoData,z.provider.SV,K,f);K.S=z.provider.AL.t$();f=z.provider.videoData.clientPlaybackNonce;K.S=z.provider.AL.MO(f);z.provider.videoData.isLivePlayback||(K.vx=z.provider.AL.getDuration(f));z.provider.videoData.S&&(f=z.provider.videoData.S.ll(K.S))&&(K.Y1=f-K.S,z.provider.SV.B("html5_disable_live_dvr_shrink_for_cdm_vss")&&GP(z.provider.videoData)&&(K.S+=z.provider.AL.MB(),K.Y1-=z.provider.AL.MB()));K.D3=g.ZL(z.provider); K.segments=[Rc(z.provider)];return K}; Axq=function(z,K){var f=Et(z,"watchtime");Yta(z)&&(f.delayThresholdMet=!0,z.nH=!0);if(z.Y>0){for(var M=g.a(K),p=M.next();!p.done;p=M.next())p=p.value,p.startTime-=z.Y,p.endTime-=z.Y;f.S-=z.Y}else f.S=z.S.S;f.segments=K;return f}; Qn=function(z,K){var f=X3S(z,!isNaN(z.J));K&&(z.J=NaN);return f}; X3S=function(z,K){var f=Axq(z,scI(z));!isNaN(z.J)&&K&&(f.N=z.J);return f}; Yta=function(z){var K;if(K=z.provider.videoData.isLoaded()&&z.provider.videoData.nI&&z.T&&!z.nH)K=z.S,K=K.C+K.t$()-K.T>=z.provider.videoData.nI;return!!K}; iHd=function(z){z.provider.videoData.youtubeRemarketingUrl&&!z.Hx&&(gxW(z,z.provider.videoData.youtubeRemarketingUrl),z.Hx=!0)}; dja=function(z){z.provider.videoData.googleRemarketingUrl&&!z.l_&&(gxW(z,z.provider.videoData.googleRemarketingUrl),z.l_=!0)}; xjI=function(z){if(!z.CH()&&z.T){z.W="paused";var K=Qn(z);K.isFinal=!0;K.send();z.dispose()}}; FOW=function(z,K){if(!z.CH())if(g.Z(K.state,2)||g.Z(K.state,512)){if(z.W="paused",g.Ld(K,2)||g.Ld(K,512))g.Ld(K,2)&&(z.S.previouslyEnded=!0),z.T&&(H3(z),Qn(z).send(),z.J=NaN)}else if(g.Z(K.state,8)){z.W="playing";var f=z.T&&isNaN(z.C)?P3(z):NaN;if(!isNaN(f)&&(us(K,64)<0||us(K,512)<0)){var M=X3S(z,!1);M.G=f;M.send()}g.Ld(K,16)&&K.state.seekSource===58&&(z.S.previouslyEnded=!0)}else z.W="paused"}; OHu=function(z,K,f){if(!z.Y1){f||(f=Et(z,"atr"));f.attestationResponse=K;try{f.send()}catch(M){if(M.message!=="Unknown Error")throw M;}z.Y1=!0}}; gxW=function(z,K){var f=z.provider.SV;g.IB(z.provider.SV,g.X6(z.provider.videoData)).then(function(M){var p=z.provider.SV.pageId,t=z.provider.SV.sendVisitorIdHeader?z.provider.videoData.visitorData:void 0,B=z.provider.SV.B("vss_pings_using_networkless")||z.provider.SV.B("kevlar_woffle"),v=z.provider.SV.B("allow_skip_networkless");M=zOu(K,f,p,t,M);KO5(K,M,{token:z.provider.videoData.W,C1:z.provider.videoData.kq,mdxEnvironment:z.provider.videoData.mdxEnvironment},f,void 0,B&&!v,!1,!0)})}; rxS=function(){this.endTime=this.startTime=-1;this.J="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.Y=0;this.compositeLiveStatusToken=this.T=void 0;this.volume=this.connectionType=0;this.muted=!1;this.S=this.clipId="-";this.previouslyEnded=!1}; qj=function(z,K,f){this.videoData=z;this.SV=K;this.AL=f;this.S=void 0}; g.ZL=function(z){return ZHo(z)()}; ZHo=function(z){if(!z.S){var K=g.Bo(function(M){var p=(0,g.X)();M&&p<=631152E6&&(z.AL.Th("ytnerror",{issue:28799967,value:""+p}),p=(new Date).getTime()+2);return p},z.SV.B("html5_validate_yt_now")),f=K(); z.S=function(){return Math.round(K()-f)/1E3}; z.AL.vk()}return z.S}; jcd=function(z){var K=z.AL.PX()||{};K.fs=z.AL.qP();K.volume=z.AL.getVolume();K.muted=z.AL.isMuted()?1:0;K.mos=K.muted;K.clipid=z.AL.c$();var f;K.playerheight=((f=z.AL.getPlayerSize())==null?void 0:f.height)||0;var M;K.playerwidth=((M=z.AL.getPlayerSize())==null?void 0:M.width)||0;z=z.videoData;f={};z.Y&&(f.fmt=z.Y.itag,z.J&&(z.O3?z.J.itag!==z.Y.itag:z.J.itag!=z.Y.itag)&&(f.afmt=z.J.itag));f.ei=z.eventId;f.list=z.playlistId;f.cpn=z.clientPlaybackNonce;z.videoId&&(f.v=z.videoId);z.L7&&(f.infringe=1); (z.lW?0:z.Ix)&&(f.splay=1);(M=Hw(z))&&(f.live=M);z.X9&&(f.sautoplay=1);z.NV&&(f.autoplay=1);z.a9&&(f.sdetail=z.a9);z.partnerId&&(f.partnerid=z.partnerId);z.osid&&(f.osid=z.osid);z.Ax&&(f.cc=g.ziv(z.Ax));return Object.assign(K,f)}; GSu=function(z){var K=q$S();if(K)return oxg[K]||oxg.other;if(g.iY(z.SV)){z=navigator.userAgent;if(/[Ww]ireless[)]/.test(z))return 3;if(/[Ww]ired[)]/.test(z))return 30}return 0}; Rc=function(z){var K=new rxS,f;K.J=((f=jcd(z).cc)==null?void 0:f.toString())||"-";K.playbackRate=z.AL.getPlaybackRate();f=z.AL.getVisibilityState();f!==0&&(K.visibilityState=f);z.SV.SE&&(K.Y=1);K.T=z.videoData.gx;K.compositeLiveStatusToken=z.videoData.compositeLiveStatusToken;f=z.AL.getAudioTrack();f.b8&&f.b8.id&&f.b8.id!=="und"&&(K.audioId=f.b8.id);K.connectionType=GSu(z);K.volume=z.AL.getVolume();K.muted=z.AL.isMuted();K.clipId=z.AL.c$()||"-";K.S=z.videoData.cY||"-";return K}; g.mO=function(z,K){g.J.call(this);var f=this;this.provider=z;this.T=new Map;this.Dv=new g.ex;this.dO={HDc:function(){return f.qoe}, XXc:function(){return f.S}, RjV:function(){return f.Y}}; this.provider.videoData.bl()&&!this.provider.videoData.aH&&(this.S=new LH(this.provider),this.S.Y=0,g.d(this,this.S),this.qoe=new g.wv(this.provider,K),g.d(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.v7=this.provider.videoData.clientPlaybackNonce)&&this.T.set(this.v7,this.S));if(z.SV.playerCanaryState==="canary"||z.SV.playerCanaryState==="holdback")this.Y=new v3(this.provider),g.d(this,this.Y)}; lG=function(z){return g.ZL(z.provider)}; Vn=function(z){z.Y&&X0W(z.Y);z.qoe&&ROT(z.qoe)}; CGo=function(z){if(z.qoe){z=z.qoe;for(var K=z.provider.videoData,f=z.provider.SV,M=g.a(f.q8),p=M.next();!p.done;p=M.next())kx(z,p.value);if(z.provider.B("html5_enable_qoe_cat_list"))for(M=g.a(K.Sm),p=M.next();!p.done;p=M.next())kx(z,p.value);else K.q8&&kx(z,z.provider.videoData.q8);K.CI()&&(M=K.S,k3(K)&&kx(z,"manifestless"),M&&J5(M)&&kx(z,"live-segment-"+J5(M).toFixed(1)));bv(K)?kx(z,"sabr"):z.f9(Rp(K));if(x3(K)||K.Fr())K.Fr()&&kx(z,"ssa"),kx(z,"lifa");GP(K)&&kx(z,"cdm");K.gatewayExperimentGroup&& (M=K.gatewayExperimentGroup,M==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?M="spkadtrt":M==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(M="spkadctrl"),kx(z,M));f.Y1!=="yt"&&z.S.set("len",[K.lengthSeconds.toFixed(2)]);K.cotn&&!OM(K)&&z.ZR(!0);f.i8()&&(K=NvT())&&z.Th("cblt",{m:K});if(f.B("html5_log_screen_diagonal")){f=z.Th;var t;K=((t=window.H5vccScreen)==null?0:t.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;f.call(z,"cbltdiag",{v:K})}}}; Tv8=function(z){z.S&&cxp(z.S);if(z.Y){z=z.Y;var K=g.ZL(z.provider);z.S<0&&(z.S=K,z.delay.start());z.Y=K;z.J=K}}; Uju=function(z,K){z.S&&(z=z.S,K===58?z.S.update():z.T&&(H3(z),Qn(z).send(),z.J=NaN))}; zL5=function(z,K){if(g.Ld(K,1024)||g.Ld(K,512)||g.Ld(K,4)){if(z.Y){var f=z.Y;f.Y>=0||(f.S=-1,f.delay.stop())}z.qoe&&(f=z.qoe,f.G||(f.T=-1))}if(z.provider.videoData.enableServerStitchedDai&&z.v7){var M;(M=z.T.get(z.v7))==null||FOW(M,K)}else z.S&&FOW(z.S,K);if(z.qoe){M=z.qoe;f=K.state;var p=g.ZL(M.provider),t=M.getPlayerState(f),B=f.seekSource||void 0;if(t!==M.Dv){M.Hx||p= 10&&M.playTimeSecs<=180&&(M.S.set("qoealert",["1"]),M.TP=!0)),t!=="B"||M.Dv!=="PL"&&M.Dv!=="PB"||(M.isBuffering=!0),M.Y=p);M.Dv==="PL"&&(t==="B"||t==="S")||M.provider.SV.i8()?yn(M,p):(M.nI||t!=="PL"||(M.nI=!0,bHd(M,p,M.provider.AL.Mh())),It8(M,p));t==="PL"&&g.$4(M.D3);var v=[t];t==="S"&&B&&v.push("ss."+B);g.ef(M,p,"vps",v);M.Dv=t;M.l_=p;M.Y=p;M.J=!0}t=f.Pj;g.Z(f,128)&&t&&(t.uu=t.uu||"",yxg(M,p,t.errorCode,t.gB,t.uu));(g.Z(f,2)||g.Z(f,128))&&M.reportStats(p);f.isPlaying()&&!M.G&&(M.T>=0&&M.S.set("user_intent", [M.T.toString()]),M.G=!0);w38(M)}z.Y&&(z=z.Y,x7W(z),z.playerState=K.state,z.Y>=0&&g.Ld(K,16)&&z.seekCount++,K.state.isError()&&z.send())}; KY8=function(z){z.Y&&z.Y.send();if(z.qoe){var K=z.qoe;if(K.J){K.Dv==="PL"&&(K.Dv="N");var f=g.ZL(K.provider);g.ef(K,f,"vps",[K.Dv]);K.G||(K.T>=0&&K.S.set("user_intent",[K.T.toString()]),K.G=!0);K.provider.SV.i8()&&K.Th("finalized",{});K.eV=!0;K.reportStats(f)}}if(z.provider.videoData.enableServerStitchedDai)for(K=g.a(z.T.values()),f=K.next();!f.done;f=K.next())xjI(f.value);else z.S&&xjI(z.S);z.dispose()}; $9I=function(z,K){z.S&&OHu(z.S,K)}; fNS=function(z){if(!z.S)return null;var K=Et(z.S,"atr");return function(f){z.S&&OHu(z.S,f,K)}}; MdI=function(z,K,f,M){f.adFormat=f.K3;var p=K.AL;K=new LH(new qj(f,K.SV,{getDuration:function(){return f.lengthSeconds}, getCurrentTime:function(){return p.getCurrentTime()}, t$:function(){return p.t$()}, MO:function(){return p.MO()}, Zb:function(){return p.Zb()}, Mh:function(){return p.Mh()}, getPlayerSize:function(){return p.getPlayerSize()}, getAudioTrack:function(){return f.getAudioTrack()}, getPlaybackRate:function(){return p.getPlaybackRate()}, tT:function(){return p.tT()}, getVisibilityState:function(){return p.getVisibilityState()}, Rx:function(){return p.Rx()}, PX:function(){return p.PX()}, getVolume:function(){return p.getVolume()}, isMuted:function(){return p.isMuted()}, qP:function(){return p.qP()}, c$:function(){return p.c$()}, getProximaLatencyPreference:function(){return p.getProximaLatencyPreference()}, vk:function(){p.vk()}, Th:function(t,B){p.Th(t,B)}, gw:function(){return p.gw()}, MB:function(){return p.MB()}})); K.Y=M;g.d(z,K);return K}; p8u=function(){this.fk=0;this.T=this.Ms=this.iO=this.Y=NaN;this.S={};this.bandwidthEstimate=NaN}; nH=function(z,K,f){g.J.call(this);var M=this;this.SV=z;this.AL=K;this.Y=f;this.S=new Map;this.v7="";this.dO={Kd:function(){return Array.from(M.S.keys())}}}; tdI=function(){this.S=g.eN;this.array=[]}; N9v=function(z,K,f){var M=[];for(K=B9o(z,K);Kf)break}return M}; vwp=function(z,K){var f=[];z=g.a(z.array);for(var M=z.next();!M.done&&!(M=M.value,M.contains(K)&&f.push(M),M.start>K);M=z.next());return f}; INS=function(z){return z.array.slice(B9o(z,0x7ffffffffffff),z.array.length)}; B9o=function(z,K){z=Wo(z.array,function(f){return K-f.start||1}); return z<0?-(z+1):z}; GTS=function(z,K){var f=NaN;z=g.a(z.array);for(var M=z.next();!M.done;M=z.next())if(M=M.value,M.contains(K)&&(isNaN(f)||M.endK&&(isNaN(f)||M.startz.mediaTime+z.C&&K1)z.J=!0;if((p===void 0?0:p)||isNaN(z.Y))z.Y=K;if(z.S)K!==z.mediaTime&&(z.S=!1);else if(K>0&&z.mediaTime===K){p=1500;if(z.SV.B("html5_buffer_underrun_transition_fix")){p=g.uY(z.SV.experiments,"html5_min_playback_advance_for_steady_state_secs");var t=g.uY(z.SV.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");p=p>0&&t>0&&Math.abs(K-z.Y)(M||!z.J?p:400)}z.mediaTime=K;z.T=f;return!1}; SRW=function(z,K){this.videoData=z;this.S=K}; uBd=function(z,K,f){return K.tS(f).then(function(){return cg(new SRW(K,K.T))},function(M){M instanceof Error&&g.Al(M); var p=cf('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),t=Aq('audio/mp4; codecs="mp4a.40.2"'),B=p||t,v=K.isLivePlayback&&!g.G0(z.C,!0);M="fmt.noneavailable";v?M="html5.unsupportedlive":B||(M="html5.missingapi");B=v||!B?2:1;p={buildRej:"1",a:K.Hr(),d:!!K.E0,drm:K.FS(),f18:K.FK.indexOf("itag=18")>=0,c18:p};K.S&&(K.FS()?(p.f142=!!K.S.S["142"],p.f149=!!K.S.S["149"],p.f279=!!K.S.S["279"]):(p.f133=!!K.S.S["133"],p.f140=!!K.S.S["140"],p.f242=!!K.S.S["242"]),p.cAAC=t,p.cAVC=Aq('video/mp4; codecs="avc1.42001E"'), p.cVP9=Aq('video/webm; codecs="vp9"'));K.C&&(p.drmsys=K.C.keySystem,t=0,K.C.S&&(t=Object.keys(K.C.S).length),p.drmst=t);return new Jq(M,p,B)})}; gv=function(z){this.data=window.Float32Array?new Float32Array(z):Array(z);this.Y=this.S=z-1}; LYS=function(z){return z.data[z.S]||0}; Ewo=function(z){this.C=z;this.T=this.Y=0;this.J=new gv(50)}; dv=function(z,K,f){g.Dv.call(this);this.videoData=z;this.experiments=K;this.C=f;this.Y=[];this.bA=0;this.T=!0;this.J=!1;this.W=0;f=new PPT;z.latencyClass==="ULTRALOW"&&(f.W=!1);z.oa?f.T=3:g.V_(z)&&(f.T=2);z.latencyClass==="NORMAL"&&(f.C=!0);f.Y1=bv(z)&&K.sf("html5_refactor_decouple_liveness");g.uY(K,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.uY(K,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||z.latencyClass!=="LOW"&&z.latencyClass!=="ULTRALOW"||(f.C=!0);var M= g.uY(K,"html5_liveness_drift_proxima_override");if(Rp(z)!==0&&M){f.S=M;var p;((p=z.S)==null?0:IbW(p))&&f.S--}bv(z)&&K.sf("html5_sabr_parse_live_metadata_playback_boundaries")&&(f.l_=!0);if(g.ZQ("trident/")||g.ZQ("edge/"))p=g.uY(K,"html5_platform_minimum_readahead_seconds")||3,f.J=Math.max(f.J,p);g.uY(K,"html5_minimum_readahead_seconds")&&(f.J=g.uY(K,"html5_minimum_readahead_seconds"));g.uY(K,"html5_maximum_readahead_seconds")&&(f.N=g.uY(K,"html5_maximum_readahead_seconds"));K.sf("html5_force_adaptive_readahead")&& (f.W=!0);if(p=g.uY(K,"html5_liveness_drift_chunk_override"))f.S=p;hf(z)&&(f.S=(f.S+1)/5,z.latencyClass==="LOW"&&(f.S*=2));!bv(z)||z.latencyClass!=="ULTRALOW"&&z.latencyClass!=="LOW"||(f.D=g.uY(K,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,f.G=g.uY(K,"html5_low_latency_max_allowable_liveness_drift_chunks")||10);this.policy=f;this.G=this.policy.T!==1;this.S=iG(this,Hzd(this,isNaN(z.liveChunkReadahead)?3:z.liveChunkReadahead,z))}; Qyq=function(z,K){if(K)return K=z.videoData,K=Hzd(z,isNaN(K.liveChunkReadahead)?3:K.liveChunkReadahead,K),iG(z,K);if(z.Y.length){if(Math.min.apply(null,z.Y)>1)return iG(z,z.S-1);if(z.policy.W)return iG(z,z.S+1)}return z.S}; qRa=function(z,K){if(!z.Y.length)return!1;var f=z.S;z.S=Qyq(z,K===void 0?!1:K);if(K=f!==z.S)z.Y=[],z.bA=0;return K}; c3=function(z,K){return K>=z.jk()-m98(z)}; lN8=function(z,K,f){K=c3(z,K);f||K?K&&(z.T=!0):z.T=!1;z.G=z.policy.T===2||z.policy.T===3&&z.T}; VdW=function(z,K){K=c3(z,K);z.J!==K&&z.publish("livestatusshift",K);z.J=K}; m98=function(z){var K=z.policy.S;z.J||(K=Math.max(K-1,0));return K*Ax(z)}; Hzd=function(z,K,f){f.oa&&K--;hf(f)&&(K=1);if(Rp(f)!==0&&(z=g.uY(z.experiments,"html5_live_chunk_readahead_proxima_override"))){K=z;var M;((M=f.S)==null?0:IbW(M))&&K++}return K}; Ax=function(z){return z.videoData.S?J5(z.videoData.S)||5:5}; iG=function(z,K){K=Math.max(Math.max(1,Math.ceil(z.policy.J/Ax(z))),K);return Math.min(Math.min(8,Math.floor(z.policy.N/Ax(z))),K)}; PPT=function(){this.J=0;this.N=Infinity;this.W=!0;this.Y=this.S=2;this.T=1;this.C=!1;this.G=10;this.l_=!1;this.D=1;this.Y1=!1}; X4=function(z){g.J.call(this);this.AL=z;this.S=0;this.Y=null;this.W=this.J=0;this.T={};this.SV=this.AL.Z();this.C=new g.Kl(this.x8,1E3,this);this.VE=new jf({delayMs:g.uY(this.SV.experiments,"html5_seek_timeout_delay_ms")});this.Hx=new jf({delayMs:g.uY(this.SV.experiments,"html5_long_rebuffer_threshold_ms")});this.rE=Yx(this,"html5_seek_set_cmt");this.vx=Yx(this,"html5_seek_jiggle_cmt");this.Xc=Yx(this,"html5_seek_new_elem");this.nI=Yx(this,"html5_unreported_seek_reseek");this.l_=Yx(this,"html5_long_rebuffer_jiggle_cmt"); this.nH=new jf({delayMs:2E4});this.Px=Yx(this,"html5_seek_new_elem_shorts");this.b_=Yx(this,"html5_seek_new_media_source_shorts_reuse");this.QE=Yx(this,"html5_seek_new_media_element_shorts_reuse");this.Bx=Yx(this,"html5_reseek_after_time_jump");this.D=Yx(this,"html5_gapless_handoff_close_end_long_rebuffer");this.N=Yx(this,"html5_gapless_slow_seek");this.Y1=Yx(this,"html5_gapless_slow_start");this.G=Yx(this,"html5_ads_preroll_lock_timeout");this.oa=new jf({delayMs:g.uY(this.SV.experiments,"html5_skip_slow_ad_delay_ms")|| 5E3,l1:!this.SV.B("html5_report_slow_ads_as_error")});this.SE=new jf({delayMs:g.uY(this.SV.experiments,"html5_skip_slow_ad_delay_ms")||5E3,l1:!this.SV.B("html5_skip_slow_buffering_ad")});this.TP=new jf({delayMs:g.uY(this.SV.experiments,"html5_slow_start_timeout_delay_ms")});this.eV=Yx(this,"html5_slow_start_no_media_source");g.d(this,this.C)}; Yx=function(z,K){var f=g.uY(z.SV.experiments,K+"_delay_ms");z=z.SV.B(K+"_cfl");return new jf({delayMs:f,l1:z})}; nwa=function(z,K){z.S=K}; xx=function(z,K,f,M,p,t,B,v){K.test(f)?(z.yW(p,K,B),K.l1||t()):(K.L_&&K.Y&&!K.J?(f=(0,g.X)(),M?K.S||(K.S=f):K.S=0,t=!M&&f-K.Y>K.L_,f=K.S&&f-K.S>K.zz||t?K.J=!0:!1):f=!1,f&&(v=Object.assign({},z.S3(K),v),v.wn=B,v.we=p,v.wsuc=M,z.AL.Th("workaroundReport",v),M&&(K.reset(),z.T[p]=!1)))}; jf=function(z){var K=z===void 0?{}:z;z=K.delayMs===void 0?0:K.delayMs;var f=K.zz===void 0?1E3:K.zz;var M=K.L_===void 0?3E4:K.L_;K=K.l1===void 0?!1:K.l1;this.S=this.Y=this.T=this.startTimestamp=0;this.J=!1;this.C=Math.ceil(z/1E3);this.zz=f;this.L_=M;this.l1=K}; izS=function(z){g.J.call(this);var K=this;this.AL=z;this.G=this.S=this.loader=this.mediaElement=this.playbackData=null;this.T=0;this.C=this.l_=this.J=null;this.nH=!1;this.TP=0;this.Y1=!1;this.timestampOffset=0;this.D=!0;this.Xc=0;this.b_=this.W1=!1;this.W=0;this.rE=!1;this.Hx=0;this.SV=this.AL.Z();this.videoData=this.AL.getVideoData();this.policy=new WYg;this.N=new X4(this.AL);this.oa=this.Px=this.vx=this.Y=NaN;this.Bx=new g.Kl(function(){JW8(K,!1)},2E3); this.nI=new g.Kl(function(){F4(K)}); this.QE=new g.Kl(function(){K.nH=!0;gwq(K,{})}); this.SE=NaN;this.eV=new g.Kl(function(){var f=K.SV.Gw;f.S+=1E4/36E5;f.S-f.T>1/6&&(Gpo(f),f.T=f.S);K.eV.start()},1E4); g.d(this,this.N);g.d(this,this.Bx);g.d(this,this.QE);g.d(this,this.nI);g.d(this,this.eV)}; sya=function(z,K){z.playbackData=K;z.videoData.isLivePlayback&&(z.G=new Ewo(function(){a:{if(z.playbackData&&z.playbackData.S.S){if(k3(z.videoData)&&z.loader){var M=z.loader.VP.k9()||0;break a}if(z.videoData.S){M=z.videoData.S.eV;break a}}M=0}return M}),z.S=new dv(z.videoData,z.SV.experiments,function(){return z.eU(!0)})); if(Ot(z.AL)){var f;(f=z.videoData.SE)!=null&&f.z1||(K=d9W(z),K.AG?(bv(z.videoData)&&z.jD(K.AG,K.startSeconds),z.T=K.startSeconds):K.startSeconds>0&&z.seekTo(K.startSeconds,{v8:"seektimeline_startPlayback",seekSource:15}));z.D=!1}else cWI(z)||(z.T=z.T||z.videoData.startSeconds||0)}; jyo=function(z,K){(z.loader=K)?AWg(z,!0):rv(z)}; YRu=function(z,K){g.$4(z.N.C);z.B("html5_exponential_memory_for_sticky")&&(K.state.isPlaying()?g.$4(z.eV):z.eV.stop());if(z.mediaElement)if(K.oldState.state===8&&R4(K.state)&&K.state.isBuffering()){K=z.mediaElement.getCurrentTime();var f=z.mediaElement.MV();var M=z.B("manifestless_post_live_ufph")||z.B("manifestless_post_live")?yr(f,Math.max(K-3.5,0)):yr(f,K-3.5);M>=0&&K>f.end(M)-1.1&&M+10?(Zt(z.AL,z.getCurrentTime()+z.videoData.limitedPlaybackDurationInSeconds),z.b_=!0):z.videoData.isLivePlayback&&z.videoData.endSeconds>0&&(Zt(z.AL,z.getCurrentTime()+z.videoData.endSeconds),z.b_=!0))}; x9I=function(z,K){var f=z.getCurrentTime(),M=z.isAtLiveHead(f);if(z.G&&M){var p=z.G;if(p.S&&!(f>=p.Y&&f50&&p.Y.shift())),p=z.S,lN8(p,f,K===void 0?!0:K),VdW(p,f),K&&JW8(z,!0));M!==z.W1&&(K=z.getCurrentTime()-z.oa<=500,f=z.TP>=1E3,K||f||(K=z.AL.Vh(),K.qoe&&(K=K.qoe,f=g.ZL(K.provider), g.ef(K,f,"lh",[M?"1":"0"])),z.W1=M,z.TP++,z.oa=z.getCurrentTime()))}; JW8=function(z,K){if(z.S){var f=z.S;var M=z.getCurrentTime(),p=f.jk();var t=f.policy.Y;f.J||(t=Math.max(t-1,0));t*=Ax(f);M>=p-t||!f.EM()?f=M0&&vC(z.mediaElement)>0&&(z.Y=oc(z,z.Y,!1)),K=z.B("html5_pseudogapless_shorts_seek_to_next_start")&&(K==null?void 0:K.seekSource)===60,!z.mediaElement||!CPu(z,K))z.nI.start(750);else if(!isNaN(z.Y)&&isFinite(z.Y)&&(K=z.Px-(z.Y-z.timestampOffset),!(K===0||Math.abs(K)<.005)))if(K=z.mediaElement.getCurrentTime()-z.Y,Math.abs(K)<=z.Xc||Math.abs(K)<.005)T9u(z);else{if(z.videoData.Eu)z.videoData.Eu= !1;else if(!y_(z.videoData)&&z.Y>=z.eU()-.1){z.Y=z.eU();z.J.resolve(z.eU());z.AL.BH();return}try{var f=z.Y-z.timestampOffset;z.mediaElement.seekTo(f);z.N.S=f;z.Px=f;z.T=z.Y;z.Y1=!1}catch(M){}}}; CPu=function(z,K){K=K===void 0?!1:K;if(!z.mediaElement||z.mediaElement.S_()===0||z.mediaElement.hasError())return!1;var f=z.mediaElement.getCurrentTime()>0;return z.videoData.T&&z.videoData.T.S||z.videoData.isLivePlayback||!z.videoData.FS()?z.Y>=0&&!K&&(K=z.mediaElement.F3(),K.length||!f)?kr(K,z.Y-z.timestampOffset):f:f}; T9u=function(z){z.J&&(z.J.resolve(z.mediaElement.getCurrentTime()),z.N.Y=null)}; Zz8=function(z,K){z.C&&(z.C.resolve(K),z.AL.Cm(),z.SV.i8()||owI(z))&&(K=z.S3(),K["native"]=""+ +z.Y1,K.otgt=""+(z.Y+z.timestampOffset),z.AL.Th("seekEnd",K));rv(z)}; rv=function(z){z.Y=NaN;z.Px=NaN;z.J=null;z.l_=null;z.C=null;z.nH=!1;z.Y1=!1;z.Xc=0;z.Bx.stop();z.QE.stop()}; zhd=function(z,K){var f=z.mediaElement,M=K.type;switch(M){case "seeking":var p=f.getCurrentTime()+z.timestampOffset;if(!z.J||z.Y1&&p!==z.Y){z.J=new BC;z.J.then(function(B){Zz8(z,B)},function(){rv(z)}); if(z.videoData.isAd()){var t;tsp({adCpn:z.videoData.clientPlaybackNonce,contentCpn:(t=z.videoData.UN)!=null?t:""},K.S)}z.Px=p;nwa(z.N,f.getCurrentTime());z.seekTo(p,{seekSource:104,v8:"seektimeline_mediaElementEvent"});z.Y1=!0}break;case "seeked":T9u(z);break;case "loadedmetadata":Ot(z.AL)||U9S(z);F4(z);break;case "progress":F4(z);break;case "pause":z.W=z.getCurrentTime()}z.W&&((M==="play"||M==="playing"||M==="timeupdate"||M==="progress")&&z.getCurrentTime()-z.W>10&&(z.B("html5_enable_new_media_element_puase_jump")? (z.AL.yW(new Jq("qoe.restart",{reason:"pauseJump"})),z.AL.bW(),z.seekTo(z.W,{v8:"pauseJumpNewElement"})):z.seekTo(z.W,{v8:"pauseJump"})),M!=="pause"&&M!=="play"&&M!=="playing"&&M!=="progress"&&(z.W=0))}; Kg8=function(z){return(n5(z.videoData)||!!z.videoData.liveUtcStartSeconds)&&(!!z.videoData.liveUtcStartSeconds||cWI(z))&&!!z.videoData.S}; cWI=function(z){return!!z.videoData.startSeconds&&isFinite(z.videoData.startSeconds)&&z.videoData.startSeconds>1E9}; d9W=function(z){var K=0,f=NaN,M="";if(!z.D)return{startSeconds:K,AG:f,source:M};z.videoData.Y1?K=z.videoData.nH:y_(z.videoData)&&(K=Infinity);if(g.V_(z.videoData))return{startSeconds:K,AG:f,source:M};z.videoData.startSeconds?(M="ss",K=z.videoData.startSeconds):z.videoData.t9&&(M="stss",K=z.videoData.t9);z.videoData.liveUtcStartSeconds&&(f=z.videoData.liveUtcStartSeconds);if(isFinite(K)&&(K>z.eU()||Kz.eU()||f 0?(M.onesie="0",z.handleError(new Jq("html5.missingapi",M)),!1):!0}; IdS=function(z){var K=jz();YO(K,z);return g.eh(K,lxI())}; B1S=function(z,K){var f,M,p,t,B,v,I,G,b,e,w,D,y,R,S,E,L,q,V,c,O,x,T,M8,$S,td;return g.n(function(r){if(r.Y==1)return K.fetchType="onesie",f=Fo8(K,z.getPlayerSize(),z.getVisibilityState()),M=new hr(z,f),g.l(r,M.fetch(),2);p=r.S;t={player_response:p};K.loading=!1;B=z.G5.yO;if(M.E1){v=g.a(M.E1.entries());for(I=v.next();!I.done;I=v.next())G=I.value,b=g.a(G),e=b.next().value,w=b.next().value,D=e,y=w,B.S.set(D,y,180),D===K.videoId&&(R=y.jQ(),K.ea=R);B.o9=M}S=g.a(M.Ei.entries());for(E=S.next();!E.done;E= S.next())L=E.value,q=g.a(L),V=q.next().value,c=q.next().value,O=V,x=c,B.Y.set(O,x,180);g.UN(K,t,!0);if(K.loading||Ca(K))return r.return(Promise.resolve());B.S.removeAll();B.Y.removeAll();K.ea=[];T={};M8="onesie.response";$S=0;K.errorCode?(M8="auth",T.ec=K.errorCode,T.ed=K.errorDetail,T.es=K.WV||"",$S=2):(T.successButUnplayable="1",T.disposed=""+ +K.CH(),T.afmts=""+ +/adaptiveFormats/.test(p),T.cpn=K.clientPlaybackNonce);td=new Jq(M8,T,$S);return r.return(Promise.reject(td))})}; puI=function(z,K){var f,M,p,t,B,v,I,G,b,e,w;return g.n(function(D){switch(D.Y){case 1:f=K.isAd(),M=!f,p=f?1:3,t=0;case 2:if(!(t0)){D.jV(5);break}return g.l(D,xZ(5E3),6);case 6:B=new g.UT("Retrying OnePlatform request",{attempt:t}),g.Al(B);case 5:return g.Sq(D,7),g.l(D,G8g(z,K),9);case 9:return D.return();case 7:v=g.QI(D);I=iB(v);G=I.errorCode;b=z.Z();e=b.B("html5_use_network_error_code_enums")?401:"401";M&&G==="manifest.net.badstatus"&&I.details.rc===e&&(M=!1,t===p-1&&(p+= 1));if(t===p-1)return w=bK5(f,I.details),w.details.backend="op",w.details.originec=G,D.return(Promise.reject(w));if(G==="auth"||G==="manifest.net.retryexhausted")return D.return(Promise.reject(I));z.handleError(I);if(gI(I.severity)){D.jV(4);break}case 3:t++;D.jV(2);break;case 4:return D.return(Promise.reject(bK5(f,{backend:"op"})))}})}; G8g=function(z,K){function f(M8){M8.readyState===2&&z.bP("ps_c")} var M,p,t,B,v,I,G,b,e,w,D,y,R,S,E,L,q,V,c,O,x,T;return g.n(function(M8){switch(M8.Y){case 1:K.fetchType="gp";M=z.Z();p=g.IB(M,g.X6(K));if(!p.S){t=p.getValue();M8.jV(2);break}return g.l(M8,p.S,3);case 3:t=M8.S;case 2:return B=t,v=IdS(B),I=Fo8(K,z.getPlayerSize(),z.getVisibilityState()),G=g.aV(eh8),b=g.X6(K),e=(0,g.X)(),w=!1,D="empty",y=0,z.bP("psns"),R={Q5:f},g.l(M8,g.$H(v,I,G,void 0,R),4);case 4:S=M8.S;z.bP("psnr");if(K.CH())return M8.return();S?"error"in S&&S.error?(w=!0,D="esf:"+S.error.message, y=S.error.code):S.errorMetadata&&(w=!0,D="its",y=S.errorMetadata.status):w=!0;if(w)return E=0,L=((0,g.X)()-e).toFixed(),q={},q=M.B("html5_use_network_error_code_enums")?{backend:"op",rc:y,rt:L,reason:D,has_kpt:K.D3?"1":"0",has_mdx_env:K.mdxEnvironment?"1":"0",has_omit_key_flag:g.zM("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:M.pageId?"1":"0",has_token:b?"1":"0",has_vvt:K.Hx?"1":"0",is_mdx:K.isMdxPlayback?"1":"0",mdx_ctrl:K.ya||"",token_eq:b===g.X6(K)?"1":"0"}:{backend:"op", rc:""+y,rt:L,reason:D,has_kpt:K.D3?"1":"0",has_mdx_env:K.mdxEnvironment?"1":"0",has_omit_key_flag:g.zM("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:M.pageId?"1":"0",has_token:b?"1":"0",has_vvt:K.Hx?"1":"0",is_mdx:K.isMdxPlayback?"1":"0",mdx_ctrl:K.ya||"",token_eq:b===g.X6(K)?"1":"0"},V="manifest.net.connect",y===429?(V="auth",E=2):y>200&&(V="manifest.net.badstatus",y===400&&(E=2)),M8.return(Promise.reject(new Jq(V,q,E)));K.loading=!1;g.UN(K,{raw_player_response:S},!0); c=S;g.Aw(K.Z())&&c&&c.trackingParams&&A3(c.trackingParams);if(K.errorCode)return O={ec:K.errorCode,ed:K.errorDetail,es:K.WV||""},M8.return(Promise.reject(new Jq("auth",O,2)));if(!K.loading&&!Ca(K))return x=K.isAd()?"auth":"manifest.net.retryexhausted",T=K.isAd()?2:1,M8.return(Promise.reject(new Jq(x,{successButUnplayable:"1",hasMedia:g.qE(K)?"1":"0"},T)));g.Rv(M8)}})}; MEu=function(z,K,f){function M(y){y=iB(y);if(gI(y.severity))return Promise.reject(y);z.handleError(y);return!1} function p(){return!0} var t,B,v,I,G,b,e,w,D;return g.n(function(y){switch(y.Y){case 1:var R=z.Z();z.getPlayerSize();z.getVisibilityState();z.isFullscreen();if(K.partnerId===38&&R.playerStyle==="books")R=K.videoId.indexOf(":"),R=g.V8("//play.google.com/books/volumes/"+K.videoId.slice(0,R)+"/content/media",{aid:K.videoId.slice(R+1),sig:K.zO});else if(K.partnerId===30&&R.playerStyle==="docs")R=g.V8("https://docs.google.com/get_video_info",{docid:K.videoId,authuser:K.vB,authkey:K.O7,eurl:R.E0});else if(K.partnerId===33&&R.playerStyle=== "google-live")R=g.V8("//google-liveplayer.appspot.com/get_video_info",{key:K.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+R.Y1);t=R;v=(B=K.isAd())?1:3;I=0;case 2:if(!(I0)){y.jV(5);break}return g.l(y,xZ(5E3),6);case 6:b={playerretry:I,playerretrysrc:f},B||(b.recover="embedded"),G=bm(t,b);case 5:return g.l(y,wu8(K,G).then(p,M),7);case 7:if(e=y.S)return y.return();I++;y.jV(2);break;case 4:w=B?"auth":"manifest.net.retryexhausted";D=B?2:1;if(!B&&Math.random()< 1E-4)try{g.Al(new g.UT("b/152131571",btoa(t)))}catch(S){}return y.return(Promise.reject(new Jq(w,{backend:"gvi"},D)))}})}; wu8=function(z,K){function f(S){return M(S.xhr)} function M(S){if(!z.CH()){S=S?S.status:-1;var E=0,L=((0,g.X)()-b).toFixed();L=p.B("html5_use_network_error_code_enums")?{backend:"gvi",rc:S,rt:L}:{backend:"gvi",rc:""+S,rt:L};var q="manifest.net.connect";S===429?(q="auth",E=2):S>200&&(q="manifest.net.badstatus",S===400&&(E=2));return Promise.reject(new Jq(q,L,E))}} var p,t,B,v,I,G,b,e,w,D,y,R;return g.n(function(S){if(S.Y==1){z.fetchType="gvi";p=z.Z();var E={};z.jK&&(E.ytrext=z.jK);(v=g.U9(E)?void 0:E)?(t={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:v},B=bm(K,{action_display_post:1})):(t={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},B=K);I={};p.sendVisitorIdHeader&&z.visitorData&&(I["X-Goog-Visitor-Id"]=z.visitorData);(G=Nw(p.experiments,"debug_sherlog_username"))&&(I["X-Youtube-Sherlog-Username"]=G);Object.keys(I).length> 0&&(t.headers=I);b=(0,g.X)();return g.l(S,Sn(Ja,B,t).then(void 0,f),2)}e=S.S;if(!e||!e.responseText)return S.return(M(e));z.loading=!1;w=Nu(e.responseText);g.UN(z,w,!0);if(z.errorCode)return D={ec:z.errorCode,ed:z.errorDetail,es:z.WV||""},S.return(Promise.reject(new Jq("auth",D,2)));if(!z.loading&&!Ca(z))return y=z.isAd()?"auth":"manifest.net.retryexhausted",R=z.isAd()?2:1,S.return(Promise.reject(new Jq(y,{successButUnplayable:"1"},R)));g.Rv(S)})}; bK5=function(z,K){return new Jq(z?"auth":"manifest.net.retryexhausted",K,z?2:1)}; Kz=function(z,K,f){f=f===void 0?!1:f;var M,p,t,B;g.n(function(v){if(v.Y==1){M=z.Z();if(f&&(!g.MR(M)||sM(K)!=="embedded")||K.zT||sM(K)!=="adunit"&&(g.iY(M)||r7(M)||g.O$(M)||g.jo(M)||g.tw(M)==="WEB_CREATOR"))return v.return();p=g.IB(M,g.X6(K));return p.S?g.l(v,p.S,3):(t=p.getValue(),v.jV(2))}v.Y!=2&&(t=v.S);B=t;return v.return(DNT(z,K,B))})}; DNT=function(z,K,f){var M,p,t,B,v;return g.n(function(I){if(I.Y==1){g.Sq(I,2);M=IdS(f);var G=K.Z();g.OT();var b={context:g.vD(K),videoId:K.videoId,racyCheckOk:K.racyCheckOk,contentCheckOk:K.contentCheckOk,autonavState:"STATE_NONE"};sM(K)==="adunit"&&(b.isAdPlayback=!0);G.embedConfig&&(b.serializedThirdPartyEmbedConfig=G.embedConfig);G.lY&&(b.showContentOwnerOnly=!0);K.HT&&(b.showShortsOnly=!0);g.r0(0,141)&&(b.autonavState=g.r0(0,140)?"STATE_OFF":"STATE_ON");if(g.$t(G)){var e=g.r0(0,65);e=e!=null? !e:!1;var w=!!g.AV("yt-player-sticky-caption");b.captionsRequested=e&&w}var D;if(G=(D=G.getWebPlayerContextConfig())==null?void 0:D.encryptedHostFlags)b.playbackContext={encryptedHostFlags:G};p=b;t=g.aV(yiW);z.bP("wn_s");return g.l(I,g.$H(M,p,t),4)}if(I.Y!=2)return B=I.S,z.bP("wn_r"),!B||"error"in B&&B.error||(v=B,g.Aw(K.Z())&&v.trackingParams&&A3(v.trackingParams),g.UN(K,{raw_watch_next_response:B},!1)),g.Eu(I,0);g.QI(I);g.Rv(I)})}; k88=function(z){z.bP("vir");z.bP("ps_s");UG("vir",void 0,"video_to_ad");var K=vWT(z);K.then(function(){z.bP("virc");UG("virc",void 0,"video_to_ad");z.bP("ps_r");UG("ps_r",void 0,"video_to_ad")},function(){z.bP("virc"); UG("virc",void 0,"video_to_ad")}); return K}; g.M9=function(z,K,f,M,p,t,B,v,I,G){I=I===void 0?new g.oB(z):I;G=G===void 0?!0:G;g.Dv.call(this);var b=this;this.SV=z;this.playerType=K;this.hH=f;this.M5=M;this.getVisibilityState=t;this.visibility=B;this.G5=v;this.videoData=I;this.WB=G;this.logger=new g.Np("VideoPlayer");this.Rc=null;this.y5=new pH;this.U_=null;this.lx=!0;this.u_=this.loader=null;this.v9=[];this.q0=new zT;this.OS=this.jC=null;this.JA=new zT;this.m0=null;this.pF=this.fO=!1;this.vu=NaN;this.kU=!1;this.playerState=new g.ex;this.C_=[]; this.Mi=new g.xI;this.JD=new bog(this);this.mediaElement=null;this.kF=new g.Kl(this.C8h,15E3,this);this.XJ=this.FQ=!1;this.K9=NaN;this.sN=!1;this.j0=0;this.Tf=!1;this.RJ=NaN;this.xL=new CH(new Map([["bufferhealth",function(){return X8S(b.B8)}], ["bandwidth",function(){return b.fL()}], ["networkactivity",function(){return b.SV.schedule.nH}], ["livelatency",function(){return b.isAtLiveHead()&&b.isPlaying()?hho(b):NaN}], ["rawlivelatency",function(){return hho(b)}]])); this.mT=0;this.loop=!1;this.playbackRate=1;this.bx=0;this.B8=new izS(this);this.sL=!1;this.Ik=[];this.jx=this.Lj=0;this.CC=this.Yh=!1;this.Ms=this.iO=0;this.S0=new g.Kl(this.XF,0,this);this.Z3=null;this.P_L=[this.Mi,this.S0,this.kF,this.xL];this.kA=this.PU=null;this.oX=function(){var e=b.Vh();e.provider.SV.PA||e.provider.AL.getVisibilityState()===3||(e.provider.SV.PA=!0);e.R9();if(e.Y){var w=e.Y;w.C&&w.S<0&&w.provider.AL.getVisibilityState()!==3&&X0W(w)}e.qoe&&(e=e.qoe,e.b_&&e.T<0&&e.provider.SV.PA&& ROT(e),e.J&&yn(e));b.loader&&$w(b);b.SV.Gc&&!b.videoData.backgroundable&&b.mediaElement&&!b.Lz()&&(b.isBackground()&&b.mediaElement.d0()?(b.Th("bgmobile",{suspend:1}),b.ZM(!0,!0)):b.isBackground()||fz(b)&&b.Th("bgmobile",{resume:1}))}; this.dO={h1:function(e){b.h1(e)}, RBh:function(e){b.Rc=e}, T7h:function(){return b.Lq}, JN:function(){return b.rf}, HC:function(){return b.u_}, KAc:function(){return b.HS}, iN_:function(){return b.e0}, cAV:function(){}, Z:function(){return b.SV}, qL:function(){return b.mediaElement}, U0x:function(e){b.FC(e)}, B7h:function(){return b.M5}}; this.logger.debug(function(){return"creating, type "+K}); this.XE=new RLW(this.SV);this.i9=new B3(this.SV,this.M5,this);this.mR=new g.W3(this,function(e,w){e!==g.wE("endcr")||g.Z(b.playerState,32)||b.BH();p(e,w,b.playerType)}); g.d(this,this.mR);g.d(this,this.B8);adT(this,I);this.videoData.subscribe("dataupdated",this.GE1,this);this.videoData.subscribe("dataloaded",this.FW,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Th,this);this.videoData.subscribe("ctmpstr",this.Hs,this);this.Iq();IL8(this.oX);this.visibility.subscribe("visibilitystatechange",this.oX);this.HS=new g.Kl(this.qX,g.uY(this.SV.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.e0= new g.Kl(this.qX,g.uY(this.SV.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.xU=new g.Bs(this.i6c,350,this);g.d(this,this.xU)}; adT=function(z,K){if(z.playerType===2||z.SV.wu)K.Pb=!0;var f=Meq(K.K3,K.FR,z.SV.J,z.SV.D);f&&(K.adFormat=f);z.playerType===2&&(K.NV=!0);if(z.isFullscreen()||z.SV.J)f=g.AV("yt-player-autonavstate"),K.autonavState=f||(z.SV.J?2:z.videoData.autonavState);K.endSeconds&&K.endSeconds>K.startSeconds&&Zt(z,K.endSeconds)}; Rhp=function(z){KY8(z.Lq);g.DO(z.Lq);if(z.rf){for(var K=z.rf,f=g.a(K.S.values()),M=f.next();!M.done;M=f.next())KY8(M.value);K.S.clear();g.DO(z.rf)}}; Swg=function(z){var K=z.videoData;k88(z).then(void 0,function(f){z.videoData!==K||K.CH()||(f=iB(f),f.errorCode==="auth"&&z.videoData.errorDetail?z.HA(f.errorCode,2,unescape(z.videoData.errorReason),Wf(f.details),z.videoData.errorDetail,z.videoData.WV||void 0):z.handleError(f))})}; EW5=function(z){if(!g.Z(z.playerState,128))if(z.videoData.isLoaded(),z.logger.debug("finished loading playback data"),z.v9=g.L1(z.videoData.l_),g.qE(z.videoData)){z.hH.tick("bpd_s");pz(z).then(function(){z.hH.tick("bpd_c");if(!z.CH()){z.fO&&(z.p6(yW(yW(z.playerState,512),1)),fz(z));var M=z.videoData;M.endSeconds&&M.endSeconds>M.startSeconds&&Zt(z,M.endSeconds);z.q0.finished=!0;tW(z,"dataloaded");z.JA.Oc()&&uaq(z);YgI(z.i9,z.OS)}}); z.B("html5_log_media_perf_info")&&z.Th("loudness",{v:z.videoData.SU.toFixed(3)},!0);var K,f=(K=z.mediaElement)==null?void 0:K.H1();if(f&&"disablePictureInPicture"in f&&z.SV.r_)try{f.disablePictureInPicture=z.SV.w8&&!z.videoData.backgroundable}catch(M){g.Al(M)}Lgu(z)}else tW(z,"dataloaded")}; pz=function(z){B8(z);z.OS=null;var K=uBd(z.SV,z.videoData,z.Lz());z.jC=K;z.jC.then(function(f){P$v(z,f)},function(f){z.CH()||(f=iB(f),z.visibility.isBackground()?(N9(z,"vp_none_avail"),z.jC=null,z.q0.reset()):(z.q0.finished=!0,z.HA(f.errorCode,f.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Wf(f.details))))}); return K}; P$v=function(z,K){if(!z.CH()&&!K.videoData.CH()){z.logger.debug("finished building playback data");z.OS=K;sya(z.B8,z.OS);if(z.videoData.isLivePlayback){var f=HKd(z.G5.yO,z.videoData.videoId)||z.loader&&!isNaN(z.loader.nH);f=z.B("html5_onesie_live")&&f;Ot(z)||z.videoData.W1>0&&!k3(z.videoData)||f||z.seekTo(z.eU(),{v8:"videoplayer_playbackData",seekSource:18})}if(z.videoData.T.S){if(Wog(z.videoData)){z.B("html5_sabr_report_missing_url_as_error_terminal")?z.HA("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR", Wf({missabrurl:1})):z.handleError(new Jq("fmt.missing",{missabrurl:"1"},2));return}z.loader?g.Al(Error("Duplicated Loader")):(f=g.uY(z.SV.experiments,"html5_onesie_defer_content_loader_ms"))&&z.kI()&&HKd(z.G5.yO,z.videoData.fP)?g.Sg(function(){z.CH()||z.loader||Q5a(z)},f):Q5a(z)}else!z.videoData.T.S&&OM(z.videoData)&&z.wA(new IM(z.videoData.videoId||"",4)); z.sM();Jru(K).then(function(){var M={};z.UD(M);z.SV.i8()&&z.B("html5_log_media_perf_info")&&z.Th("av1Info",M);$w(z)})}}; uaq=function(z){z.CH();z.logger.debug("try finish readying playback");if(z.JA.finished)z.logger.debug("already finished readying");else if(z.q0.finished)if(g.Z(z.playerState,128))z.logger.debug("cannot finish readying because of error");else if(z.v9.length)z.logger.debug(function(){return"cannot finish readying because of pending preroll: "+z.v9}); else if(z.mR.started||eLg(z.mR),z.mu())z.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{z.loader&&(z.pF=WAo(z.loader.timing));z.JA.finished||(z.JA.finished=!0);var K=z.B("html5_onesie_live")&&z.loader&&!isNaN(z.loader.nH);!z.videoData.isLivePlayback||z.videoData.W1>0&&!k3(z.videoData)||K||Ot(z)||(z.logger.debug("seek to head for live"),z.seekTo(Infinity,{v8:"videoplayer_readying",seekSource:18}),z.isBackground()&&(z.XJ=!0));CGo(z.Vh());z.logger.debug("finished readying playback"); z.publish("playbackready");Cp("pl_c",z.hH.timerName)||(z.hH.tick("pl_c"),UG("pl_c",void 0,"video_to_ad"));Cp("pbr",z.hH.timerName)||(z.hH.tick("pbr"),UG("pbr",void 0,"video_to_ad"))}else z.logger.debug("playback data not loaded")}; Zt=function(z,K){z.U_&&qwW(z);z.U_=new g.bS(K*1E3,0x7ffffffffffff);z.U_.namespace="endcr";z.addCueRange(z.U_)}; qwW=function(z){z.removeCueRange(z.U_);z.U_=null}; mNa=function(z,K,f,M,p){var t=z.Vh(p),B=z.videoData;B.Y=f;var v=g.v8(z);f=new Eed(B,f,K,v?v.itag:"",M);z.SV.experiments.sf("html5_refactor_sabr_video_format_selection_logging")?(f.videoId=p,z.kA=f):t.qoe&&vOS(t.qoe,f);p=z.i9;p.Y=0;p.S=0;z.publish("internalvideoformatchange",B,K==="m")}; g.v8=function(z){var K=Iy(z);return k6(K)||!z.OS?null:g.yQ(z.OS.S.videoInfos,function(f){return K.J(f)})}; Iy=function(z){if(z.OS){var K=z.i9;var f=z.OS;z=z.lT();var M=QFu(K);if(k6(M)){if(M=PT8(K,f).compose(VFS(K,f)).compose(Wbp(K,f)).compose(Aro(K,f.videoData)).compose(jFp(K,f.videoData,f)).compose(sFp(K,f)).compose(m7v(K,f)),k6(z)||K.B("html5_apply_pbr_cap_for_drm"))M=M.compose(lLg(K,f))}else K.B("html5_perf_cap_override_sticky")&&(M=M.compose(sFp(K,f))),K.B("html5_ustreamer_cap_override_sticky")&&(M=M.compose(lLg(K,f)));M=M.compose(m7v(K,f));K=f.videoData.gf.compose(M).compose(f.videoData.K2).compose(z)}else K= ZY;return K}; TAT=function(z){var K=z.i9;z=z.videoData;var f=Aro(K,z);K.B("html5_disable_client_autonav_cap_for_onesie")||f.compose(jFp(K,z));return f}; $w=function(z){if(z.videoData.T&&z.videoData.T.S){var K=Iy(z);z.loader&&cfv(z.loader,K)}}; ldo=function(z){var K;return!!(z.B("html5_native_audio_track_switching")&&g.PJ&&((K=z.videoData.Y)==null?0:BA(K)))}; VES=function(z){if(!ldo(z))return!1;var K;z=(K=z.mediaElement)==null?void 0:K.audioTracks();return!!(z&&z.length>1)}; WgS=function(z){var K=nWS(z);if(K)return z.videoData.getAvailableAudioTracks().find(function(f){return f.b8.getName()===K})}; nWS=function(z){var K;if(z=(K=z.mediaElement)==null?void 0:K.audioTracks())for(K=0;K0&&(K.Hm=M.fE));K.Co=M.LW;K.zN=X7(f,{},M.T||void 0,Ip(M));K.VE=vw(M)&&g.O$(f);bv(M)&&(K.SU=!0,f.B("html5_sabr_report_partial_segment_estimated_duration")&&(K.UO=!0),K.S=!0,K.VB=f.B("html5_sabr_enable_live_clock_offset"),K.ai= f.B("html5_disable_client_resume_policy_for_sabr"),K.zQ=f.B("html5_trigger_loader_when_idle_network"),K.q_=f.B("html5_sabr_parse_live_metadata_playback_boundaries"),K.Jf=f.B("html5_enable_platform_backpressure_with_sabr"),K.N2=f.B("html5_consume_onesie_next_request_policy_for_sabr"),K.Wf=f.B("html5_sabr_report_next_ad_break_time"),K.gx=f.B("html5_log_high_res_buffer_timeline")&&f.i8(),K.cf=f.B("html5_remove_stuck_slices_beyond_max_buffer_limits"),K.yL=f.B("html5_gapless_sabr_btl_last_slice")&&NE(M), K.u2=f.B("html5_reset_last_appended_slice_on_seek")&&NE(M),k3(M)?(K.hf=!0,K.WU=f.B("html5_estimate_partial_segment_duration"),K.oi=f.B("html5_disable_variability_tracker_for_live"),K.b_=f.B("html5_sabr_use_accurate_slice_info_params"),f.B("html5_simplified_backup_timeout_sabr_live")&&(K.tU=!0,K.PA=K.wu)):K.Ft=f.B("html5_probe_request_on_sabr_request_progress"),K.pk=f.B("html5_serve_start_seconds_seek_for_post_live_sabr"),K.b3=f.B("html5_flush_index_on_updated_timestamp_offset"),K.N=bv(M),K.t9=f.B("html5_ignore_partial_segment_from_live_readahead"), f.B("html5_include_partial_segment_for_jumbo_ll")&&hf(M)&&(K.t9=!1),K.EZ=f.B("html5_use_buffer_health_for_readahead"),K.hP=f.B("html5_use_non_active_broadcast_for_post_live"),K.eV=f.B("html5_use_centralized_player_time"),K.G8=f.B("html5_consume_onesie_sabr_seek"),K.l_=f.B("html5_enable_sabr_seek_loader_refactor"),K.xn=f.B("html5_update_segment_start_time_from_media_header"),M.enableServerStitchedDai&&(K.Y=!0,K.gf=f.B("html5_reset_server_stitch_state_for_non_sabr_seek"),K.x4=f.B("html5_remove_ssdai_append_pause")&& !M.Fr(),K.C3=f.B("html5_ssdai_log_ssevt_in_loader")),K.nN=f.i8()||M.Fr());K.C=K.S&&f.B("html5_sabr_live");K.D3=g.Vbg(M);VO(f.C,nX.BITRATE)&&(K.yE=NaN);if(v=g.uY(f.experiments,"html5_request_size_max_kb"))K.Px=v*1024;f.C.T?K.Jo="; "+nX.EXPERIMENTAL.name+"=allowed":f.B("html5_enable_cobalt_tunnel_mode")&&(K.Jo="; tunnelmode=true");v=M.serverPlaybackStartConfig;(v==null?0:v.enable)&&(v==null?0:v.playbackStartPolicy)&&(K.QJ=!0,jw(K,v.playbackStartPolicy,2));v=Ji5(z);z.y5.removeAll();a:{f=z.G5.yO;if(M= z.videoData.videoId)if(p=f.S.get(M)){f.S.remove(M);f=p;break a}f=void 0}z.loader=new g.rX(z,z.SV.schedule,K,z.videoData.S,z.videoData.T,Iy(z),v,z.videoData.enableServerStitchedDai,f,z.videoData.N);K=z.videoData.B("html5_disable_preload_for_ssdai_with_preroll")&&z.videoData.isLivePlayback&&z.kI()?!0:z.fO&&g.iY(z.SV)&&z.videoData.isLivePlayback;z.loader.initialize(z.getCurrentTime(),Iy(z),K);z.videoData.probeUrl&&(z.loader.b_=z.videoData.probeUrl);if(z.v9.length||z.fO)z.videoData.cotn||GT(z,!1);jyo(z.B8, z.loader);z.Z3&&(Bqa(z.loader,new g.oF(z.Z3)),z.Th("sdai",{sdl:1}));g.op(z.videoData)&&(z=z.loader,z.policy.q8=z.policy.S7)}; B8=function(z){z.loader&&(z.loader.dispose(),z.loader=null,jyo(z.B8,null));z.o1()?gWW(z):z.P9()}; gWW=function(z){if(z.u_)if(z.logger.debug("release media source"),z.JM(),z.u_.C)try{z.SV.i8()&&z.Th("rms",{l:"vprms",sr:z.o1(),rs:pw(z.u_)});z.u_.clear();var K;(K=z.mediaElement)!=null&&(K.Y=z.u_);z.u_=null}catch(f){K=new g.UT("Error while clearing Media Source in VideoPlayer: "+f.name+", "+f.message),K=iB(K),z.handleError(K),z.P9()}else z.P9()}; iKq=function(z,K){K=K===void 0?!1:K;if(z.u_)return z.u_.T;z.logger.debug("update media source");a:{K=K===void 0?!1:K;try{g.CJ()&&z.videoData.NG()&&Y$v(z.mediaElement);var f=z.mediaElement.HC(z.LG(),z.V8())}catch(p){if(k2u(z.JD,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",p);z.HA("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}z.Kf(f,!1,!1,K)}var M;return((M=z.HC())==null?void 0:M.T)||null}; dNg=function(z,K){K=K===void 0?!1:K;if(z.loader){z.videoData.enableServerStitchedDai&&DsI(z.loader);var f=z.getCurrentTime()-z.MB();z.loader.seek(f,{VO:K}).Qf(function(){})}else Q5a(z)}; s5q=function(z,K,f,M){f=f===void 0?!1:f;M=M===void 0?!1:M;if(z.u_&&(!K||z.u_===K)){z.logger.debug("media source opened");var p=z.getDuration();!p&&k3(z.videoData)&&(p=25200);if(z.u_.isView){var t=p;z.logger.debug(function(){return"Set media source duration to "+t+", video duration "+p}); t>z.u_.getDuration()&&ciq(z,t)}else ciq(z,p);g3q(z.loader,z.u_,f,M);z.publish("mediasourceattached")}}; ciq=function(z,K){if(z.u_){z.u_.uy(K);var f;(f=z.loader)!=null&&f.policy.eV&&(f.W=K)}}; AfS=function(z,K){mNa(z,K.reason,K.S.info,K.token,K.videoId)}; tW=function(z,K){z.publish("internalvideodatachange",K===void 0?"dataupdated":K,z.videoData)}; Aia=function(z){for(var K=g.a("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),f=K.next();!f.done;f=K.next())z.Mi.X(z.mediaElement,f.value,z.FC,z);z.SV.w_&&z.mediaElement.l2()&&(z.Mi.X(z.mediaElement,"webkitplaybacktargetavailabilitychanged",z.Dcq,z),z.Mi.X(z.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",z.uca,z))}; Yw8=function(z){g.EJ(z.vu);j58(z)||(z.vu=g.um(function(){return j58(z)},100))}; j58=function(z){var K=z.mediaElement;K&&z.FQ&&!z.videoData.Bx&&!Cp("vfp",z.hH.timerName)&&K.S_()>=2&&!K.isEnded()&&RC(K.MV())&&z.hH.tick("vfp");return(K=z.mediaElement)&&!z.videoData.Bx&&K.getDuration()>0&&(K.isPaused()&&K.S_()>=2&&RC(K.MV())&&(Cp("pbp",z.hH.timerName)||z.hH.tick("pbp"),!z.videoData.tU||z.kU||K.isSeeking()||(z.kU=!0,z.publish("onPlaybackPauseAtStart"))),K=K.getCurrentTime(),Jx(z.XE,K))?(z.bz(),!0):!1}; xNW=function(z){z.Vh().Xo();if(y_(z.videoData)&&Date.now()>z.bx+6283){if(!(!z.isAtLiveHead()||z.videoData.S&&V6(z.videoData.S))){var K=z.Vh();if(K.qoe){K=K.qoe;var f=K.provider.AL.Mh(),M=g.ZL(K.provider);bHd(K,M,f);f=f.T;isNaN(f)||g.ef(K,M,"e2el",[f.toFixed(3)])}}z.B("html5_alc_live_log_rawlat")?(K=z.videoData,K=g.JK(K.Z())?!0:g.zt(K.Z())?K.drmProduct==="6":!1):K=g.JK(z.SV);K&&z.Th("rawlat",{l:Ut(z.xL,"rawlivelatency").toFixed(3)});z.bx=Date.now()}z.videoData.Y&&BA(z.videoData.Y)&&(K=z.IK())&&K.videoHeight!== z.jx&&(z.jx=K.videoHeight,mNa(z,"a",XuI(z,z.videoData.b_)))}; XuI=function(z,K){if(K.S.video.quality==="auto"&&BA(K.getInfo())&&z.videoData.QW)for(var f=g.a(z.videoData.QW),M=f.next();!M.done;M=f.next())if(M=M.value,M.getHeight()===z.jx&&M.S.video.quality!=="auto")return M.getInfo();return K.getInfo()}; hho=function(z){if(!y_(z.videoData))return NaN;var K=0;z.loader&&z.videoData.S&&(K=k3(z.videoData)?z.loader.VP.k9()||0:z.videoData.S.eV);return(0,g.X)()/1E3-z.ll()-K}; OKW=function(z){z.mediaElement&&z.mediaElement.Lz()&&(z.RJ=(0,g.X)());z.SV.An?g.Sg(function(){Fgo(z)},0):Fgo(z)}; Fgo=function(z){var K;if((K=z.u_)==null||!K.WE()){if(z.mediaElement)try{z.m0=z.mediaElement.playVideo()}catch(M){N9(z,"err."+M)}if(z.m0){var f=z.m0;f.then(void 0,function(M){z.logger.debug(function(){return"playMediaElement failed: "+M}); if(!g.Z(z.playerState,4)&&!g.Z(z.playerState,256)&&z.m0===f)if(M&&M.name==="AbortError"&&M.message&&M.message.includes("load"))z.logger.debug(function(){return"ignore play media element failure: "+M.message}); else{var p="promise";M&&M.name&&(p+=";m."+M.name);N9(z,p);z.sL=!0;z.videoData.lW=!0}})}}}; N9=function(z,K){g.Z(z.playerState,128)||(z.p6(hj(z.playerState,1028,9)),z.Th("dompaused",{r:K}),z.publish("onAutoplayBlocked"))}; fz=function(z,K){K=K===void 0?!1:K;if(!z.mediaElement||!z.videoData.T)return!1;var f=K;f=f===void 0?!1:f;var M=null;var p;if((p=z.videoData.T)==null?0:p.S){M=iKq(z,f);var t;(t=z.loader)==null||t.resume()}else B8(z),z.videoData.b_&&(M=z.videoData.b_.rG());p=z.mediaElement.d0();f=!1;p&&p.equals(M)||(rio(z,M),f=!0);g.Z(z.playerState,2)||(M=z.B8,K=K===void 0?!1:K,M.C||!(M.T>0)||M.mediaElement&&M.mediaElement.getCurrentTime()>0||(K={v8:"seektimeline_resumeTime",VO:K},M.videoData.Bx||(K.seekSource=15), M.seekTo(M.T,K)));a:{K=f;if(bv(z.videoData)){if(!z.videoData.FS())break a}else if(!g.EM(z.videoData))break a;if(z.mediaElement)if((M=z.videoData.C)&&z.mediaElement.l2()){p=z.mediaElement.H1();if(z.Rc)if(p!==z.Rc.element)bP(z);else if(K&&M.flavor==="fairplay"&&!TM())bP(z);else break a;if(z.B("html5_report_error_for_unsupported_tvos_widevine")&&TM()&&M.flavor==="widevine")K=z.B("html5_log_fmt_unplaybable_trigger")?"trg.unspttvoswidevine":"drm.unspttvoswidevine",z.HA("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK", K);else{z.Rc=new Kbu(p,z.videoData,z.SV);z.Rc.subscribe("licenseerror",z.tZ,z);z.Rc.subscribe("qualitychange",z.I2x,z);z.Rc.subscribe("heartbeatparams",z.qx,z);z.Rc.subscribe("keystatuseschange",z.h1,z);z.Rc.subscribe("ctmp",z.Th,z);K=g.a(z.y5.keys);for(M=K.next();!M.done;M=K.next())M=z.y5.get(M.value),z.Rc.UI(M);z.B("html5_eme_loader_sync")||z.y5.removeAll()}}else K=z.B("html5_log_fmt_unplaybable_trigger")?"trg.updatedrm":"drm.1",z.HA("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",K)}return f}; rio=function(z,K){z.hH.tick("vta");UG("vta",void 0,"video_to_ad");z.getCurrentTime()>0&&FYv(z.B8,z.getCurrentTime());z.mediaElement.activate(K);z.u_&&Ng(4);!z.videoData.Bx&&z.playerState.isOrWillBePlaying()&&z.kF.start();if(ldo(z)){var f;if(K=(f=z.mediaElement)==null?void 0:f.audioTracks())K.onchange=function(){z.publish("internalaudioformatchange",z.videoData,!0)}}}; bP=function(z){z.Rc&&(z.Rc.dispose(),z.Rc=null)}; ZK5=function(z){var K=K===void 0?!1:K;z.logger.debug("reattachVideoSource");z.mediaElement&&(z.u_?(bP(z),z.P9(),iKq(z,K)):(z.videoData.b_&&z.videoData.b_.gH(),z.mediaElement.stopVideo()),z.playVideo())}; oWS=function(z,K){z.SV.B("html5_log_rebuffer_reason")&&(K={r:K,lact:nv()},z.mediaElement&&(K.bh=I4(z.mediaElement)),z.Th("bufreason",K))}; C$u=function(z,K){if(z.SV.i8()&&z.mediaElement){var f=z.mediaElement.S3();f.omt=(z.mediaElement.getCurrentTime()+z.MB()).toFixed(3);f.ps=z.playerState.state.toString(16);f.rt=(lG(z.Vh())*1E3).toFixed();f.e=K;z.Ik[z.Lj++%5]=f}try{if(K==="timeupdate"||K==="progress")return}catch(M){}z.logger.debug(function(){return"video element event "+K})}; T15=function(z){if(z.SV.i8()){z.Ik.sort(function(M,p){return+M.rt-+p.rt}); for(var K=g.a(z.Ik),f=K.next();!f.done;f=K.next())f=f.value,z.Th("vpe",Object.assign({t:f.rt},f));z.Ik=[];z.Lj=0}}; UNg=function(z){if(g.ZQ("cobalt")&&g.ZQ("nintendo switch")){var K=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;z.Th("nxdock",{d:K})}}; GT=function(z,K){var f;(f=z.loader)==null||Vuo(f,K)}; Lgu=function(z){TP(z.videoData,"html5_set_debugging_opt_in")&&(z=g.OT(),g.r0(0,183)||(oZ(183,!0),z.save()))}; yTS=function(z,K){z.G5.Ao()||(z.Th("sgap",{f:K}),z.G5.clearQueue(!1,K==="pe"))}; Ot=function(z){return z.B("html5_disable_video_player_initiated_seeks")&&bv(z.videoData)}; zAS=function(z){zD.call(this,z);var K=this;this.events=new g.xI(z);g.d(this,this.events);GG(this.api,"isLifaAdPlaying",function(){return K.api.isLifaAdPlaying()}); this.events.X(z,"serverstitchedvideochange",function(){var f;(f=K.api.getVideoData())!=null&&f.Fr()&&(K.api.isLifaAdPlaying()?(K.playbackRate=K.api.getPlaybackRate(),K.api.setPlaybackRate(1)):K.api.setPlaybackRate(K.playbackRate))}); this.playbackRate=1}; ed=function(z){B1.call(this,"V\u00f2ng l\u1eb7p",g.e9.W6);this.U=z;var K=z.B("delhi_modern_web_player_icons")?{j:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",V:{d:"M17.29 1.29C17.11 1.46 17.01 1.70 17.00 1.94C16.98 2.19 17.06 2.43 17.22 2.63L17.29 2.70L18.58 4H7C5.67 4 4.40 4.52 3.46 5.46C2.52 6.40 2 7.67 2 9V13C2 13.26 2.10 13.51 2.29 13.70C2.48 13.89 2.73 14 3 14C3.26 14 3.51 13.89 3.70 13.70C3.89 13.51 4 13.26 4 13V9C4 8.20 4.31 7.44 4.87 6.87C5.44 6.31 6.20 6 7 6H18.58L17.29 7.29C17.11 7.48 17.01 7.73 17.01 7.99C17.01 8.25 17.11 8.50 17.30 8.69C17.49 8.88 17.74 8.98 18.00 8.98C18.26 8.98 18.51 8.88 18.70 8.70L22.41 5L18.70 1.29L18.63 1.22C18.43 1.06 18.19 .98 17.94 1.00C17.70 1.01 17.46 1.11 17.29 1.29ZM21 10C20.73 10 20.48 10.10 20.29 10.29C20.10 10.48 20 10.73 20 11V15C20 15.79 19.68 16.55 19.12 17.12C18.55 17.68 17.79 18 17 18H5.41L6.70 16.70C6.80 16.61 6.87 16.50 6.93 16.38C6.98 16.26 7.01 16.12 7.01 15.99C7.01 15.86 6.98 15.73 6.93 15.60C6.88 15.48 6.81 15.37 6.71 15.28C6.62 15.18 6.51 15.11 6.39 15.06C6.26 15.01 6.13 14.98 6.00 14.98C5.87 14.98 5.73 15.01 5.61 15.06C5.49 15.12 5.38 15.19 5.29 15.29L1.58 19L5.29 22.70L5.36 22.77C5.56 22.92 5.80 23.00 6.04 22.99C6.29 22.98 6.52 22.87 6.70 22.70C6.87 22.52 6.98 22.29 6.99 22.04C7.00 21.80 6.92 21.56 6.77 21.36L6.70 21.29L5.41 20H17C18.32 20 19.59 19.47 20.53 18.53C21.47 17.59 22 16.32 22 15V11C22 10.73 21.89 10.48 21.70 10.29C21.51 10.10 21.26 10 21 10Z", fill:"white"}}]}:giW();this.setIcon(K);this.subscribe("select",this.Y,this);z.createClientVe(this.element,this,28661);this.X(z,"settingsMenuVisibilityChanged",this.S);this.listen("click",this.logClick);this.X(z,"onLoopChange",this.onLoopChange);N$(this,z.getLoopVideo());z.Hc().md(this)}; Kv8=function(z){zD.call(this,z);var K=this;z.addEventListener("settingsMenuInitialized",function(){K.menuItem||(K.menuItem=new ed(K.api),g.d(K,K.menuItem))}); z.addEventListener("videodatachange",function(f,M){f=K.api.getPresentingPlayerType()===2;var p;(p=K.menuItem)==null||p.s3(!M.isLivePlayback&&!f)})}; $ko=function(z){zD.call(this,z);var K=this;this.events=new g.xI(z);g.d(this,this.events);GG(this.api,"seekToChapterWithAnimation",function(f){K.seekToChapterWithAnimation(f)}); GG(this.api,"seekToTimeWithAnimation",function(f,M){K.seekToTimeWithAnimation(f,M)}); GG(this.api,"renderChapterSeekingAnimation",function(f,M,p){K.api.renderChapterSeekingAnimation(f,M,p)}); GG(this.api,"setMacroMarkers",function(f){K.setMacroMarkers(z,f)}); GG(this.api,"changeMarkerVisibility",function(f,M,p){K.changeMarkerVisibility(f,M,p)}); GG(this.api,"isSameMarkerTypeVisible",function(f){return K.isSameMarkerTypeVisible(f)})}; fnI=function(z,K,f){var M=z.api.getCurrentTime()*1E30&&p>0&&(f.width+=p,g.H6(K.element,"width",f.width+"px")));z.size=f}}; g.mY=function(z,K){var f=z.S[z.S.length-1];f!==K&&(z.S.push(K),mkg(z,f,K))}; g.lP=function(z){if(!(z.S.length<=1)){var K=z.S.pop(),f=z.S[0];z.S=[f];mkg(z,K,f,!0)}}; mkg=function(z,K,f,M){lnW(z);K&&(K.unsubscribe("size-change",z.YW,z),K.unsubscribe("back",z.wS,z));f.subscribe("size-change",z.YW,z);f.subscribe("back",z.wS,z);if(z.l8){g.ey(f.element,M?"ytp-panel-animate-back":"ytp-panel-animate-forward");f.hL(z.element);f.focus();z.element.scrollLeft=0;z.element.scrollTop=0;var p=z.size;qXS(z);g.ip(z.element,p);z.W=new g.Kl(function(){VY8(z,K,f,M)},20,z); z.W.start()}else f.hL(z.element),K&&K.detach()}; VY8=function(z,K,f,M){z.W.dispose();z.W=null;g.ey(z.element,"ytp-popup-animating");M?(g.ey(K.element,"ytp-panel-animate-forward"),g.Dz(f.element,"ytp-panel-animate-back")):(g.ey(K.element,"ytp-panel-animate-back"),g.Dz(f.element,"ytp-panel-animate-forward"));g.ip(z.element,z.size);z.G=new g.Kl(function(){g.Dz(z.element,"ytp-popup-animating");K.detach();g.yf(K.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);z.G.dispose();z.G=null},250,z); z.G.start()}; lnW=function(z){z.W&&g.pl(z.W);z.G&&g.pl(z.G)}; Vo=function(z){g.q9.call(this,z,"ytp-shopping-product-menu");this.Yd=new g.H8(this.U);g.d(this,this.Yd);this.hide();g.mY(this,this.Yd);g.dq(this.U,this.element,4)}; Wva=function(z,K,f){var M,p=K==null?void 0:(M=K.text)==null?void 0:M.simpleText;p&&(f=nJd(z,f,p,K==null?void 0:K.icon,K==null?void 0:K.secondaryIcon),K.navigationEndpoint&&f.listen("click",function(){z.U.LH("innertubeCommand",K.navigationEndpoint);z.hide()},z))}; JsI=function(z,K,f){var M,p=K==null?void 0:(M=K.text)==null?void 0:M.simpleText;p&&nJd(z,f,p,K==null?void 0:K.icon).listen("click",function(){var t;(K==null?void 0:(t=K.icon)==null?void 0:t.iconType)==="HIDE"?z.U.publish("featuredproductdismissed"):K.serviceEndpoint&&z.U.LH("innertubeCommand",K.serviceEndpoint);z.hide()},z)}; nJd=function(z,K,f,M,p){K=new g.oN(g.Cq({},[],!1,!!p),K,f);p&&K.updateValue("secondaryIcon",gJT(p));K.setIcon(gJT(M));g.d(z,K);z.Yd.md(K,!0);return K}; gJT=function(z){if(!z)return null;switch(z.iconType){case "ACCOUNT_CIRCLE":return{j:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",V:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", fill:"#fff"}}]};case "FLAG":return{j:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",V:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return uQg();case "HIDE":return{j:"svg",V:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"g",L:[{j:"path",V:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]}; case "OPEN_IN_NEW":return nc()}}; nz=function(z){ER.call(this,z,!1,!0);this.isCounterfactual=this.Y=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.D=!0;this.overflowButton=new g.F({j:"button",Wx:["ytp-featured-product-overflow-icon","ytp-button"],V:{"aria-haspopup":"true"}});this.overflowButton.hide();g.d(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.F({j:"img",K:"ytp-suggested-action-badge-img",V:{src:"{{url}}"}}); this.thumbnailImage.hide();g.d(this,this.thumbnailImage);this.thumbnailIcon=new g.F({j:"div",K:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.d(this,this.thumbnailIcon);this.banner=new g.F({j:"a",K:"ytp-suggested-action-container",L:[this.thumbnailImage,this.thumbnailIcon,{j:"div",K:"ytp-suggested-action-details",L:[{j:"text",K:"ytp-suggested-action-title",qc:"{{title}}"},{j:"text",K:"ytp-suggested-action-subtitle",qc:"{{subtitle}}"},{j:"text",K:"ytp-suggested-action-metadata-text", qc:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.d(this,this.banner);this.banner.hL(this.T.element);this.X(this.U,"videodatachange",this.onVideoDataChange);this.X(this.U,g.wE("suggested_action_view_model"),this.jpL);this.X(this.U,g.DU("suggested_action_view_model"),this.eaV);this.X(this.overflowButton.element,"click",this.Pq);this.X(z,"featuredproductdismissed",this.qs);this.U.createServerVe(this.banner.element,this.banner,!0)}; iy8=function(z){z.isInitialized&&(z.enabled=z.isVisible,z.l_=z.isVisible,Lz(z),z.Vf(),z.thumbnailImage.s3(z.isVisible),z.shouldHideDismissButton||z.dismissButton.s3(z.isVisible),z.shouldShowOverflowButton&&z.overflowButton.s3(z.isVisible))}; W8=function(){nz.apply(this,arguments)}; dkW=function(z){zD.call(this,z);this.S=new W8(this.api);g.d(this,this.S);g.dq(this.api,this.S.element,4)}; JW=function(z){zD.call(this,z);var K=this;this.Y="";this.S=!0;this.T=this.api.B("html5_enable_audio_track_stickiness_phase_two");var f=new g.xI(z);g.d(this,f);f.X(z,"internalaudioformatchange",function(M,p){csa(K,M,p)}); f.X(z,"videoplayerreset",function(){s_S(K)}); f.X(z,"videodatachange",function(M,p){K.onVideoDataChange(M,p)})}; csa=function(z,K,f){if(f){var M="";if(Asq(z,K)){M=K;z.T||(z.Y=K);if(f=z.api.getVideoData(void 0,!0))f.s8=K;z.api.Z().TP=K}if(z.T&&M&&j_q(z,M)){bg8(z.api,z.Y||M);var p;uV(Gt(z.api.Z(),(p=z.api.getVideoData())==null?void 0:g.X6(p)),function(t){YXp(z,M,t)})}}}; s_S=function(z){if(z.Y)XqS(z);else{var K;if(z.T&&((K=KX())==null?0:K.size)){var f;uV(Gt(z.api.Z(),(f=z.api.getVideoData())==null?void 0:g.X6(f)),function(M){if((M=xkW(M))&&j_q(z,M)){var p=z.api.getVideoData(void 0,!0);p&&(p.s8=M);z.api.Z().TP=M}})}}}; XqS=function(z){var K=z.api.getVideoData(void 0,!0);K&&(K.s8=z.Y)}; YXp=function(z,K,f){xkW(f)!==K&&(Fv8([{settingItemId:g9(f),settingOptionValue:{stringValue:K}}]),uV(z.Gm(),function(M){ku8(M,g9(f),{stringValue:K})}))}; Oy5=function(z,K){Lg(uV(uV(z.Gm(),function(f){return Deo(f,[g9(K)])}),function(f){if(f){f=g.a(f); for(var M=f.next();!M.done;M=f.next()){var p=M.value;M=p.key;p=p.value;M&&p&&(Fv8([{settingItemId:M,settingOptionValue:p}]),s_S(z))}}}),function(){z.S=!0})}; Asq=function(z,K){z=z.api.getAvailableAudioTracks();z=g.a(z);for(var f=z.next();!f.done;f=z.next())if(f=f.value,f.getLanguageInfo().getId()===K)return f;return null}; xkW=function(z){z=g9(z);var K=KX();z=K?K.get(z):void 0;return z&&z.stringValue?z.stringValue:""}; g9=function(z){var K=(484).toString();z&&(K=(483).toString());return K}; j_q=function(z,K){var f;return K.split(".")[0]!==""&&((f=z.api.getVideoData())==null?void 0:!F6(f))}; Fv8=function(z){var K=KX();K||(K=new Map);z=g.a(z);for(var f=z.next();!f.done;f=z.next())f=f.value,K.set(f.settingItemId,f.settingOptionValue);K=JSON.stringify(Object.fromEntries(K));g.sT("yt-player-user-settings",K,2592E3)}; g.iP=function(z,K,f,M,p,t,B){g.oN.call(this,g.Cq({"aria-haspopup":"true"}),K,z);this.zP=M;this.D=!1;this.T=null;this.options={};this.Y=new g.H8(f,void 0,z,p,t,B);g.d(this,this.Y);this.listen("keydown",this.Kh);this.listen("click",this.open)}; rsu=function(z){if(z.T){var K=z.options[z.T];K.element.getAttribute("aria-checked");K.element.setAttribute("aria-checked","false");z.T=null}}; ZyS=function(z,K){g.iP.call(this,"H\u1eb9n gi\u1edd ng\u1ee7",g.e9.SLEEP_TIMER,z,K);this.U=z;this.N={};this.W=this.C4("Off");this.G=this.S="";z.B("web_settings_menu_icons")&&(K=z.B("delhi_modern_web_player_icons")?{j:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",V:{d:"M12.33 1.00C12.22 1.00 12.11 1.00 12 1C5.92 1 1 5.92 1 12C1 18.07 5.92 23 12 23C13.90 23.00 15.78 22.50 17.44 21.55C19.10 20.61 20.48 19.25 21.46 17.61L21.64 17.29C22.06 16.52 21.21 15.73 20.35 15.88C18.76 16.15 17.12 15.94 15.66 15.27C14.19 14.59 12.97 13.49 12.14 12.11C11.31 10.73 10.91 9.13 11.01 7.52C11.11 5.91 11.69 4.37 12.67 3.09L12.89 2.83C13.45 2.16 13.20 1.03 12.33 1.00ZM15.56 2.60C15.45 2.84 15.43 3.11 15.51 3.36C15.59 3.61 15.77 3.82 16.01 3.94C16.91 4.39 17.73 4.99 18.44 5.71L18.73 6.03L18.80 6.10C18.99 6.27 19.22 6.36 19.47 6.37C19.72 6.37 19.96 6.28 20.15 6.12C20.33 5.95 20.45 5.72 20.48 5.48C20.51 5.23 20.44 4.98 20.29 4.78L20.23 4.70L19.87 4.31C19.01 3.43 18.01 2.70 16.90 2.15C16.67 2.03 16.39 2.01 16.14 2.10C15.89 2.18 15.68 2.36 15.56 2.60M10.24 3.17C9.42 4.64 8.99 6.31 9 8C9 13.42 13.32 17.84 18.71 17.99C17.86 18.93 16.83 19.69 15.67 20.21C14.52 20.73 13.26 21.00 12 21C9.76 21.00 7.60 20.17 5.95 18.67C4.29 17.17 3.25 15.10 3.03 12.88C2.81 10.65 3.43 8.43 4.76 6.63C6.09 4.84 8.05 3.60 10.24 3.17M21.16 7.88C20.93 7.96 20.73 8.12 20.61 8.34C20.49 8.55 20.45 8.81 20.50 9.05L20.53 9.15L20.66 9.56C20.93 10.53 21.04 11.54 20.98 12.55C20.97 12.81 21.06 13.06 21.23 13.26C21.41 13.45 21.65 13.57 21.92 13.59C22.18 13.60 22.44 13.52 22.63 13.34C22.83 13.17 22.95 12.93 22.97 12.67C23.05 11.44 22.92 10.20 22.58 9.02L22.43 8.51L22.39 8.42C22.29 8.19 22.11 8.01 21.88 7.91C21.65 7.81 21.40 7.80 21.16 7.88Z", fill:"white"}}]}:{j:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",V:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z",fill:"#fff"}}]},this.setIcon(K)); this.J=new g.F({j:"div",Wx:["ytp-menuitem-label-wrapper"],L:[{j:"div",qc:"Khi h\u1ebft video"},{j:"div",Wx:["ytp-menuitem-sublabel"],qc:"{{content}}"}]});g.d(this,this.J);this.listen("click",this.onClick);this.X(z,"videodatachange",this.onVideoDataChange);this.X(z,"presentingplayerstatechange",this.Dq);this.X(z,"settingsMenuVisibilityChanged",this.FA);z.createClientVe(this.element,this,218889);this.Dq();this.U.LH("onSleepTimerFeatureAvailable")}; oJq=function(z){var K="Off 10 15 20 30 45 60".split(" "),f;((f=z.U.getVideoData())==null?0:f.isLivePlayback)||K.push("End of video");f=z.U.getPlaylist();var M;f&&((M=f.listId)==null?void 0:M.type)!=="RD"&&K.push("End of playlist");z.Ym(g.UZ(K,z.C4));z.N=g.s9(K,z.C4,z);K=z.C4("End of video");z.options[K]&&g.Zo(z.options[K],z.J)}; CQv=function(z,K){var f=z.N[K],M=f==="End of video"||f==="End of playlist";f==="Off"&&(z.S="");z.U.getPlayerState()!==0&&z.U.getPlayerState()!==5||!M?(z.W=K,g.iP.prototype.Y3.call(z,K),z.bI(K),z.U.LH("onSleepTimerSettingsChanged",f)):z.U.LH("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video \u0111\u00e3 k\u1ebft th\u00fac"}}}}})}; d9=function(z){zD.call(this,z);var K=this;z.addEventListener("settingsMenuInitialized",function(){K.menuItem||(K.menuItem=new ZyS(K.api,K.api.Hc()),g.d(K,K.menuItem))}); z.addEventListener("openSettingsMenuItem",function(f){if(f==="menu_item_sleep_timer"){if(!K.menuItem){var M;(M=K.api.Hc())==null||M.uP()}K.menuItem.open()}}); GG(z,"resetSleepTimerMenuSettings",function(){K.resetSleepTimerMenuSettings()}); GG(z,"setSleepTimerTimeLeft",function(f){K.setSleepTimerTimeLeft(f)}); GG(z,"setVideoTimeLeft",function(f){K.setVideoTimeLeft(f)})}; T2a=function(z){zD.call(this,z);var K=this;this.events=new g.xI(z);g.d(this,this.events);this.events.X(z,"onSnackbarMessage",function(f){switch(f){case 1:f=K.api.getPlayerStateObject(),f.isBuffering()&&(K.api.B("html5_disable_snackbar_message_checking_on_seeking_to_play")||g.Z(f,8)&&g.Z(f,16))&&K.api.LH("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"B\u1ea1n \u0111ang g\u1eb7p s\u1ef1 c\u1ed1 g\u00e2y gi\u00e1n \u0111o\u1ea1n?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY", size:"SIZE_DEFAULT",text:{runs:[{text:"H\u00e3y t\u00ecm hi\u1ec3u l\u00fd do"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}}, loggingDirectives:{clientVeSpec:{uiType:232470}}}},durationHintMs:5E3,popupType:"TOAST"}})}})}; g.sR=function(z,K,f,M,p){K=K===void 0?!1:K;M=M===void 0?!1:M;p=p===void 0?!1:p;g.Dv.call(this);this.N=p;this.G=!1;this.J=new WK(this);this.C=this.W=null;this.T=this.Y=!1;g.d(this,this.J);this.target=z;this.S=K;this.D=f||z;this.G=M;K&&(g.oz&&this.target.setAttribute("draggable","true"),p||(this.target.style.touchAction="none"));c8(this)}; AW=function(z){g.g0(z.J,!z.S)}; c8=function(z){z.C=null;z.W=null;z.X(jd("over"),z.Aw);z.X("touchstart",z.V2);z.S&&z.X(jd("down"),z.mcE)}; Uka=function(z,K){for(var f=0;fp.start&&f>=5;R+=E}w=R.substr(0,4)+" "+R.substr(4,4)+" "+R.substr(8,4)+" "+(R.substr(12,4)+" "+R.substr(16,4))}else w="";B={video_id_and_cpn:String(K.videoId)+" / "+w,codecs:"",dims_and_frames:"",bandwidth_kbps:B.toFixed(0)+" Kbps",buffer_health_seconds:I.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:G?"":"display:none",drm:G,debug_info:f,extra_debug_info:"",bandwidth_style:e,network_activity_style:e,network_activity_bytes:v.toFixed(0)+" KB",shader_info:b,shader_info_style:b?"":"display:none",playback_categories:""};v=M.clientWidth+"x"+M.clientHeight+(p>1?"*"+p.toFixed(2):"");I="-";t.totalVideoFrames&&(I=(t.droppedVideoFrames||0)+" dropped of "+t.totalVideoFrames);B.dims_and_frames=v+" / "+I;z=z.getVolume();v=lXa(K);var q;if((q=K.J)==null?0:q.audio.Y)q= "VB";else{var V;q=((V=K.J)==null?0:V.audio.S)?"DRC":Math.round(z*v)+"%"}V=Math.round(z)+"% / "+q;q=K.SU.toFixed(1);isFinite(Number(q))&&(V+=" (content loudness "+q+"dB)");B.volume=V;B.resolution=M.videoWidth+"x"+M.videoHeight;if(M=K.Y){if(V=M.video)q=V.fps,q>1&&(B.resolution+="@"+q),(q=t.gV)&&q.video&&(B.resolution+=" / "+q.video.width+"x"+q.video.height,q.video.fps>1&&(B.resolution+="@"+q.video.fps)),B.codecs=pEv(M),!K.J||M.audio&&M.video?M.Gg&&(B.codecs+=" / "+M.Gg+"A"):B.codecs+=" / "+pEv(K.J), V.S||V.primaries?(q=V.S||"unknown",q==="smpte2084"?q+=" (PQ)":q==="arib-std-b67"&&(q+=" (HLG)"),B.color=q+" / "+(V.primaries||"unknown"),B.color_style=""):B.color_style="display:none";if(M.debugInfo)for(B.fmt_debug_info="",M=g.a(M.debugInfo),V=M.next();!V.done;V=M.next())V=V.value,B.fmt_debug_info+=V.label+":"+V.text+" ";B.fmt_debug_info_style=B.fmt_debug_info&&B.fmt_debug_info.length>0?"":"display:none"}M=K.isLivePlayback;V=K.Ca;B.live_mode_style=M||V?"":"display:none";B.live_latency_style=M?"": "display:none";if(V)B.live_mode="Post-Live"+(k3(K)?" Manifestless":"");else if(M){V=t.SW;B.live_latency_secs=V.toFixed(2)+"s";M=k3(K)?"Manifestless, ":"";K.Y1&&(M+="Windowed, ");q="Uncertain";if(V>=0&&V<120)if(K.latencyClass&&K.latencyClass!=="UNKNOWN")switch(K.latencyClass){case "NORMAL":q="Optimized for Normal Latency";break;case "LOW":q="Optimized for Low Latency";break;case "ULTRALOW":q="Optimized for Ultra Low Latency";break;default:q="Unknown Latency Setting"}else q=K.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";M+=q;(V=t.t3)&&(M+=", seq "+V.sequence);B.live_mode=M}!t.isGapless||NE(K)&&t.Ao||(B.playback_categories+="Gapless ");B.playback_categories_style=B.playback_categories?"":"display:none";B.bandwidth_samples=t.wz;B.network_activity_samples=t.Z8;B.live_latency_samples=t.Tt;B.buffer_health_samples=t.bA;t=g.op(K);if(K.cotn||t)B.cotn_and_local_media=(K.cotn?K.cotn:"null")+" / "+t;B.cotn_and_local_media_style=B.cotn_and_local_media?"":"display:none"; TP(K,"web_player_release_debug")?(B.release_name=N[62],B.release_style=""):B.release_style="display:none";B.debug_info&&D.length>0&&B.debug_info.length+D.length<=60?B.debug_info+=" "+D:B.extra_debug_info=D;B.extra_debug_info_style=B.extra_debug_info&&B.extra_debug_info.length>0?"":"display:none";return B}; pEv=function(z){var K=/codecs="([^"]*)"/.exec(z.mimeType);return K&&K[1]?K[1]+" ("+z.itag+")":z.itag}; ZN=function(z,K,f,M,p){g.F.call(this,{j:"div",K:"ytp-horizonchart"});this.G=K;this.sampleCount=f;this.J=M;this.W=p;this.index=0;this.heightPx=-1;this.T=this.Y=null;this.S=Math.round(z/f);this.element.style.width=this.S*this.sampleCount+"px";this.element.style.height=this.G+"em"}; oy=function(z,K){if(z.heightPx===-1){var f=null;try{f=g.zi("CANVAS"),z.Y=f.getContext("2d")}catch(v){}if(z.Y){var M=z.S*z.sampleCount;z.T=f;z.T.width=M;z.T.style.width=M+"px";z.element.appendChild(z.T)}else for(z.sampleCount=Math.floor(z.sampleCount/4),z.S*=4,f=0;f1?2:1,z.T.height=z.heightPx*f,z.T.style.height= z.heightPx+"px",z.Y.scale(1,f)));K=g.a(K);for(M=K.next();!M.done;M=K.next()){f=z;var p=z.index,t=M.value;for(M=0;M+20&&g.fs(K.T.element);M.classList.add("ytp-timely-actions-overlay");K.T.element.appendChild(M)}); g.d(this,this.T);g.dq(this.api,this.T.element,4)}; S1p=function(z){z.timelyActions&&(z.J=z.timelyActions.reduce(function(K,f){if(f.cueRangeId===void 0)return K;K[f.cueRangeId]=0;return K},{}))}; KK=function(z,K){if(z.timelyActions){z=g.a(z.timelyActions);for(var f=z.next();!f.done;f=z.next())if(f=f.value,f.cueRangeId===K)return f}}; uz8=function(z,K){if((z=KK(z,K))&&z.onCueRangeExit)return FX(z.onCueRangeExit)}; z8=function(z){if(z.S!==void 0){var K=(K=KK(z,z.S))&&K.onCueRangeEnter?FX(K.onCueRangeEnter):void 0;var f=KK(z,z.S);a:if(f&&f.additionalTrigger){var M=g.a(f.additionalTrigger);for(var p=M.next();!p.done;p=M.next())if(p=p.value,p.type){var t=void 0,B=void 0;if((t=z.nH[p.type])==null?0:t((B=p.args)!=null?B:{})){M=!0;break a}}M=!1}else M=!0;K&&M&&(z.api.LH("innertubeCommand",K),z.setTimeout(f),z.J[z.S]!==void 0&&z.J[z.S]++,z.N=!0)}}; kBg=function(z,K){return z.Y===void 0?!1:K.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(K.seekLengthMilliseconds)===5E3?z.Y===72:K.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(K.seekLengthMilliseconds)===1E4?z.Y===74:K.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(K.seekLengthMilliseconds)===5E3?z.Y===71:K.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(K.seekLengthMilliseconds)===1E4?z.Y===73:!1}; hco=function(z){if(z=z.getWatchNextResponse()){var K,f;z=(K=z.playerOverlays)==null?void 0:(f=K.playerOverlayRenderer)==null?void 0:f.timelyActionsOverlayViewModel;K=g.A(z,LLS);if(K!=null&&K.timelyActions)return K==null?void 0:K.timelyActions.map(function(M){return g.A(M,E2q)}).filter(function(M){return!!M})}}; Pog=function(z){zD.call(this,z);var K=this;bD(this.api,"getPlaybackRate",function(){return K.api.getPlaybackRate()}); bD(this.api,"setPlaybackRate",function(f){typeof f==="number"&&K.api.setPlaybackRate(f)})}; $W=function(z,K,f,M){B1.call(this,"VOICE_BOOST",g.e9.LX);this.S=!1;this.U=z;this.zP=z.Hc();this.J=K;this.T=f;this.hasVoiceBoostAudioTrack=M;this.X(z,"videodatachange",this.Y);this.setIcon(lsW());this.subscribe("select",this.W,this);this.Y()}; fK=function(z){zD.call(this,z);var K=this;this.events=new g.xI(z);g.d(this,this.events);this.events.X(z,"settingsMenuInitialized",function(){HY8(K)}); GG(this.api,"getVoiceBoostUserPreference",function(){return K.getVoiceBoostUserPreference()}); GG(this.api,"setVoiceBoostUserPreference",function(M){K.setVoiceBoostUserPreference(M)}); GG(this.api,"hasVoiceBoostAudioTrack",function(){return K.hasVoiceBoostAudioTrack()}); var f;this.S=(f=Uag())!=null?f:0;this.updateEnvironmentData()}; HY8=function(z){z.menuItem||(z.menuItem=new $W(z.api,function(K){z.setVoiceBoostUserPreference(K)},function(){return z.getVoiceBoostUserPreference()},function(){return z.hasVoiceBoostAudioTrack()}),g.d(z,z.menuItem))}; QJu=function(z){z=z.Ic();if(!z)return!1;z=g.Iw(z).exp||"";return z.includes("xpv")||z.includes("xpe")}; q1q=function(z){z=g.a(g.MN(z,!0));for(var K=z.next();!K.done;K=z.next())if(QJu(K.value))return!0;return!1}; mC8=function(z,K){z=g.a(g.MN(z,!0));for(var f=z.next();!f.done;f=z.next())if(f=f.value,QJu(f)){var M={potc:"1",pot:K};f.url&&(f.url=GM(f.url,M))}}; lGu=function(z){return g.n(function(K){if(K.Y==1)return g.Sq(K,2),g.l(K,z,4);if(K.Y!=2)return g.Eu(K,0);g.QI(K);g.Rv(K)})}; ti=function(z){zD.call(this,z);var K=this;this.useLivingRoomPoToken=!1;this.C=new g.ai;this.S=!1;this.hH=null;this.D=!1;this.J=null;this.W=!1;var f=z.Z().getWebPlayerContextConfig();this.events=new g.xI(z);g.d(this,this.events);this.events.X(z,"spsumpreject",function(M,p,t){K.W=p;M&&K.D&&!K.J&&(K.B("html5_generate_content_po_token")&&t?K.Ai(t):K.B("html5_generate_session_po_token")&&V0q(K));K.J||K.api.Th("stp",{s:+K.D,b:+K.W})}); this.events.X(z,"poTokenVideoBindingChange",function(M){K.Ai(M)}); this.useLivingRoomPoToken=!(f==null||!f.useLivingRoomPoToken);z.addEventListener("csiinitialized",function(){K.hH=z.Rx();var M=(K.B("html5_generate_session_po_token")||K.B("html5_generate_content_po_token"))&&!K.useLivingRoomPoToken;try{if(K.B("html5_use_shared_owl_instance"))n2u(K);else if(M){K.hH.o5("pot_isc");var p=g.uY(K.api.Z().experiments,"html5_webpo_kaios_defer_timeout_ms");p?(K.T=FW(),g.Sg(function(){pK(K)},p)):K.B("html5_webpo_idle_priority_job")?(K.T=FW(),g.Mg(g.tO(),function(){pK(K)})): pK(K)}}catch(t){t instanceof Error&&g.Al(t)}}); z.addEventListener("trackListLoaded",this.ij.bind(this));z.LC(this)}; WLa=function(z){var K=Nw(z.experiments,"html5_web_po_request_key");return K?K:g.iY(z)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; Jzv=function(z){var K=new Mkp,f={},M=(f["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",f);return new Pc(K,z,function(){return M})}; g2I=function(z){return new Hc(z)}; Bu=function(z,K){z.B("html5_webpo_bge_ctmp")&&z.api.Th(K,{hwpo:!!z.Y,hwpor:z.S})}; n2u=function(z){var K,f;g.n(function(M){if(M.Y==1)return Bu(z,"swpo_i"),z.T=FW(),NN(z),g.l(M,IE(),2);if(M.Y!=3)return K=M.S,Bu(z,"swpo_co"),g.l(M,JoT(K),3);f=M.S;z.B("html5_web_po_token_disable_caching")||f.wT(150);z.Y=f;Bu(z,"swpo_cc");lGu(f.Gx()).then(function(){z.S=!0;z.C.resolve();Bu(z,"swpo_re")}); g.Sg(function(){pK(z);Bu(z,"swpo_si")},0); g.Rv(M)})}; dCv=function(z){var K=z.api.Z(),f=Jzv(WLa(K)),M=f.In.bind(f);f.In=function(v){var I;return g.n(function(G){if(G.Y==1)return g.l(G,M(v),2);I=G.S;z.api.Th("itr",{});return G.return(I)})}; try{var p=g2I({o9:f,Kx:{maxAttempts:5},Py:{kx:"CLEn",disable:K.experiments.sf("html5_web_po_disable_remote_logging")||iY5.includes(g.EW(K.c7)||""),im:Ffv(K.experiments),cLc:z.B("wpo_dis_lfdms")?0:1E3},HIe:g.Al});var t=new XW({r3:p,o9:f,onError:g.Al});lGu(t.Gx()).then(function(){z.S=!0;z.C.resolve()}); z.B("html5_web_po_token_disable_caching")||t.wT(150);g.d(z,p);g.d(z,t);z.Y=t}catch(v){g.Al(v);var B;(B=p)==null||B.dispose()}}; pK=function(z){var K=z.api.Z();z.hH.o5("pot_ist");z.Y||dCv(z);z.B("html5_bandaid_attach_content_po_token")||(z.B("html5_generate_session_po_token")&&(NN(z),V0q(z)),K=g.uY(K.experiments,"html5_session_po_token_interval_time_ms")||0,K>0&&(z.G=g.um(function(){NN(z)},K)),z.D=!0)}; NN=function(z){var K,f,M,p;g.n(function(t){if(!z.B("html5_generate_session_po_token")||z.useLivingRoomPoToken)return t.return();K=z.api.Z();f=g.zM("EOM_VISITOR_DATA")||g.zM("VISITOR_DATA");M=K.s8?K.datasyncId:f;p=Nw(K.experiments,"html5_mock_content_binding_for_session_token")||K.livingRoomPoTokenId||M;K.lW=vu(z,p);g.Rv(t)})}; vu=function(z,K){if(!z.Y){if(z.T)try{return z.T(K)}catch(t){g.Al(t)}return""}try{z.hH.o5(z.S?"pot_cms":"pot_csms");var f={uH:!0,gm:!0,HV:K};z.B("html5_web_po_token_disable_caching")||(f.N0={WS:K,uR:!0,zd:!0});var M=z.Y.Qr(f);z.hH.o5(z.S?"pot_cmf":"pot_csmf");if(z.S){var p;(p=z.J)==null||p.resolve();z.J=null;z.W&&(z.W=!1,z.api.app.Of().wf(!1))}return M}catch(t){return g.Al(t),""}}; V0q=function(z){z.Y&&(z.J=new BC,z.C.promise.then(function(){z.hH.o5("pot_if");NN(z)}))}; I5=function(z){g.F.call(this,{j:"div",Wx:["ytp-grid-videos-button","ytp-button","ytp-grid-videos-button-with-tooltip-background"],V:{title:"{{title}}",role:"button",tabindex:"0","aria-hidden":"true"},L:[{j:"span",qc:"{{title}}"},{j:"div",K:"ytp-tooltip-keyboard-shortcut",qc:"{{keyBoardShortcut}}"}]});this.U=z;this.listen("click",this.onClick);cz8(this,0);this.hide()}; cz8=function(z,K){switch(K){case 2:K="Hide videos";var f="Hide recommendations grid";break;default:K="Video kh\u00e1c",f="Show recommendations grid"}z.updateValue("title",K);z.updateValue("keyBoardShortcut","V");z.element.ariaLabel=f;z.element.firstChild.textContent=K}; b$=function(z){zD.call(this,z);var K=this;this.S=0;var f=new g.xI(z);g.d(this,f);this.W=this.api.B("web_player_imax_theater_mode");this.Y=this.api.B("web_player_enable_fullscreen_grid_components");f.X(z,"fullscreentoggled",function(){G8(K)}); f.X(z,"sizestylechange",function(){K.Y&&G8(K)}); GG(this.api,"setFullscreenQuickActions",function(M){K.setFullscreenQuickActions(M)}); GG(this.api,"setPlayerOverlayVideoDetailsRenderer",function(M){K.setPlayerOverlayVideoDetailsRenderer(M)}); this.Y&&sJg(this,f,z)}; sJg=function(z,K,f){K.X(f,"keyboardserviceglobalkeydown",function(M,p){z.Y&&M.keyCode===86&&!M.repeat&&z.S!==0&&(p&&(p.GG=!0),z.C())}); K.X(f,"standardControlsInitialized",function(){if(!z.T){z.T=new I5(z.api);g.d(z,z.T);z.T.listen("click",z.C,z);var M=z.api.getRootNode().querySelector(".ytp-chrome-controls");M&&M.appendChild(z.T.element)}}); AzS(z,z.S)}; G8=function(z){var K=z.api.isFullscreen()||z.W&&z.api.mY();z.J&&g.c6(z.J,K);z.playerOverlayVideoDetailsRenderer&&g.c6(z.playerOverlayVideoDetailsRenderer,K);if(z.Y){var f=K&&z.S===0;K?f&&eE(z,1):eE(z,0)}}; eE=function(z,K){z.S=K;var f;(f=z.T)==null||f.Xr(K);AzS(z,K)}; AzS=function(z,K){z=z.api.getRootNode();g.k4(z,"ytp-fullscreen-grid-peaking",K===1);g.k4(z,"ytp-fullscreen-grid-active",K===2)}; jJ5=function(z){zD.call(this,z);var K=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.xI(z);g.d(this,this.events);this.events.X(z,"heartbeatRequest",function(f){if(K.freePreviewUsageDetails.length||K.freePreviewWatchedDuration!==null)f.heartbeatRequestParams||(f.heartbeatRequestParams={}),f.heartbeatRequestParams.unpluggedParams||(f.heartbeatRequestParams.unpluggedParams={}),K.freePreviewUsageDetails.length>0?f.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= K.freePreviewUsageDetails:f.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+K.freePreviewWatchedDuration}}); GG(z,"setFreePreviewWatchedDuration",function(f){K.freePreviewWatchedDuration=f}); GG(z,"setFreePreviewUsageDetails",function(f){K.freePreviewUsageDetails=f})}; w1=function(z){g.J.call(this);this.features=[];var K=this.S,f=new q$(z),M=new KE(z),p=new kw(z),t=new ti(z);var B=g.JK(z.Z())?void 0:new S9(z);var v=new yo(z),I=new v2v(z),G=new Pog(z),b=new Qt(z);var e=g.JK(z.Z())?new jJ5(z):void 0;var w=z.B("html5_enable_ssap")?new M0T(z):void 0;var D;var y=(D=z.Z().getWebPlayerContextConfig())!=null&&D.cinematicSettingsAvailable?new kM(z):void 0;D=new H1(z);var R=z.B("enable_courses_player_overlay_purchase")?new xfS(z):void 0;var S=g.$t(z.Z())?new A3I(z):void 0; var E=new u4(z);var L=z.Z().J?new J3d(z):void 0;var q=g.Jw(z.Z())?new WGd(z):void 0;var V=z.B("web_player_move_autonav_toggle")&&z.Z().t9?new E$p(z):void 0;var c=g.$t(z.Z())?new $ko(z):void 0;var O=z.B("web_enable_speedmaster")&&g.$t(z.Z())?new xw(z):void 0;var x=z.Z().Zh?void 0:new yzo(z);var T=z.B("report_pml_debug_signal")?new R15(z):void 0;var M8=new Dk5(z),$S=new Sd(z);var td=g.O$(z.Z())?new PQa(z):void 0;var r=navigator.mediaSession&&window.MediaMetadata&&z.Z().VB?new w9(z):void 0;var yI=z.B("html5_enable_drc")&& !z.Z().W?new R0(z):void 0;var H5=new fE(z);var ra=g.$t(z.Z())?new dkW(z):void 0;var Ho=z.B("html5_enable_d6de4")?new hW(z):void 0;var I8=g.$t(z.Z())&&z.B("web_sleep_timer")?new d9(z):void 0;var q8=g.Jw(z.Z())?new igW(z):void 0;var P5=new JW(z),t2=new lw5(z),u=new zAS(z);var N8=z.B("enable_sabr_snackbar_message")?new T2a(z):void 0;var rZ=z.B("web_enable_timely_actions")?new Rcd(z):void 0;var LL=new h1(z);var VQ=g.$t(z.Z())?new b$(z):void 0;var wZ=z.B("html5_enable_voice_boost")?new fK(z):void 0;z= z.B("web_player_loop_settings_menu")?new Kv8(z):void 0;K.call(this,f,M,p,t,B,v,I,G,b,e,w,y,D,R,S,E,L,q,V,c,O,x,T,M8,$S,td,void 0,r,yI,H5,void 0,ra,Ho,I8,q8,void 0,P5,t2,u,void 0,N8,rZ,LL,VQ,wZ,void 0,z)}; Y1q=function(){this.Y=this.S=NaN}; XEo=function(z,K){this.SV=z;this.timerName="";this.T=!1;this.Y=NaN;this.J=new Y1q;this.S=K||null;this.T=!1}; xC8=function(z,K,f){var M=g.Aw(K.pH)&&!K.pH.W;if(K.pH.w2&&(iI(K.pH)||K.pH.eV==="shortspage"||BG(K.pH)||M)&&!z.T){z.T=!0;z.W=K.clientPlaybackNonce;g.zM("TIMING_ACTION")||Ct("TIMING_ACTION",z.SV.csiPageType);z.SV.csiServiceName&&Ct("CSI_SERVICE_NAME",z.SV.csiServiceName);if(z.S){M=z.S.Rx();for(var p=g.a(Object.keys(M)),t=p.next();!t.done;t=p.next())t=t.value,rl(t,M[t],z.timerName);M=g.Mu(ORq)(z.S.x0);g.ZE(M,z.timerName);M=z.S;M.S={};M.x0={}}g.ZE({playerInfo:{visibilityState:g.Mu(FW5)()},playerType:"LATENCY_PLAYER_HTML5"}, z.timerName);z.C!==K.clientPlaybackNonce||Number.isNaN(z.Y)||(Cp("_start",z.timerName)?f=g.Mu(Y5)("_start",z.timerName)+z.Y:g.Al(new g.UT("attempted to log gapless pbs before CSI timeline started",{cpn:K.clientPlaybackNonce})));f&&!Cp("pbs",z.timerName)&&Dd(z,f)}}; Dd=function(z,K,f){rl("pbs",K!=null?K:(0,g.X)(),f!=null?f:z.timerName)}; yu=function(z){fpd();$1v();z.timerName=""}; FLq=function(z){if(z.S){var K=z.S;K.S={};K.x0={}}z.T=!1;z.C=void 0;z.Y=NaN}; OYI=function(z,K){g.Dv.call(this);this.pH=z;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.S=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.D={};this.Y=0;if(z=K.session_data)this.sessionData=ta(z,"&");this.index=Math.max(0,Number(K.index)||0);this.loop=!!K.loop;this.startSeconds=Number(K.startSeconds)||0;this.title=K.playlist_title||"";this.description=K.playlist_description||"";this.author= K.author||K.playlist_author||"";K.video_id&&(this.items[this.index]=K);if(z=K.api)typeof z==="string"&&z.length===16?K.list="PL"+z:K.playlist=z;if(z=K.list)switch(K.listType){case "user_uploads":this.listId=new QJ("UU","PLAYER_"+z);break;default:var f=K.playlist_length;f&&(this.length=Number(f)||0);this.listId=g.qR(z);if(z=K.video)this.items=z.slice(0),this.loaded=!0}else if(K.playlist){z=K.playlist.toString().split(",");this.index>0&&(this.items=[]);z=g.a(z);for(f=z.next();!f.done;f=z.next())(f= f.value)&&this.items.push({video_id:f});this.length=this.items.length;if(z=K.video)this.items=z.slice(0),this.loaded=!0}this.setShuffle(!!K.shuffle);if(z=K.suggestedQuality)this.quality=z;this.D=La(K,"playlist_");this.T=(K=K.thumbnail_ids)?K.split(","):[]}; rzu=function(z){return!!(z.playlist||z.list||z.api)}; ZYv=function(z){var K=z.index+1;return K>=z.length?0:K}; o2I=function(z){var K=z.index-1;return K<0?z.length-1:K}; g.kW=function(z,K,f,M){K=K!==void 0?K:z.index;K=z.items&&K in z.items?z.items[z.order[K]]:null;var p=null;K&&(f&&(K.autoplay="1"),M&&(K.autonav="1"),p=new g.oB(z.pH,K),g.d(z,p),p.LY=!0,p.startSeconds=z.startSeconds||p.clipStart||0,z.listId&&(p.playlistId=z.listId.toString()));return p}; Cod=function(z,K){z.index=g.qt(K,0,z.length-1);z.startSeconds=0}; TRW=function(z,K){if(K.video&&K.video.length){z.title=K.title||"";z.description=K.description;z.views=K.views;z.likes=K.likes;z.dislikes=K.dislikes;z.author=K.author||"";var f=K.loop;f&&(z.loop=f);f=g.kW(z);z.items=[];for(var M=g.a(K.video),p=M.next();!p.done;p=M.next())if(p=p.value)p.video_id=p.encrypted_id,z.items.push(p);z.length=z.items.length;(K=K.index)?z.index=K:z.findIndex(f);z.setShuffle(!1);z.loaded=!0;z.Y++;z.S&&z.S()}}; KDT=function(z,K){var f,M,p,t,B,v,I;return g.n(function(G){if(G.Y==1){f=g.eh();var b=z.Z(),e={context:g.vD(z),playbackContext:{contentPlaybackContext:{ancestorOrigins:b.ancestorOrigins}}},w=b.getWebPlayerContextConfig();if(w==null?0:w.encryptedHostFlags)e.playbackContext.contentPlaybackContext.encryptedHostFlags=w.encryptedHostFlags;if(w==null?0:w.hideInfo)e.playerParams={showinfo:!1};b=b.embedConfig;w=K.docid||K.video_id||K.videoId||K.id;if(!w){w=K.raw_embedded_player_response;if(!w){var D=K.embedded_player_response; D&&(w=JSON.parse(D))}if(w){var y,R,S,E,L,q;w=((q=g.A((y=w)==null?void 0:(R=y.embedPreview)==null?void 0:(S=R.thumbnailPreviewRenderer)==null?void 0:(E=S.playButton)==null?void 0:(L=E.buttonRenderer)==null?void 0:L.navigationEndpoint,g.f5))==null?void 0:q.videoId)||null}else w=null}y=(y=w)?y:void 0;R=z.playlistId?z.playlistId:K.list;S=K.listType;if(R){var V;S==="user_uploads"?V={username:R}:V={playlistId:R};UCW(b,y,K,V);e.playlistRequest=V}else K.playlist?(V={templistVideoIds:K.playlist.toString().split(",")}, UCW(b,y,K,V),e.playlistRequest=V):y&&(V={videoId:y},b&&(V.serializedThirdPartyEmbedConfig=b),e.singleVideoRequest=V);M=e;p=g.aV(zdq);g.Sq(G,2);return g.l(G,g.$H(f,M,p),4)}if(G.Y!=2)return t=G.S,B=z.Z(),K.raw_embedded_player_response=t,B.Hx=DF(K,g.Jw(B)),B.T=B.Hx==="EMBEDDED_PLAYER_MODE_PFL",t&&(v=t,v.trackingParams&&A3(v.trackingParams)),G.return(new g.oB(B,K));I=g.QI(G);I instanceof Error||(I=Error("b259802748"));g.sm(I);return G.return(z)})}; UCW=function(z,K,f,M){f.index&&(M.playlistIndex=String(Number(f.index)+1));M.videoId=K?K:"";z&&(M.serializedThirdPartyEmbedConfig=z)}; g.a5=function(z,K){hi.get(z);hi.set(z,K)}; g.R5=function(z){g.Dv.call(this);this.loaded=!1;this.player=z}; $yS=function(){this.Y=[];this.S=[]}; g.MN=function(z,K){return K?z.S.concat(z.Y):z.S}; g.SE=function(z,K){switch(K.kind){case "asr":fg5(K,z.Y);break;default:fg5(K,z.S)}}; fg5=function(z,K){g.yQ(K,function(f){return z.equals(f)})||K.push(z)}; g.u$=function(z){g.J.call(this);this.Fc=z;this.Y=new $yS;this.J=null;this.C=[];this.D=[]}; g.LK=function(z,K,f){g.u$.call(this,z);this.videoData=K;this.audioTrack=f;this.S=null;this.T=!1;this.C=K.q_;this.D=K.FN;this.T=g.Af(K)}; g.M6q=function(z,K){var f;return z.Z().B("safari_live_drm_captions_fix")&&((f=z.getVideoData())==null?0:f.FS())?!1:g.JK(z.Z())&&!K.isManifestless}; g.Ew=function(z,K){return Gr(z.info.mimeType)?K?z.info.itag===K:!0:!1}; g.pSS=function(z,K){if(z.S!=null&&g.M6q(K,z.S)&&z.S.S.rawcc!=null)return!0;if(!z.CI())return!1;K=!!z.S&&z.S.isManifestless&&Object.values(z.S.S).some(function(f){return g.Ew(f,"386")}); z=!!z.S&&!z.S.isManifestless&&g.GxW(z.S);return K||z}; g.Pu=function(z,K,f,M,p,t){g.u$.call(this,z);this.videoId=f;this.m2=p;this.eventId=t;this.W={};this.S=null;z=M||g.Iw(K).hl||"";z=z.split("_").join("-");this.T=GM(K,{hl:z})}; NdS=function(z,K){return Eo(t6v,function(){var f=this;return function p(){var t,B,v;return Jd(p,function(I){switch(I.Y){case 1:g.u8(I,2);if(!f.J)throw"wasm.ps.ns";t=z;B=da;return av(I,Pl(BdW(f,K)),4);case 4:v=B(I.S);if(!v)throw"wasm.ps.um";try{return I.return(new WebAssembly.Instance(v,t))}catch(G){}return av(I,Pl(WebAssembly.instantiate(v,t)),5);case 5:return I.return(I.S);case 2:g.mS(I),g.VI(I,0)}})}()})}; vUT=function(z,K){z.S||(z.S=uV(Re(function(){return fetch(K)}),function(f){return f.arrayBuffer()}),Lg(z.S,function(f){z.S=void 0; throw"wasm.ps.f: "+f;}))}; BdW=function(z,K){if(z.Y)return z.Y;z.Y=IgT(z,K);Lg(z.Y,function(f){z.Y=void 0;throw"wasm.ps.c: "+f;}); return z.Y}; IgT=function(z,K){return Eo(z,function(){var f=this;return function p(){var t,B,v,I,G,b,e,w,D,y,R,S,E,L;return Jd(p,function(q){switch(q.Y){case 1:g.u8(q,2);t=[];B=window.ywc;if(!B){q.jV(4);break}v=B[K];if(!v){q.jV(4);break}if(v.mod)return q.return(v.mod);if(!v.modP){q.jV(6);break}g.Sq(q,7);I=da;return av(q,Pl(v.modP),9);case 9:return q.return(I(q.S));case 7:g.QI(q),t.unshift("pcm");case 6:if(v.bin){f.S=h3(v.bin);q.jV(4);break}if(!v.binP){q.jV(4);break}g.Sq(q,12);G=Dw;b=h3;e=da;return av(q,Pl(v.binP), 14);case 14:f.S=b.call(G,e(q.S));g.Eu(q,4);break;case 12:g.QI(q),f.S=void 0,t.unshift("pfb");case 4:if(!f.S){q.jV(15);break}g.Sq(q,16);w=da;return av(q,Pl(f.S),18);case 18:D=w(q.S);if(f.T)try{return q.return(new WebAssembly.Module(D))}catch(V){f.T=!1,t.unshift("f0cs")}y=da;return av(q,Pl(WebAssembly.compile(D)),19);case 19:return q.return(y(q.S));case 16:g.QI(q),f.S=void 0,t.unshift("f0ca");case 15:return g.Sq(q,20),vUT(f,K),R=da,av(q,Pl(f.S),22);case 22:S=R(q.S);if(f.T)try{return q.return(new WebAssembly.Module(S))}catch(V){f.T= !1,t.unshift("f1cs")}E=da;return av(q,Pl(WebAssembly.compile(S)),23);case 23:return q.return(E(q.S));case 20:L=g.QI(q),f.S=void 0,f.J=!1,t.unshift("f1ca: "+L);case 21:throw"["+t.map(function(V){return'"'+V+'"'}).join(", ")+"]"; case 2:g.mS(q),g.VI(q,0)}})}()})}; G3v=function(){}; bSS=function(){var z=this;this.proc_exit=function(){}; this.fd_write=function(K,f,M){if(!z.exports)return 1;K=new Uint32Array(z.exports.memory.buffer,f,M*2);f=[];for(var p=0;p=11;z=z.api.Z().G&&d1;return!(!K&&!z)}; o5=function(z,K){return!z.api.isInline()&&!oUI(z,VS(K))&&g.WP(K)}; ZSo=function(z){z.I5.FB();if(z.QI&&z.rT)z.rT=!1;else if(!z.api.Z().Xc&&!z.WX()){var K=z.api.getPlayerStateObject();g.Z(K,2)&&g.lD(z.api)||z.nx(K);!z.api.Z().nI||K.isCued()||g.Z(K,1024)?z.KE():z.fB.isActive()?(z.DC(),z.fB.stop()):z.fB.start()}}; TdI=function(z,K){var f;if((f=z.api.getVideoData())==null?0:f.mutedAutoplay){var M,p;if((M=K.target)==null?0:(p=M.className)==null?0:p.includes("ytp-info-panel"))return!1}return g.WP(K)&&z.api.isMutedByMutedAutoplay()?(z.api.unMute(),z.api.getPresentingPlayerType()===2&&z.api.playVideo(),K=z.api.getPlayerStateObject(),!g.Z(K,4)||g.Z(K,8)||g.Z(K,2)||z.KE(),!0):!1}; Uyo=function(z,K,f){z.api.isFullscreen()?f<1-K&&z.api.toggleFullscreen():f>1+K&&z.api.toggleFullscreen()}; rJo=function(z){var K=ow()&&OJ()>=67&&!z.api.Z().G;z=z.api.Z().disableOrganicUi;return!g.ZQ("tizen")&&!VT&&!K&&!z}; g.CK=function(z){g.F.call(this,{j:"div",L:[{j:"div",K:"ytp-bezel-text-wrapper",L:[{j:"div",K:"ytp-bezel-text",qc:"{{title}}"}]},{j:"div",K:"ytp-bezel",V:{role:"status","aria-label":"{{label}}"},L:[{j:"div",K:"ytp-bezel-icon",qc:"{{icon}}"}]}]});this.U=z;this.Y=new g.Kl(this.show,10,this);z=this.U.B("delhi_modern_web_player")?1E3:500;this.S=new g.Kl(this.hide,z,this);g.d(this,this.Y);g.d(this,this.S);this.hide()}; Uw=function(z,K,f){if(K<=0){f=sa();K="\u0111\u00e3 t\u1eaft ti\u1ebfng";var M=0}else f=f?{j:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",JB:!0,V:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{j:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",JB:!0,V:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", fill:"#fff"}}]},M=Math.floor(K),K=M+"\u00e2m l\u01b0\u1ee3ng";T8(z,f,K,M+"%")}; z08=function(z,K){K=K?{j:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",JB:!0,K:"ytp-svg-fill",V:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:Sx8();var f=z.U.getPlaybackRate(),M=g.Pt("T\u1ed1c \u0111\u1ed9 l\u00e0 $RATE",{RATE:String(f)});T8(z,K,M,f+"x")}; KPu=function(z,K){K=K?"Ph\u1ee5 \u0111\u1ec1 b\u1eadt":"Ph\u1ee5 \u0111\u1ec1 t\u1eaft";T8(z,Qe8(z.U),K)}; T8=function(z,K,f,M){M=M===void 0?"":M;z.updateValue("label",f===void 0?"":f);z.updateValue("icon",K);g.tU(z.S);z.Y.start();z.updateValue("title",M);g.k4(z.element,"ytp-bezel-text-hide",!M)}; $HW=function(z,K){g.F.call(this,{j:"button",Wx:["ytp-button","ytp-cards-button"],V:{"aria-label":"Hi\u1ec3n th\u1ecb th\u1ebb","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.Jw(z.Z()))},L:[{j:"span",K:"ytp-cards-button-icon-default",L:[{j:"div",K:"ytp-cards-button-icon",L:[z.Z().B("player_new_info_card_format")?Ei5():{j:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",JB:!0,K:"ytp-svg-fill",V:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {j:"div",K:"ytp-cards-button-title",qc:"Th\u00f4ng tin"}]},{j:"span",K:"ytp-cards-button-icon-shopping",L:[{j:"div",K:"ytp-cards-button-icon",L:[{j:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",K:"ytp-svg-shadow",V:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{j:"path",K:"ytp-svg-fill",V:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{j:"path",K:"ytp-svg-shadow-fill",V:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{j:"div", K:"ytp-cards-button-title",qc:"Mua s\u1eafm"}]}]});this.U=z;this.Y=K;this.S=null;this.fade=new g.I3(this,250,!0,100);g.d(this,this.fade);g.k4(this.Y,"ytp-show-cards-title",g.Jw(z.Z()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.YA(!0)}; fku=function(z,K){g.F.call(this,{j:"div",K:"ytp-cards-teaser",L:[{j:"div",K:"ytp-cards-teaser-box"},{j:"div",K:"ytp-cards-teaser-text",L:z.Z().B("player_new_info_card_format")?[{j:"button",K:"ytp-cards-teaser-info-icon",V:{"aria-label":"Hi\u1ec3n th\u1ecb th\u1ebb","aria-haspopup":"true"},L:[Ei5()]},{j:"img",K:"ytp-cards-teaser-channel-avatar",V:{alt:"","aria-hidden":"true"}},{j:"span",K:"ytp-cards-teaser-label",qc:"{{text}}"},{j:"button",K:"ytp-cards-teaser-close-button",V:{"aria-label":"\u0110o\u0301ng"}, L:[g.qb()]}]:[{j:"span",K:"ytp-cards-teaser-label",qc:"{{text}}"}]}]});var f=this;this.U=z;this.T8=K;this.fade=new g.I3(this,250,!1,250);this.S=null;this.G=new g.Kl(this.ut1,300,this);this.W=new g.Kl(this.DBc,2E3,this);this.J=[];this.Y=null;this.D=new g.Kl(function(){f.element.style.margin="0"},250); this.onClickCommand=this.T=null;g.d(this,this.fade);g.d(this,this.G);g.d(this,this.W);g.d(this,this.D);z.Z().B("player_new_info_card_format")?(g.ey(z.getRootNode(),"ytp-cards-teaser-dismissible"),this.X(this.dE("ytp-cards-teaser-close-button"),"click",this.ZG),this.X(this.dE("ytp-cards-teaser-info-icon"),"click",this.Ug),this.X(this.dE("ytp-cards-teaser-label"),"click",this.Ug)):this.listen("click",this.Ug);this.X(K.element,"mouseover",this.ue);this.X(K.element,"mouseout",this.D5);this.X(z,"cardsteasershow", this.xLH);this.X(z,"cardsteaserhide",this.Ip);this.X(z,"cardstatechange",this.o4);this.X(z,"presentingplayerstatechange",this.o4);this.X(z,"appresize",this.Ml);this.X(z,"onShowControls",this.Ml);this.X(z,"onHideControls",this.K8);this.listen("mouseenter",this.OJ)}; MH5=function(z){g.F.call(this,{j:"button",Wx:[zq.BUTTON,zq.TITLE_NOTIFICATIONS],V:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},L:[{j:"div",K:zq.TITLE_NOTIFICATIONS_ON,V:{title:"D\u1eebng nh\u1eadn th\u00f4ng b\u00e1o v\u1ec1 m\u1ed7i video m\u1edbi","aria-label":"Th\u00f4ng b\u00e1o v\u1ec1 c\u00e1c k\u00eanh \u0111\u00e3 \u0111\u0103ng k\u00fd"},L:[g.Vb()]},{j:"div",K:zq.TITLE_NOTIFICATIONS_OFF,V:{title:"Nh\u1eadn th\u00f4ng b\u00e1o v\u1ec1 m\u1ed7i video m\u1edbi","aria-label":"Th\u00f4ng b\u00e1o v\u1ec1 c\u00e1c k\u00eanh \u0111\u00e3 \u0111\u0103ng k\u00fd"}, L:[{j:"svg",V:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},L:[{j:"path",V:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});this.api=z;this.S=!1;z.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Nh\u1eadn th\u00f4ng b\u00e1o v\u1ec1 m\u1ed7i video m\u1edbi")}; p$q=function(z,K){z.S=K;z.element.classList.toggle(zq.NOTIFICATIONS_ENABLED,z.S);var f=z.api.getVideoData();f?(K=K?f.iC:f.PP)?(z=z.api.Gm())?KI(z,K):g.sm(Error("No innertube service available when updating notification preferences.")):g.sm(Error("No update preferences command available.")):g.sm(Error("No video data when updating notification preferences."))}; BL5=function(z,K,f){var M=M===void 0?800:M;var p=p===void 0?600:p;var t=document.location.protocol;z=YZT(t+"//"+z+"/signin?context=popup","feature",K,"next",t+"//"+location.hostname+"/post_login");tHg(z,f,M,p)}; tHg=function(z,K,f,M){f=f===void 0?800:f;M=M===void 0?600:M;if(z=g.$7(window,z,"loginPopup","width="+f+",height="+M+",resizable=yes,scrollbars=yes"))R8v(function(){K()}),z.moveTo((screen.width-f)/2,(screen.height-M)/2)}; g.Ky=function(z,K,f,M,p,t,B,v,I,G,b,e){z=z.charAt(0)+z.substring(1).toLowerCase();f=f.charAt(0)+f.substring(1).toLowerCase();if(K==="0"||K==="-1")K=null;if(M==="0"||M==="-1")M=null;var w=b.Z(),D=w.userDisplayName&&g.Aw(w);g.F.call(this,{j:"div",Wx:["ytp-button","ytp-sb"],L:[{j:"div",K:"ytp-sb-subscribe",V:D?{title:g.Pt("\u0110\u0103ng k\u00fd v\u1edbi t\u00ean $USER_NAME",{USER_NAME:w.userDisplayName}),"aria-label":"\u0110\u0103ng k\u00fd k\u00eanh","data-tooltip-image":NR(w),"data-tooltip-opaque":String(g.Jw(w)), tabindex:"0",role:"button"}:{"aria-label":"\u0110\u0103ng k\u00fd k\u00eanh"},L:[{j:"div",K:"ytp-sb-text",L:[{j:"div",K:"ytp-sb-icon"},z]},K?{j:"div",K:"ytp-sb-count",qc:K}:""]},{j:"div",K:"ytp-sb-unsubscribe",V:D?{title:g.Pt("\u0110\u00e3 \u0111\u0103ng k\u00fd l\u00e0 $USER_NAME",{USER_NAME:w.userDisplayName}),"aria-label":"H\u1ee7y \u0111\u0103ng k\u00fd k\u00eanh","data-tooltip-image":NR(w),"data-tooltip-opaque":String(g.Jw(w)),tabindex:"0",role:"button"}:{"aria-label":"H\u1ee7y \u0111\u0103ng k\u00fd k\u00eanh"}, L:[{j:"div",K:"ytp-sb-text",L:[{j:"div",K:"ytp-sb-icon"},f]},M?{j:"div",K:"ytp-sb-count",qc:M}:""]}],V:{"aria-live":"polite"}});var y=this;this.channelId=B;this.U=b;this.T=e;var R=this.dE("ytp-sb-subscribe"),S=this.dE("ytp-sb-unsubscribe");t&&g.ey(this.element,"ytp-sb-classic");if(p){v?this.S():this.Y();var E=function(){if(w.nH){var q=y.channelId;if(I||G){var V={c:q};var c;g.x$.isInitialized()&&(c=sfS(V));V=c||"";if(c=b.getVideoData())if(c=c.subscribeCommand){var O=b.Gm();O?(KI(O,c,{botguardResponse:V, feature:I}),b.LH("SUBSCRIBE",q)):g.sm(Error("No innertube service available when updating subscriptions."))}else g.sm(Error("No subscribe command in videoData."));else g.sm(Error("No video data available when updating subscription."))}S.focus();S.removeAttribute("aria-hidden");R.setAttribute("aria-hidden","true")}else BL5(g.CO(y.U.Z()),"sb_button",y.J)},L=function(){var q=y.channelId; if(I||G){var V=b.getVideoData();KI(b.Gm(),V.unsubscribeCommand,{feature:I});b.LH("UNSUBSCRIBE",q)}R.focus();R.removeAttribute("aria-hidden");S.setAttribute("aria-hidden","true")}; this.X(R,"click",E);this.X(S,"click",L);this.X(R,"keypress",function(q){q.keyCode===13&&E(q)}); this.X(S,"keypress",function(q){q.keyCode===13&&L(q)}); this.X(b,"SUBSCRIBE",this.S);this.X(b,"UNSUBSCRIBE",this.Y);this.T&&D&&(v$g(b),Qp(b,R,this),Qp(b,S,this))}else g.ey(R,"ytp-sb-disabled"),g.ey(S,"ytp-sb-disabled")}; IkS=function(z){g.F.call(this,{j:"div",K:"ytp-title-channel",L:[{j:"div",K:"ytp-title-beacon"},{j:"a",K:"ytp-title-channel-logo",V:{href:"{{channelLink}}",target:z.Z().N,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{j:"div",K:"ytp-title-expanded-overlay",V:{"aria-hidden":"{{flyoutUnfocusable}}"},L:[{j:"div",K:"ytp-title-expanded-heading",L:[{j:"div",K:"ytp-title-expanded-title",L:[{j:"a",qc:"{{expandedTitle}}",V:{href:"{{channelTitleLink}}",target:z.Z().N,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{j:"div",K:"ytp-title-expanded-subtitle",qc:"{{expandedSubtitle}}",V:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var K=this;this.api=z;this.channel=this.dE("ytp-title-channel");this.Y=this.dE("ytp-title-channel-logo");this.channelName=this.dE("ytp-title-expanded-title");this.W=this.dE("ytp-title-expanded-overlay");this.T=this.S=this.subscribeButton=null;this.J=!1;z.createClientVe(this.Y,this,36925);z.createClientVe(this.channelName,this, 37220);g.Jw(this.api.Z())&&NLW(this);this.X(z,"videodatachange",this.Dq);this.X(z,"videoplayerreset",this.Dq);this.X(this.channelName,"click",function(f){K.api.logClick(K.channelName);g.$7(window,vXI(K));f.preventDefault()}); this.X(this.Y,"click",this.NEE);this.Dq()}; GZ8=function(z){if(!z.api.Z().Z2){var K=z.api.getVideoData(),f=new g.Ky("\u0110\u0103ng k\u00fd",null,"\u0110\u00e3 \u0111\u0103ng k\u00fd",null,!0,!1,K.rL,K.subscribed,"channel_avatar",null,z.api,!0);z.api.createServerVe(f.element,z);var M;z.api.setTrackingParams(f.element,((M=K.subscribeButtonRenderer)==null?void 0:M.trackingParams)||null);z.X(f.element,"click",function(){z.api.logClick(f.element)}); z.subscribeButton=f;g.d(z,z.subscribeButton);z.subscribeButton.hL(z.W);z.subscribeButton.hide();var p=new MH5(z.api);z.S=p;g.d(z,p);p.hL(z.W);p.hide();z.X(z.api,"SUBSCRIBE",function(){K.aL&&(p.show(),z.api.logVisibility(p.element,!0))}); z.X(z.api,"UNSUBSCRIBE",function(){K.aL&&(p.hide(),z.api.logVisibility(p.element,!1),p$q(p,!1))})}}; NLW=function(z){var K=z.api.Z();GZ8(z);z.updateValue("flyoutUnfocusable","true");z.updateValue("channelTitleFocusable","-1");z.updateValue("shouldHideExpandedTitleForA11y","true");z.updateValue("shouldHideExpandedSubtitleForA11y","true");K.Y||K.QE||(z.X(z.channel,"mouseenter",z.Ww),z.X(z.channel,"mouseleave",z.ZN),z.X(z.channel,"focusin",z.Ww),z.X(z.channel,"focusout",function(f){z.channel.contains(f.relatedTarget)||z.ZN()})); z.T=new g.Kl(function(){z.isExpanded()&&(z.api.logVisibility(z.channelName,!1),z.subscribeButton&&(z.subscribeButton.hide(),z.api.logVisibility(z.subscribeButton.element,!1)),z.S&&(z.S.hide(),z.api.logVisibility(z.S.element,!1)),z.channel.classList.remove("ytp-title-expanded"),z.channel.classList.add("ytp-title-show-collapsed"))},500); g.d(z,z.T);z.X(z.channel,b78,function(){e0v(z)}); z.X(z.api,"onHideControls",z.cQ);z.X(z.api,"appresize",z.cQ);z.X(z.api,"fullscreentoggled",z.cQ)}; e0v=function(z){z.channel.classList.remove("ytp-title-show-collapsed");z.channel.classList.remove("ytp-title-show-expanded")}; w$o=function(z){var K=z.api.getPlayerSize();return g.Jw(z.api.Z())&&K.width>=524}; vXI=function(z){var K=z.api.Z(),f=z.api.getVideoData(),M=g.vG(K)+f.TP;g.Kq(f)&&(M="https://music.youtube.com"+f.TP);if(!g.Jw(K))return M;K={};g.wq(z.api,"addEmbedsConversionTrackingParams",[K]);return g.V8(M,K)}; $J=function(z){var K=g.Cq({"aria-haspopup":"true"});g.oN.call(this,K,z);this.listen("keydown",this.S)}; fy=function(z,K){z.element.setAttribute("aria-haspopup",String(K))}; DHW=function(z,K){g.F.call(this,{j:"div",K:"ytp-user-info-panel",V:{"aria-label":"Th\u00f4ng tin c\u1ee7a ng\u01b0\u1eddi d\u00f9ng"},L:z.Z().nH&&!z.B("embeds_web_always_enable_signed_out_state")?[{j:"div",K:"ytp-user-info-panel-icon",qc:"{{icon}}"},{j:"div",K:"ytp-user-info-panel-content",L:[{j:"div",K:"ytp-user-info-panel-info",V:{tabIndex:"{{userInfoFocusable}}",role:"text"},qc:"{{watchingAsUsername}}"},{j:"div",K:"ytp-user-info-panel-info",V:{tabIndex:"{{userInfoFocusable2}}",role:"text"},qc:"{{watchingAsEmail}}"}]}]: [{j:"div",K:"ytp-user-info-panel-icon",qc:"{{icon}}"},{j:"div",K:"ytp-user-info-panel-content",L:[{j:"div",L:[{j:"text",V:{tabIndex:"{{userInfoFocusable}}"},qc:"\u0110\u00e3 \u0111\u0103ng xu\u1ea5t"}]},{j:"div",K:"ytp-user-info-panel-login",L:[{j:"a",V:{tabIndex:"{{userInfoFocusable2}}",role:"button"},qc:z.Z().Z2?"":"\u0110\u0103ng nh\u1eadp tr\u00ean YouTube"}]}]}]});this.Fc=z;this.S=K;z.Z().nH||z.Z().Z2||this.X(this.dE("ytp-user-info-panel-login"),"click",this.Vp);this.closeButton=new g.F({j:"button", Wx:["ytp-collapse","ytp-button"],V:{title:"\u0110o\u0301ng"},L:[g.cW()]});this.closeButton.hL(this.element);g.d(this,this.closeButton);this.X(window,"blur",this.hide);this.X(document,"click",this.Qp);this.Dq()}; h05=function(z,K,f){g.H8.call(this,z);this.zP=K;this.Ka=f;this.getVideoUrl=new $J(6);this.uB=new $J(5);this.BV=new $J(4);this.S3=new $J(3);this.Zt=new g.oN(g.Cq({href:"{{href}}",target:this.U.Z().N},void 0,!0),2,"Kh\u1eafc ph\u1ee5c s\u1ef1 c\u1ed1 ph\u00e1t l\u1ea1i");this.showVideoInfo=new g.oN(g.Cq(),1,"Th\u1ed1ng k\u00ea chi ti\u1ebft");this.Yc=new g.RT({j:"div",Wx:["ytp-copytext","ytp-no-contextmenu"],V:{draggable:"false",tabindex:"1"},qc:"{{text}}"});this.Wo=new P8(this.U,this.Yc);this.QF=this.Xx= null;g.Jw(this.U.Z())&&(this.closeButton=new g.F({j:"button",Wx:["ytp-collapse","ytp-button"],V:{title:"\u0110o\u0301ng"},L:[g.cW()]}),g.d(this,this.closeButton),this.closeButton.hL(this.element),this.closeButton.listen("click",this.X$,this));g.Jw(this.U.Z())&&(this.Qe=new g.oN(g.Cq(),8,"T\u00e0i kho\u1ea3n"),g.d(this,this.Qe),this.md(this.Qe,!0),this.Qe.listen("click",this.E8h,this),z.createClientVe(this.Qe.element,this.Qe,137682));this.U.Z().yw&&!z.B("web_player_loop_settings_menu")&&(this.BC=new B1("V\u00f2ng l\u1eb7p", 7),g.d(this,this.BC),this.md(this.BC,!0),this.BC.listen("click",this.GPd,this),z.createClientVe(this.BC.element,this.BC,28661));g.d(this,this.getVideoUrl);this.md(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.UBh,this);z.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.d(this,this.uB);this.md(this.uB,!0);this.uB.listen("click",this.W9x,this);z.createClientVe(this.uB.element,this.uB,28660);g.d(this,this.BV);this.md(this.BV,!0);this.BV.listen("click",this.cHE,this);z.createClientVe(this.BV.element, this.BV,28658);g.d(this,this.S3);this.md(this.S3,!0);this.S3.listen("click",this.haf,this);g.d(this,this.Zt);this.md(this.Zt,!0);this.Zt.listen("click",this.M3_,this);g.d(this,this.showVideoInfo);this.md(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.z6f,this);g.d(this,this.Yc);this.Yc.listen("click",this.AHe,this);g.d(this,this.Wo);K=document.queryCommandSupported&&document.queryCommandSupported("copy");OWW("Chromium")>=43&&(K=!0);OWW("Firefox")<=40&&(K=!1);K&&(this.Xx=new g.F({j:"textarea", K:"ytp-html5-clipboard",V:{readonly:"",tabindex:"-1"}}),g.d(this,this.Xx),this.Xx.hL(this.element));var M;(M=this.Qe)==null||M.setIcon(mgg());var p;(p=this.BC)==null||p.setIcon(giW());this.S3.setIcon({j:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",V:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z", fill:"white","fill-rule":"evenodd"}}]});this.Zt.setIcon(uQg());this.showVideoInfo.setIcon(La8());this.X(z,"onLoopChange",this.onLoopChange);this.X(z,"videodatachange",this.onVideoDataChange);yZg(this);kZI(this,this.U.getVideoData())}; Mk=function(z,K){var f=!1;if(z.Xx){var M=z.Xx.element;M.value=K;M.select();try{f=document.execCommand("copy")}catch(p){}}f?z.zP.Ip():(z.Yc.s0(K,"text"),g.mY(z.zP,z.Wo),b4(z.Yc.element),z.Xx&&(z.Xx=null,yZg(z)));return f}; kZI=function(z,K){var f=z.U.Z(),M=z.U.getPresentingPlayerType()===2,p=!M||K.isListed;p=!f.l_&&!!K.videoId&&p;f.playerStyle!=="play"?f="https://support.google.com/youtube/?p=report_playback":(f={contact_type:"playbackissue",html5:1,ei:K.eventId,v:K.videoId,p:"movies_playback"},K.Y&&(f.fmt=K.Y.itag),K.clientPlaybackNonce&&(f.cpn=K.clientPlaybackNonce),K.partnerId&&(f.partnerid=K.partnerId),f=g.V8("//support.google.com/googleplay/",f));z.BV.s3(p&&K.allowEmbed);z.getVideoUrl.s3(p);z.uB.s3(p&&!K.isLivePlayback); z.Zt.s0(f,"href");var t;(t=z.BC)==null||t.s3(!K.isLivePlayback&&!M);var B;(B=z.Qe)==null||B.s3(!M)}; yZg=function(z){var K=!!z.Xx;g.Zo(z.S3,K?"Sao ch\u00e9p th\u00f4ng tin g\u1ee1 l\u1ed7i":"Xem th\u00f4ng tin g\u1ee1 l\u1ed7i");fy(z.S3,!K);g.Zo(z.BV,K?"Sao ch\u00e9p m\u00e3 nh\u00fang":"Nh\u1eadn m\u00e3 nh\u00fang");fy(z.BV,!K);g.Zo(z.getVideoUrl,K?"Sao ch\u00e9p URL video":"Nh\u1eadn URL video");fy(z.getVideoUrl,!K);g.Zo(z.uB,K?"Sao ch\u00e9p URL video trong th\u1eddi gian hi\u1ec7n t\u1ea1i":"Nh\u1eadn URL video \u1edf th\u1eddi gian hi\u1ec7n t\u1ea1i");fy(z.uB,!K);z.BV.setIcon(K?as5():null); z.getVideoUrl.setIcon(K?mh():null);z.uB.setIcon(K?mh():null)}; aka=function(z){return g.Jw(z.U.Z())?z.Qe:z.U.B("web_player_loop_settings_menu")?z.getVideoUrl:z.BC}; SbT=function(z,K){g.q9.call(this,z);this.Ka=K;this.J=new g.xI(this);this.Y1=new g.Kl(this.v8x,1E3,this);this.l_=this.T=null;g.d(this,this.J);g.d(this,this.Y1);K=this.U.Z();z.createClientVe(this.element,this,28656);g.ey(this.element,"ytp-contextmenu");this.U.Z().experiments.sf("delhi_modern_web_player")&&g.$t(K)&&g.ey(this.element,"ytp-delhi-modern-contextmenu");R08(this);this.hide()}; R08=function(z){g.g0(z.J);var K=z.U.Z();K.playerStyle==="gvn"||K.Y||K.QE||(K=z.U.wE(),z.J.X(K,"contextmenu",z.o1E),z.J.X(K,"touchstart",z.onTouchStart,null,!0),z.J.X(K,"touchmove",z.Kj,null,!0),z.J.X(K,"touchend",z.Kj,null,!0))}; uLS=function(z){z.U.isFullscreen()?g.dq(z.U,z.element,10):z.hL(Fm(z).body)}; py=function(z,K,f){f=f===void 0?240:f;g.F.call(this,{j:"button",Wx:["ytp-button","ytp-copylink-button"],V:{title:"{{title-attr}}","data-tooltip-opaque":String(g.Jw(z.Z()))},L:[{j:"div",K:"ytp-copylink-icon",qc:"{{icon}}"},{j:"div",K:"ytp-copylink-title",qc:"Sao ch\u00e9p \u0111\u01b0\u1eddng li\u00ean k\u1ebft",V:{"aria-hidden":"true"}}]});this.api=z;this.S=K;this.Y=f;this.visible=!1;this.tooltip=this.S.XL();K=z.Z();this.tooltip.element.setAttribute("aria-live","polite");g.k4(this.element,"ytp-show-copylink-title", g.Jw(K));z.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.X(z,"videodatachange",this.Dq);this.X(z,"videoplayerreset",this.Dq);this.X(z,"appresize",this.Dq);this.Dq();this.addOnDisposeCallback(g.HD(this.tooltip,this.element))}; LP5=function(z){var K=z.api.Z(),f=z.api.getVideoData(),M=z.api.wE().getPlayerSize().width;K=K.T;return!!f.videoId&&M>=z.Y&&f.VB&&!g.zG(f)&&!z.api.isEmbedsShortsMode()&&!K}; EXg=function(z){z.updateValue("icon",PW());if(z.api.Z().Y)z.tooltip.dW(z.element,"\u0110\u00e3 sao ch\u00e9p \u0111\u01b0\u1eddng li\u00ean k\u1ebft v\u00e0o b\u1ea3ng nh\u1edb t\u1ea1m");else{z.updateValue("title-attr","\u0110\u00e3 sao ch\u00e9p \u0111\u01b0\u1eddng li\u00ean k\u1ebft v\u00e0o b\u1ea3ng nh\u1edb t\u1ea1m");z.tooltip.r$();z.tooltip.dW(z.element);var K=z.listen("mouseleave",function(){z.W8(K);z.Dq();z.tooltip.Em()})}}; Pyv=function(z,K){return g.n(function(f){if(f.Y==1)return g.Sq(f,2),g.l(f,navigator.clipboard.writeText(K),4);if(f.Y!=2)return f.return(!0);g.QI(f);var M=f.return,p=!1,t=g.zi("TEXTAREA");t.value=K;t.setAttribute("readonly","");var B=z.api.getRootNode();B.appendChild(t);if(TN){var v=window.getSelection();v.removeAllRanges();var I=document.createRange();I.selectNodeContents(t);v.addRange(I);t.setSelectionRange(0,K.length)}else t.select();try{p=document.execCommand("copy")}catch(G){}B.removeChild(t); return M.call(f,p)})}; H7I=function(z){g.F.call(this,{j:"div",K:"ytp-doubletap-ui-legacy",L:[{j:"div",K:"ytp-doubletap-fast-forward-ve"},{j:"div",K:"ytp-doubletap-rewind-ve"},{j:"div",K:"ytp-doubletap-static-circle",L:[{j:"div",K:"ytp-doubletap-ripple"}]},{j:"div",K:"ytp-doubletap-overlay-a11y"},{j:"div",K:"ytp-doubletap-seek-info-container",L:[{j:"div",K:"ytp-doubletap-arrows-container",L:[{j:"span",K:"ytp-doubletap-base-arrow"},{j:"span",K:"ytp-doubletap-base-arrow"},{j:"span",K:"ytp-doubletap-base-arrow"}]},{j:"div", K:"ytp-doubletap-tooltip",L:[{j:"div",K:"ytp-seek-icon-text-container",L:[{j:"div",K:"ytp-seek-icon",qc:"{{seekIcon}}"},{j:"div",K:"ytp-chapter-seek-text-legacy",qc:"{{seekText}}"}]},{j:"div",K:"ytp-doubletap-tooltip-label",qc:"{{seekTime}}"}]}]}]});this.U=z;this.J=new g.Kl(this.show,10,this);this.Y=new g.Kl(this.hide,700,this);this.G=this.T=0;this.Y1=this.W=!1;this.S=this.dE("ytp-doubletap-static-circle");g.d(this,this.J);g.d(this,this.Y);this.hide();this.D=this.dE("ytp-doubletap-fast-forward-ve"); this.N=this.dE("ytp-doubletap-rewind-ve");this.U.createClientVe(this.D,this,28240);this.U.createClientVe(this.N,this,28239);this.U.logVisibility(this.D,!0);this.U.logVisibility(this.N,!0);this.W=z.B("web_show_cumulative_seek_time");this.Y1=z.B("web_center_static_circles")}; Qhu=function(z,K){K=g.Pt("$TOTAL_SEEK_TIME gi\u00e2y",{TOTAL_SEEK_TIME:K.toString()});z.updateValue("seekTime",K)}; qbv=function(z){ER.call(this,z,!1,!0);this.Hx=[];this.Ft=[];this.D=!0;this.badge.element.classList.add("ytp-featured-product");this.eV=new g.F({j:"div",K:"ytp-featured-product-open-in-new"});g.d(this,this.eV);this.countdownTimer=new g.F({j:"text",K:"ytp-featured-product-countdown",qc:"{{content}}"});this.countdownTimer.hide();g.d(this,this.countdownTimer);this.Y=new g.F({j:"div",K:"ytp-featured-product-trending",L:[{j:"div",K:"ytp-featured-product-trending-icon"},{j:"text",K:"ytp-featured-product-trending-text", qc:"{{trendingOffer}}"}]});this.Y.hide();g.d(this,this.Y);this.overflowButton=new g.F({j:"button",Wx:["ytp-featured-product-overflow-icon","ytp-button"],V:{"aria-haspopup":"true"}});this.overflowButton.hide();g.d(this,this.overflowButton);this.G=new g.F({j:"text",K:"ytp-featured-product-exclusive-countdown",qc:"{{content}}",V:{id:"exclusiveCountdown","aria-hidden":"true"}});this.G.hide();g.d(this,this.G);this.W=new g.F({j:"div",K:"ytp-featured-product-exclusive-container",V:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"}, L:[{j:"div",K:"ytp-featured-product-exclusive-badge-container",L:[{j:"div",K:"ytp-featured-product-exclusive-badge",L:[{j:"text",K:"ytp-featured-product-exclusive-badge-text",qc:"{{exclusive}}",V:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.G]});this.W.hide();g.d(this,this.W);this.banner=new g.F({j:"a",K:"ytp-featured-product-container",L:[{j:"div",K:"ytp-featured-product-thumbnail",L:[{j:"img",V:{src:"{{thumbnail}}"}},this.eV]},{j:"div",K:"ytp-featured-product-details",L:[{j:"text",K:"ytp-featured-product-title", qc:"{{title}}"},this.U.B("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{j:"div",K:"ytp-featured-product-price-container",V:{"aria-label":"{{priceA11yText}}"},L:[{j:"text",K:"ytp-featured-product-price-when-promotion-text-enabled",qc:"{{price}}",V:{"aria-hidden":"true"}},{j:"text",K:"ytp-featured-product-promotion-text",qc:"{{promotionText}}",V:{"aria-hidden":"true"}}]}:{j:"div",V:{"aria-label":"{{priceA11yText}}"},L:[{j:"text",K:"ytp-featured-product-price",qc:"{{price}}", V:{"aria-hidden":"true"}},{j:"text",K:"ytp-featured-product-sales-original-price",qc:"{{salesOriginalPrice}}",V:{"aria-hidden":"true"}},{j:"text",K:"ytp-featured-product-price-drop-reference-price",qc:"{{priceDropReferencePrice}}",V:{"aria-hidden":"true"}}]},this.U.B("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{j:"div",K:"ytp-featured-product-when-promotion-text-enabled",L:[{j:"text",K:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",qc:"{{affiliateDisclaimer}}"}, this.Y,{j:"text",K:"ytp-featured-product-vendor-when-promotion-text-enabled",qc:"{{vendor}}"}]}:{j:"div",L:[{j:"text",K:"ytp-featured-product-affiliate-disclaimer",qc:"{{affiliateDisclaimer}}"},this.U.B("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.W:null,this.Y,{j:"text",K:"ytp-featured-product-vendor",qc:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.d(this,this.banner);this.banner.hL(this.T.element);this.X(this.U,g.wE("featured_product"),this.wAc);this.X(this.U, g.DU("featured_product"),this.Dt);this.X(this.U,"videodatachange",this.onVideoDataChange);this.X(this.overflowButton.element,"click",this.kM);this.X(z,"featuredproductdismissed",this.qs)}; mHT=function(z){var K,f;z=(K=z.S)==null?void 0:(f=K.bannerData)==null?void 0:f.itemData;var M,p,t;return(z==null||!z.affiliateDisclaimer)&&(z==null?0:(M=z.exclusivesData)==null?0:M.exclusiveOfferLabelText)&&(z==null?0:(p=z.exclusivesData)==null?0:p.expirationTimestampMs)&&(z==null?0:(t=z.exclusivesData)==null?0:t.exclusiveOfferCountdownText)?!0:!1}; VH8=function(z){var K,f,M,p,t=(K=z.S)==null?void 0:(f=K.bannerData)==null?void 0:(M=f.itemData)==null?void 0:(p=M.exclusivesData)==null?void 0:p.expirationTimestampMs;K=(Number(t)-Date.now())/1E3;if(K>0){if(K<604800){var B,v,I,G;f=(B=z.S)==null?void 0:(v=B.bannerData)==null?void 0:(I=v.itemData)==null?void 0:(G=I.exclusivesData)==null?void 0:G.exclusiveOfferCountdownText;if(f!==void 0)for(B=Date.now(),v=g.a(f),I=v.next();!I.done;I=v.next())if(I=I.value,I!==void 0&&I.text!==void 0&&(G=Number(I.textDisplayStartTimestampMs), !isNaN(G)&&B>=G)){I.insertCountdown?(K=I.text.replace(/\$0/,String(lV({seconds:K}))),z.G.s0(K)):z.G.s0(I.text);z.G.show();break}}var b,e,w,D;z.W.update({exclusive:(b=z.S)==null?void 0:(e=b.bannerData)==null?void 0:(w=e.itemData)==null?void 0:(D=w.exclusivesData)==null?void 0:D.exclusiveOfferLabelText});z.W.show();ts(z);var y;(y=z.Z2)==null||y.start()}else lkS(z)}; lkS=function(z){var K;(K=z.Z2)==null||K.stop();z.G.hide();z.W.hide();Bq(z)}; nXv=function(z){var K,f,M=(K=z.S)==null?void 0:(f=K.bannerData)==null?void 0:f.itemData;return z.U.B("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(M==null||!M.priceReplacementText)&&(M==null?0:M.promotionText)?M==null?void 0:M.promotionText.content:null}; WPv=function(z){var K,f,M=(K=z.S)==null?void 0:(f=K.bannerData)==null?void 0:f.itemData,p,t;if(!(M!=null&&M.priceReplacementText||z.U.B("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(M==null?0:(p=M.dealsData)==null?0:(t=p.sales)==null?0:t.originalPrice)){var B,v;return M==null?void 0:(B=M.dealsData)==null?void 0:(v=B.sales)==null?void 0:v.originalPrice}return null}; JZa=function(z){var K,f,M=(K=z.S)==null?void 0:(f=K.bannerData)==null?void 0:f.itemData,p,t,B,v;if(!((M==null?0:M.priceReplacementText)||z.U.B("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(M==null?0:(p=M.dealsData)==null?0:(t=p.sales)==null?0:t.originalPrice))&&(M==null?0:(B=M.dealsData)==null?0:(v=B.priceDrop)==null?0:v.referencePrice)){var I,G;return M==null?void 0:(I=M.dealsData)==null?void 0:(G=I.priceDrop)==null?void 0:G.referencePrice}return null}; gXq=function(z){var K,f,M=(K=z.S)==null?void 0:(f=K.bannerData)==null?void 0:f.itemData;if(M==null?0:M.priceReplacementText)return M==null?void 0:M.priceReplacementText;if((M==null?0:M.promotionText)&&z.U.B("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var p;return(M==null?void 0:M.price)+" "+(M==null?void 0:(p=M.promotionText)==null?void 0:p.content)}var t,B;if(M==null?0:(t=M.dealsData)==null?0:(B=t.sales)==null?0:B.originalPrice){var v,I;return M==null?void 0:(v=M.dealsData)== null?void 0:(I=v.sales)==null?void 0:I.salesPriceAccessibilityLabel}var G,b;if(M==null?0:(G=M.dealsData)==null?0:(b=G.priceDrop)==null?0:b.referencePrice){var e,w;return(M==null?void 0:M.price)+" "+(M==null?void 0:(e=M.dealsData)==null?void 0:(w=e.priceDrop)==null?void 0:w.referencePrice)}return M==null?void 0:M.price}; i7v=function(z){if(z.U.B("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var K,f,M;return z.Y.l8?null:(K=z.S)==null?void 0:(f=K.bannerData)==null?void 0:(M=f.itemData)==null?void 0:M.vendorName}var p,t,B,v,I,G;return z.Y.l8||z.W.l8||((p=z.S)==null?0:(t=p.bannerData)==null?0:(B=t.itemData)==null?0:B.affiliateDisclaimer)?null:(v=z.S)==null?void 0:(I=v.bannerData)==null?void 0:(G=I.itemData)==null?void 0:G.vendorName}; cZS=function(z,K){Nk(z);if(K){var f=g.tf.getState().entities;f=R7(f,"featuredProductsEntity",K);if(f!=null&&f.productsData){K=[];f=g.a(f.productsData);for(var M=f.next();!M.done;M=f.next()){M=M.value;var p=void 0;if((p=M)!=null&&p.identifier&&M.featuredSegments){z.Hx.push(M);var t=void 0;p=g.a((t=M)==null?void 0:t.featuredSegments);for(t=p.next();!t.done;t=p.next()){var B=t.value;t=dHI(B.startTimeSec);t!==void 0&&(B=dHI(B.endTimeSec),K.push(new g.bS(t*1E3,B===void 0?0x7ffffffffffff:B*1E3,{id:M.identifier, namespace:"featured_product"})))}}}z.U.St(K)}}}; Bq=function(z){if(z.trendingOfferEntityKey){var K=g.tf.getState().entities;if(K=R7(K,"trendingOfferEntity",z.trendingOfferEntityKey)){var f,M,p;K.encodedSkuId!==((f=z.S)==null?void 0:(M=f.bannerData)==null?void 0:(p=M.itemData)==null?void 0:p.encodedOfferSkuId)?ts(z):(z.Y.update({trendingOffer:K.shortLabel+" \u2022 "+K.countLabel}),z.Y.show(),z.banner.update({vendor:i7v(z)}))}else ts(z)}else ts(z)}; ts=function(z){z.Y.hide();z.banner.update({vendor:i7v(z)})}; Nk=function(z){z.Hx=[];z.Dt();z.U.GE("featured_product")}; sh5=function(z){var K,f,M,p,t=(K=z.S)==null?void 0:(f=K.bannerData)==null?void 0:(M=f.itemData)==null?void 0:(p=M.hiddenProductOptions)==null?void 0:p.dropTimestampMs;K=(Number(t)-Date.now())/1E3;z.countdownTimer.s0(lV({seconds:K}));if(K>0){var B;(B=z.W1)==null||B.start()}}; AZ5=function(z){var K;(K=z.W1)==null||K.stop();z.countdownTimer.hide()}; dHI=function(z){if(z!==void 0&&z.trim()!==""&&(z=Math.trunc(Number(z.trim())),!(isNaN(z)||z<0)))return z}; FP5=function(z,K,f){g.F.call(this,{j:"div",Wx:["ytp-info-panel-action-item"],L:[{j:"div",K:"ytp-info-panel-action-item-disclaimer",qc:"{{disclaimer}}"},{j:"a",Wx:["ytp-info-panel-action-item-button","ytp-button"],V:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},L:[{j:"div",K:"ytp-info-panel-action-item-icon",qc:"{{icon}}"},{j:"div",K:"ytp-info-panel-action-item-label",qc:"{{label}}"}]}]});this.U=z;this.S=f;this.disclaimer=this.dE("ytp-info-panel-action-item-disclaimer");this.button= this.dE("ytp-info-panel-action-item-button");this.bl=!1;this.U.createServerVe(this.element,this,!0);this.listen("click",this.onClick);z="";f=g.A(K==null?void 0:K.onTap,XX);var M=g.A(f,g.Fc);this.bl=!1;M?(z=M.url||"",z.startsWith("//")&&(z="https:"+z),this.bl=!0,g.CL(this.button,g.rr(z))):(M=g.A(f,jhp))&&!this.S?((z=M.phoneNumbers)&&z.length>0?(z="sms:"+z[0],M.messageText&&(z+="?&body="+encodeURI(M.messageText))):z="",this.bl=!0,g.CL(this.button,g.rr(z,[YbS]))):(f=g.A(f,X$S))&&!this.S&&(z=f.phoneNumber? "tel:"+f.phoneNumber:"",this.bl=!0,g.CL(this.button,g.rr(z,[xHp])));var p;if(f=(p=K.disclaimerText)==null?void 0:p.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var t;this.update({label:(t=K.bodyText)==null?void 0:t.content,icon:nc(),disclaimer:f})}else{this.disclaimer.style.display="none";var B;this.update({label:(B=K.bodyText)==null?void 0:B.content,icon:nc()})}this.U.setTrackingParams(this.element,K.trackingParams||null);this.bl&&(this.Y={externalLinkData:{url:z}})}; O7T=function(z,K){var f=yb();g.xO.call(this,z,{j:"div",K:"ytp-info-panel-detail-skrim",L:[{j:"div",K:"ytp-info-panel-detail",V:{role:"dialog",id:f},L:[{j:"div",K:"ytp-info-panel-detail-header",L:[{j:"div",K:"ytp-info-panel-detail-title",qc:"{{title}}"},{j:"button",Wx:["ytp-info-panel-detail-close","ytp-button"],V:{"aria-label":"\u0110o\u0301ng"},L:[g.qb()]}]},{j:"div",K:"ytp-info-panel-detail-body",qc:"{{body}}"},{j:"div",K:"ytp-info-panel-detail-items"}]}]},250);this.S=K;this.items=this.dE("ytp-info-panel-detail-items"); this.T=new g.xI(this);this.itemData=[];this.J=f;this.X(this.dE("ytp-info-panel-detail-close"),"click",this.Ip);this.X(this.dE("ytp-info-panel-detail-skrim"),"click",this.Ip);this.X(this.dE("ytp-info-panel-detail"),"click",function(M){M.stopPropagation()}); g.d(this,this.T);this.U.createServerVe(this.element,this,!0);this.X(z,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",z.getVideoData());this.hide()}; rZg=function(z,K){z=g.a(z.itemData);for(var f=z.next();!f.done;f=z.next())f=f.value,f.U.logVisibility(f.element,K)}; Cy5=function(z,K){g.F.call(this,{j:"div",K:"ytp-info-panel-preview",V:{"aria-live":"assertive","aria-atomic":"true","aria-owns":K.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.Jw(z.Z()))},L:[{j:"div",K:"ytp-info-panel-preview-text",qc:"{{text}}"},{j:"div",K:"ytp-info-panel-preview-chevron",qc:"{{chevron}}"}]});var f=this;this.U=z;this.Dv=this.S=this.videoId=null;this.T=this.showControls=this.Y=!1;this.X(this.element,"click",function(){z.logClick(f.element);z.WX();Oh(K)}); this.fade=new g.I3(this,250,!1,100);g.d(this,this.fade);this.U.createServerVe(this.element,this,!0);this.X(z,"videodatachange",this.onVideoDataChange);this.X(z,"presentingplayerstatechange",this.Lh);this.X(this.U,"paidcontentoverlayvisibilitychange",this.ou);this.X(this.U,"infopaneldetailvisibilitychange",this.ou);var M=z.getVideoData()||{};Z7q(M)&&oXg(this,M);this.X(z,"onShowControls",this.sJ);this.X(z,"onHideControls",this.bd)}; oXg=function(z,K){if(!K.Hm||!z.U.mu()){var f=K.HU||1E4,M=Z7q(K);z.S?K.videoId&&K.videoId!==z.videoId&&(g.tU(z.S),z.videoId=K.videoId,M?(TLu(z,f,K),z.uP()):(z.Ip(),z.S.dispose(),z.S=null)):M&&(K.videoId&&(z.videoId=K.videoId),TLu(z,f,K),z.uP())}}; Z7q=function(z){var K,f,M,p;return!!((K=z.Gw)==null?0:(f=K.title)==null?0:f.content)||!!((M=z.Gw)==null?0:(p=M.bodyText)==null?0:p.content)}; TLu=function(z,K,f){z.S&&z.S.dispose();z.S=new g.Kl(z.S1d,K,z);g.d(z,z.S);var M;K=((M=f.Gw)==null?void 0:M.trackingParams)||null;z.U.setTrackingParams(z.element,K);var p;var t,B;if(f==null?0:(t=f.Gw)==null?0:(B=t.title)==null?0:B.content){var v;M=(p=f.Gw)==null?void 0:(v=p.title)==null?void 0:v.content;var I,G;if((I=f.Gw)==null?0:(G=I.bodyText)==null?0:G.content)M+=" \u2022 ";p=M}else p="";var b,e;f=((b=f.Gw)==null?void 0:(e=b.bodyText)==null?void 0:e.content)||"";z.update({text:p+f,chevron:g.Qb()})}; UHp=function(z,K){z.S&&(g.Z(K,8)?(z.Y=!0,z.uP(),z.S.start()):(g.Z(K,2)||g.Z(K,64))&&z.videoId&&(z.videoId=null))}; vq=function(z){var K=null;try{K=z.toLocaleString("vi",{style:"percent"})}catch(f){K=z.toLocaleString(void 0,{style:"percent"})}return K}; I_=function(z,K){var f=0;z=g.a(z);for(var M=z.next();!(M.done||M.value.startTime>K);M=z.next())f++;return f===0?f:f-1}; zKo=function(z,K){for(var f=0,M=g.a(z),p=M.next();!p.done;p=M.next()){p=p.value;if(K=p.timeRangeStartMillis&&K0?K[0]:null;var f=g.rT("ytp-chrome-bottom"),M=g.rT("ytp-ad-module");z.J=!(f==null||!f.contains(K));z.D=!(M==null||!M.contains(K));z.N=!(K==null||!K.hasAttribute("data-tooltip-target-fixed"));return K}; hKa=function(z,K,f){if(!z.W){if(K){z.tooltipRenderer=K;K=z.tooltipRenderer.text;var M=!1,p;(K==null?0:(p=K.runs)==null?0:p.length)&&K.runs[0].text&&(z.update({title:K.runs[0].text.toString()}),M=!0);g.c6(z.title,M);K=z.tooltipRenderer.detailsText;p=!1;var t;if((K==null?0:(t=K.runs)==null?0:t.length)&&K.runs[0].text){M=K.runs[0].text.toString();t=M.indexOf("$TARGET_ICON");if(t>-1)if(z.tooltipRenderer.targetId){K=[];M=M.split("$TARGET_ICON");var B=new g.kl({j:"span",K:"ytp-promotooltip-details-icon", L:[yNq[z.tooltipRenderer.targetId]]});g.d(z,B);for(var v=[],I=g.a(M),G=I.next();!G.done;G=I.next())G=new g.kl({j:"span",K:"ytp-promotooltip-details-component",qc:G.value}),g.d(z,G),v.push(G);M.length===2?(K.push(v[0].element),K.push(B.element),K.push(v[1].element)):M.length===1&&(t===0?(K.push(B.element),K.push(v[0].element)):(K.push(v[0].element),K.push(B.element)));t=K.length?K:null}else t=null;else t=M;if(t){if(typeof t!=="string")for(g.fs(z.details),p=g.a(t),t=p.next();!t.done;t=p.next())z.details.appendChild(t.value); else z.update({details:t});p=!0}}g.c6(z.details,p);p=z.tooltipRenderer.acceptButton;t=!1;var b,e,w;((b=g.A(p,g.Fd))==null?0:(e=b.text)==null?0:(w=e.runs)==null?0:w.length)&&g.A(p,g.Fd).text.runs[0].text&&(z.update({acceptButtonText:g.A(p,g.Fd).text.runs[0].text.toString()}),t=!0);g.c6(z.acceptButton,t);b=z.tooltipRenderer.dismissButton;e=!1;var D,y,R;((D=g.A(b,g.Fd))==null?0:(y=D.text)==null?0:(R=y.runs)==null?0:R.length)&&g.A(b,g.Fd).text.runs[0].text&&(z.update({dismissButtonText:g.A(b,g.Fd).text.runs[0].text.toString()}), e=!0);g.c6(z.dismissButton,e)}f&&(z.T=f);z.S=D25(z);z.G=!1;z.U.Z().B("web_player_hide_nitrate_promo_tooltip")||z.s3(!0);kX5(z);z.l8&&!z.Y1&&(z.Y1=!0,z.dO.aG(0));z.Y&&z.U.logVisibility(z.element,z.l8)}}; kJ=function(z){z.s3(!1);z.Y&&z.U.logVisibility(z.element,z.l8)}; a3u=function(z){var K,f,M,p=((K=g.A(z.acceptButton,g.Fd))==null?void 0:(f=K.text)==null?void 0:(M=f.runs)==null?void 0:M.length)&&!!g.A(z.acceptButton,g.Fd).text.runs[0].text,t,B,v;K=((t=g.A(z.dismissButton,g.Fd))==null?void 0:(B=t.text)==null?void 0:(v=B.runs)==null?void 0:v.length)&&!!g.A(z.dismissButton,g.Fd).text.runs[0].text;return p||K}; kX5=function(z){var K;if(!(K=!z.S)){K=z.S;var f=window.getComputedStyle(K);K=f.display==="none"||f.visibility==="hidden"||K.getAttribute("aria-hidden")==="true"}if(K||z.U.isMinimized())z.s3(!1);else if(K=g.dW(z.S),K.width&&K.height){z.U.Gr(z.element,z.S);var M=z.U.wE().getPlayerSize().height;f=g.dW(z.dE("ytp-promotooltip-container")).height;z.J?z.element.style.top=M-f-K.height-12+"px":z.N||(M=z.U.hD().height-f-K.height-12,z.element.style.top=M+"px");M=z.dE("ytp-promotooltip-pointer");var p=g.gW(z.S, z.U.getRootNode()),t=Number(z.element.style.left.replace(/[^\d\.]/g,""));z=z.U.isFullscreen()?18:12;M.style.left=p.x-t+K.width/2-z+"px";M.style.top=f+"px"}else z.s3(!1)}; hs=function(z){g.F.call(this,{j:"button",Wx:["ytp-replay-button","ytp-button"],V:{title:"Ph\u00e1t l\u1ea1i"},L:[g.gM()]});this.U=z;this.X(z,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.Xr(z.getPlayerStateObject());Qp(this.U,this.element,this)}; a_=function(z,K){K=K===void 0?240:K;g.F.call(this,{j:"button",Wx:["ytp-button","ytp-search-button"],V:{title:"T\u00ecm ki\u1ebfm","data-tooltip-opaque":String(g.Jw(z.Z()))},L:[{j:"div",K:"ytp-search-icon",qc:"{{icon}}"},{j:"div",K:"ytp-search-title",qc:"T\u00ecm ki\u1ebfm"}]});this.api=z;this.Y=K;this.visible=!1;this.updateValue("icon",{j:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},L:[{j:"path",K:"ytp-svg-fill",V:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]}); z.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.S();this.X(z,"appresize",this.S);this.X(z,"videodatachange",this.S);Qp(z,this.element,this)}; R_=function(z){g.F.call(this,{j:"div",K:"ytp-seek-overlay",L:[{j:"div",Wx:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],L:[{j:"div",Wx:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],L:[{j:"svg",V:{viewBox:"0 0 22 32",width:"22",height:"32"},L:[{j:"path",V:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4",fill:"none"}}]}]},{j:"div",K:"ytp-seek-overlay-duration",qc:"{{durationBack}}"}]},{j:"div",Wx:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-forward"], L:[{j:"div",K:"ytp-seek-overlay-duration",qc:"{{durationForward}}"},{j:"div",Wx:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],L:[{j:"svg",V:{viewBox:"0 0 22 32",width:"22",height:"32"},L:[{j:"path",V:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4",fill:"none"}}]}]}]},{j:"div",K:"ytp-seek-overlay-message",L:[{j:"div",K:"ytp-seek-overlay-message-icon",qc:"{{icon}}"},{j:"div",K:"ytp-seek-overlay-message-text",qc:"{{text}}"}]}]});var K=this;this.U=z;this.G=0;this.S="hidden"; this.Y1=0;this.D=this.dE("ytp-seek-overlay-animation-back");this.N=this.dE("ytp-seek-overlay-animation-forward");this.l_=this.dE("ytp-seek-overlay-message");this.W=new g.Kl(function(){RKu(K)},g.uY(this.U.Z().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.d(this,this.W);this.U.createClientVe(this.N,this,28240);this.U.createClientVe(this.D,this,28239);this.U.logVisibility(this.N,!0);this.U.logVisibility(this.D,!0);this.hide()}; Sv5=function(z,K){z.Y=z.T.animate([{offset:0,opacity:K,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:1}],{duration:200,fill:"forwards"});z.Y.addEventListener("finish",function(){z.Y=void 0;z.W.start();z.S="lingering"})}; uD8=function(z,K,f){f=f===void 0?!1:f;var M=[],p={offset:0,transform:"translateX("+(z.J===-1?30:-30)+"px)"};f&&(p.opacity="0");M.push(p);f&&M.push({offset:.5,opacity:"1"});M.push({offset:1,transform:"translateX(0)"});f=K.animate(M,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});K.querySelector("path").animate([{offset:0,d:z.J===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'},{offset:1,d:z.J===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'}],{duration:333, easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});return f}; Ln8=function(z){if((0,g.X)()-z.Y1>=(g.uY(z.U.Z().experiments,"web_player_seek_overlay_additional_arrow_threshold")||200)){var K=z.T.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);K.classList.add("ytp-seek-overlay-arrow-additional");K.classList.remove("ytp-seek-overlay-arrow-persistent");z.T.appendChild(K);uD8(z,K,!0).addEventListener("finish",function(){K.remove()})}}; RKu=function(z,K,f){f=f===void 0?!0:f;z.Y=z.T.animate([{offset:0,opacity:K===void 0?1:K},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});f&&(z.Y.addEventListener("finish",function(){z.Y=void 0;Edd(z);z.hide()}),z.S="fading-out")}; P9q=function(z){var K=Number(getComputedStyle(z.T).opacity),f;(f=z.Y)==null||f.cancel();z.Y=void 0;return K}; Edd=function(z){z.G=0;z.S="hidden";z.J=void 0;z.T=void 0;z.Y1=0;z.W.stop();z.Y=void 0}; Hiu=function(z,K,f){z.updateValue("text",K);if(f){a:{switch(f){case "PREMIUM_STANDALONE":K=niW();break a;case "PREMIUM_STANDALONE_CAIRO":K=Wau();break a}K=void 0}z.updateValue("icon",K)}K=g.a(z.l_.getAnimations());for(f=K.next();!f.done;f=K.next())f.value.cancel();z.l_.animate([{opacity:0,offset:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){z.updateValue("text","");z.updateValue("icon","")})}; g.SY=function(z,K,f,M){M=M===void 0?240:M;g.F.call(this,{j:"button",Wx:["ytp-button","ytp-share-button"],V:{title:"Chia s\u1ebb","aria-haspopup":"true","aria-owns":f.element.id,"data-tooltip-opaque":String(g.Jw(z.Z()))},L:[{j:"div",K:"ytp-share-icon",qc:"{{icon}}"},{j:"div",K:"ytp-share-title",qc:"Chia s\u1ebb"}]});this.api=z;this.S=K;this.T=f;this.J=M;this.Y=this.visible=!1;this.tooltip=this.S.XL();z.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.X(z,"videodatachange", this.Dq);this.X(z,"videoplayerreset",this.Dq);this.X(z,"appresize",this.Dq);this.X(z,"presentingplayerstatechange",this.Dq);this.Dq();this.addOnDisposeCallback(g.HD(this.tooltip,this.element))}; Qbu=function(z){var K=z.api.Z(),f=z.api.getVideoData(),M=g.Jw(K)&&g.WD(z.api)&&g.Z(z.api.getPlayerStateObject(),128);K=K.T||K.disableSharing&&z.api.getPresentingPlayerType()!==2||!f.showShareButton||f.VB||M||g.zG(f)||z.Y;M=z.api.wE().getPlayerSize().width;return!!f.videoId&&M>=z.J&&!K}; qvv=function(z,K){K.name!=="InvalidStateError"&&K.name!=="AbortError"&&(K.name==="NotAllowedError"?(z.S.WX(),Oh(z.T,z.element,!1)):g.sm(K))}; l3S=function(z,K){var f=yb(),M=z.Z();f={j:"div",K:"ytp-share-panel",V:{id:yb(),role:"dialog","aria-labelledby":f},L:[{j:"div",K:"ytp-share-panel-inner-content",L:[{j:"div",K:"ytp-share-panel-title",V:{id:f},qc:"Chia s\u1ebb"},{j:"a",Wx:["ytp-share-panel-link","ytp-no-contextmenu"],V:{href:"{{link}}",target:M.N,title:"Chi\u0309a se\u0309 li\u00ean k\u00ea\u0301t","aria-label":"{{shareLinkWithUrl}}"},qc:"{{linkText}}"},{j:"label",K:"ytp-share-panel-include-playlist",L:[{j:"input",K:"ytp-share-panel-include-playlist-checkbox", V:{type:"checkbox",checked:"true"}},"Bao g\u1ed3m danh s\u00e1ch ph\u00e1t"]},{j:"div",K:"ytp-share-panel-loading-spinner",L:[GD()]},{j:"div",K:"ytp-share-panel-service-buttons",qc:"{{buttons}}"},{j:"div",K:"ytp-share-panel-error",qc:"\u0110\u00e3 x\u1ea3y ra l\u1ed7i trong khi truy xu\u1ea5t th\u00f4ng tin chia s\u1ebb. Vui l\u00f2ng th\u1eed l\u1ea1i sau."}]},{j:"button",Wx:["ytp-share-panel-close","ytp-button"],V:{title:"\u0110o\u0301ng"},L:[g.qb()]}]};g.xO.call(this,z,f,250);var p=this;this.moreButton= null;this.api=z;this.tooltip=K.XL();this.T=[];this.W=this.dE("ytp-share-panel-inner-content");this.closeButton=this.dE("ytp-share-panel-close");this.X(this.closeButton,"click",this.Ip);this.addOnDisposeCallback(g.HD(this.tooltip,this.closeButton));this.J=this.dE("ytp-share-panel-include-playlist-checkbox");this.X(this.J,"click",this.Dq);this.S=this.dE("ytp-share-panel-link");this.addOnDisposeCallback(g.HD(this.tooltip,this.S));this.api.createClientVe(this.S,this,164503);this.X(this.S,"click",function(t){t.preventDefault(); p.api.logClick(p.S);var B=p.api.getVideoUrl(!0,!0,!1,!1);B=m28(p,B);g.I0(B,p.api,t)&&p.api.LH("SHARE_CLICKED")}); this.listen("click",this.yp);this.X(z,"videoplayerreset",this.hide);this.X(z,"fullscreentoggled",this.onFullscreenToggled);this.X(z,"onLoopRangeChange",this.lqH);this.hide()}; Wnu=function(z,K){VZd(z);for(var f=K.links||K.shareTargets,M=0,p={},t=0;t0&&!O&&!V?(q.length===2&&(q=["noreferrer"]),g.$7(D,R,w,q[0]),D=UX5()):(S=L.join(","),Es()&&D.navigator&&D.navigator.standalone&&w&&w!="_self"?(S=g.zi("A"),g.CL(S,R),S.target=w,E&&(S.rel="noreferrer"),((y=y.attributionsrc)||y==="")&&S.setAttribute("attributionsrc",y),y=document.createEvent("MouseEvent"), y.initMouseEvent("click",!0,!0,D,1),S.dispatchEvent(y),D=UX5()):E?(D=g.$7(D,"",w,S),y=g.xo(R),D&&(D.opener=null,y===""&&(y="javascript:''"),y='',y=zm(y),(R=D.document)&&R.write&&(R.write(Km(y)),R.close()))):((D=g.$7(D,R,w,S))&&y.noopener&&(D.opener=null),D&&y.noreferrer&&(D.opener=null)));D&&(D.opener||(D.opener=window),D.focus());e.preventDefault()}}}(p)); p.Dx.addOnDisposeCallback(g.HD(z.tooltip,p.Dx.element));v==="Facebook"?z.api.createClientVe(p.Dx.element,p.Dx,164504):v==="Twitter"&&z.api.createClientVe(p.Dx.element,p.Dx,164505);z.X(p.Dx.element,"click",function(b){return function(){z.api.logClick(b.Dx.element)}}(p)); z.api.logVisibility(p.Dx.element,!0);z.T.push(p.Dx);M++}}var I=K.more||K.moreLink,G=new g.F({j:"a",Wx:["ytp-share-panel-service-button","ytp-button"],L:[{j:"span",K:"ytp-share-panel-service-button-more",L:[{j:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},L:[{j:"rect",V:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{j:"path",V:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z", fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],V:{href:I,target:"_blank",title:"Th\u00eam"}});G.listen("click",function(b){var e=I;z.api.logClick(z.moreButton.element);e=m28(z,e);g.I0(e,z.api,b)&&z.api.LH("SHARE_CLICKED")}); G.addOnDisposeCallback(g.HD(z.tooltip,G.element));z.api.createClientVe(G.element,G,164506);z.X(G.element,"click",function(){z.api.logClick(G.element)}); z.api.logVisibility(G.element,!0);z.T.push(G);z.moreButton=G;z.updateValue("buttons",z.T)}; m28=function(z,K){var f={};g.Jw(z.api.Z())&&(g.wq(z.api,"addEmbedsConversionTrackingParams",[f]),K=g.V8(K,f));return K}; VZd=function(z){for(var K=g.a(z.T),f=K.next();!f.done;f=K.next())f=f.value,f.detach(),g.DO(f);z.T=[]}; uQ=function(z){return z===void 0||z.startSec===void 0||z.endSec===void 0?!1:!0}; JN8=function(z,K){z.startSec+=K;z.endSec+=K}; ii8=function(z){ER.call(this,z);this.Y=this.S=this.isContentForward=this.G=!1;gdW(this);this.X(this.U,"changeProductsInVideoVisibility",this.mvE);this.X(this.U,"videodatachange",this.onVideoDataChange)}; d2g=function(z){z.W&&z.Bx.element.removeChild(z.W.element);z.W=void 0}; sba=function(z,K){return K.map(function(f){var M,p;if((f=(M=g.A(f,cNo))==null?void 0:(p=M.thumbnail)==null?void 0:p.thumbnails)&&f.length!==0)return f[0].url}).filter(function(f){return f!==void 0}).map(function(f){f=new g.F({j:"img", K:"ytp-suggested-action-product-thumbnail",V:{alt:"",src:f}});g.d(z,f);return f})}; ANv=function(z,K){z.isContentForward=K;g.k4(z.badge.element,"ytp-suggested-action-badge-content-forward",K)}; Ly=function(z){var K=z.isContentForward&&!z.Ir();g.k4(z.badge.element,"ytp-suggested-action-badge-preview-collapsed",K&&z.S);g.k4(z.badge.element,"ytp-suggested-action-badge-preview-expanded",K&&z.Y)}; EX=function(z,K,f){return new g.bS(z*1E3,K*1E3,{priority:9,namespace:f})}; jbS=function(z){z.U.GE("shopping_overlay_visible");z.U.GE("shopping_overlay_preview_collapsed");z.U.GE("shopping_overlay_preview_expanded");z.U.GE("shopping_overlay_expanded")}; gdW=function(z){z.X(z.U,g.wE("shopping_overlay_visible"),function(){z.oX(!0)}); z.X(z.U,g.DU("shopping_overlay_visible"),function(){z.oX(!1)}); z.X(z.U,g.wE("shopping_overlay_expanded"),function(){z.l_=!0;Lz(z)}); z.X(z.U,g.DU("shopping_overlay_expanded"),function(){z.l_=!1;Lz(z)}); z.X(z.U,g.wE("shopping_overlay_preview_collapsed"),function(){z.S=!0;Ly(z)}); z.X(z.U,g.DU("shopping_overlay_preview_collapsed"),function(){z.S=!1;Ly(z)}); z.X(z.U,g.wE("shopping_overlay_preview_expanded"),function(){z.Y=!0;Ly(z)}); z.X(z.U,g.DU("shopping_overlay_preview_expanded"),function(){z.Y=!1;Ly(z)})}; x2u=function(z){g.F.call(this,{j:"div",K:"ytp-shorts-title-channel",L:[{j:"a",K:"ytp-shorts-title-channel-logo",V:{href:"{{channelLink}}",target:z.Z().N,"aria-label":"{{channelLogoLabel}}"}},{j:"div",K:"ytp-shorts-title-expanded-heading",L:[{j:"div",K:"ytp-shorts-title-expanded-title",L:[{j:"a",qc:"{{expandedTitle}}",V:{href:"{{channelTitleLink}}",target:z.Z().N,tabIndex:"0"}}]}]}]});var K=this;this.api=z;this.S=this.dE("ytp-shorts-title-channel-logo");this.channelName=this.dE("ytp-shorts-title-expanded-title"); this.subscribeButton=null;z.createClientVe(this.S,this,36925);this.X(this.S,"click",function(f){K.api.logClick(K.S);g.$7(window,YvW(K));f.preventDefault()}); z.createClientVe(this.channelName,this,37220);this.X(this.channelName,"click",function(f){K.api.logClick(K.channelName);g.$7(window,YvW(K));f.preventDefault()}); XQ8(this);this.X(z,"videodatachange",this.Dq);this.X(z,"videoplayerreset",this.Dq);this.Dq()}; XQ8=function(z){if(!z.api.Z().Z2){var K=z.api.getVideoData(),f=new g.Ky("\u0110\u0103ng k\u00fd",null,"\u0110\u00e3 \u0111\u0103ng k\u00fd",null,!0,!1,K.rL,K.subscribed,"channel_avatar",null,z.api,!0);z.api.createServerVe(f.element,z);var M;z.api.setTrackingParams(f.element,((M=K.subscribeButtonRenderer)==null?void 0:M.trackingParams)||null);z.X(f.element,"click",function(){z.api.logClick(f.element)}); z.subscribeButton=f;g.d(z,z.subscribeButton);z.subscribeButton.hL(z.element)}}; YvW=function(z){var K=z.api.Z(),f=z.api.getVideoData();f=g.vG(K)+f.TP;if(!g.Jw(K))return f;K={};g.wq(z.api,"addEmbedsConversionTrackingParams",[K]);return g.V8(f,K)}; Pq=function(z){g.xO.call(this,z,{j:"button",Wx:["ytp-skip-intro-button","ytp-popup","ytp-button"],L:[{j:"div",K:"ytp-skip-intro-button-text",qc:"B\u1ecf qua \u0111o\u1ea1n gi\u1edbi thi\u1ec7u"}]},100);var K=this;this.T=!1;this.S=new g.Kl(function(){K.hide()},5E3); this.PA=this.w$=NaN;g.d(this,this.S);this.G=function(){K.show()}; this.W=function(){K.hide()}; this.J=function(){var f=K.U.getCurrentTime();f>K.w$/1E3&&f0?{j:"svg",V:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},L:[{j:"path",Wx:["ytp-circle-arrow","ytp-svg-fill"],V:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, {j:"text",Wx:["ytp-jump-button-text","ytp-svg-fill"],V:{x:"7.05",y:"15.05"}}]}:{j:"svg",V:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},L:[{j:"path",Wx:["ytp-circle-arrow","ytp-svg-fill"],V:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, {j:"text",Wx:["ytp-jump-button-text","ytp-svg-fill"],V:{x:"6.5",y:"15"}}]}]});var f=this;this.U=z;this.S=K;this.Y=new g.Kl(function(){f.T?(f.T=!1,f.Y.start()):f.element.classList.remove("ytp-jump-spin","backwards")},250); this.T=!1;(K=K>0)?this.U.createClientVe(this.element,this,36843):this.U.createClientVe(this.element,this,36844);var M=g.Pt(K?"Tua t\u1edbi $SECONDS gi\u00e2y. (\u2192)":"Tua lui $SECONDS gi\u00e2y. (\u2190)",{SECONDS:Math.abs(this.S).toString()});this.update({title:M,"data-title-no-tooltip":M,"aria-keyshortcuts":K?"\u2192":"\u2190"});this.J=this.element.querySelector(".ytp-jump-button-text");this.J.textContent=Math.abs(this.S).toString();this.listen("click",this.onClick,this);Qp(z,this.element,this)}; U28=function(z,K){K?z.element.classList.add("ytp-jump-button-enabled"):z.element.classList.remove("ytp-jump-button-enabled");z.U.logVisibility(z.element,K);z.U.r$()}; ny=function(z,K){QX.call(this,z,K,"timedMarkerCueRange","Xem kho\u1ea3nh kh\u1eafc quan tr\u1ecdng");this.X(z,g.DU("timedMarkerCueRange"),this.C6);this.X(z,"updatemarkervisibility",this.updateVideoData)}; zRS=function(z){var K,f=(K=z.U.getVideoData())==null?void 0:K.VE;if(f)for(z=z.J.QE,f=g.a(f),K=f.next();!K.done;K=f.next())if(K=z[K.value]){var M=void 0,p=void 0,t=void 0;if(((M=K.onTap)==null?void 0:(p=M.innertubeCommand)==null?void 0:(t=p.changeEngagementPanelVisibilityAction)==null?void 0:t.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return K}}; Wq=function(z){var K=z.B("web_enable_pip_on_miniplayer");g.F.call(this,{j:"button",Wx:["ytp-miniplayer-button","ytp-button"],V:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},L:["{{icon}}"]});this.U=z;this.visible=!1;this.listen("click",this.onClick);this.X(z,"fullscreentoggled",this.Dq);this.updateValue("title",g.qs(z,"Tr\u00ecnh ph\u00e1t thu nh\u1ecf","i"));this.update({"data-title-no-tooltip":"Tr\u00ecnh ph\u00e1t thu nh\u1ecf", icon:this.U.B("delhi_modern_web_player_icons")?{j:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",V:{d:"M21.20 3.01C21.66 3.05 22.08 3.26 22.41 3.58C22.73 3.91 22.94 4.33 22.98 4.79L23 5V19C23.00 19.49 22.81 19.97 22.48 20.34C22.15 20.70 21.69 20.93 21.20 20.99L21 21H3L2.79 20.99C2.30 20.93 1.84 20.70 1.51 20.34C1.18 19.97 .99 19.49 1 19V13H3V19H21V5H11V3H21L21.20 3.01ZM1.29 3.29C1.10 3.48 1.00 3.73 1.00 4C1.00 4.26 1.10 4.51 1.29 4.70L5.58 9H3C2.73 9 2.48 9.10 2.29 9.29C2.10 9.48 2 9.73 2 10C2 10.26 2.10 10.51 2.29 10.70C2.48 10.89 2.73 11 3 11H9V5C9 4.73 8.89 4.48 8.70 4.29C8.51 4.10 8.26 4 8 4C7.73 4 7.48 4.10 7.29 4.29C7.10 4.48 7 4.73 7 5V7.58L2.70 3.29C2.51 3.10 2.26 3.00 2 3.00C1.73 3.00 1.48 3.10 1.29 3.29ZM19.10 11.00L19 11H12L11.89 11.00C11.66 11.02 11.45 11.13 11.29 11.29C11.13 11.45 11.02 11.66 11.00 11.89L11 12V17C10.99 17.24 11.09 17.48 11.25 17.67C11.42 17.85 11.65 17.96 11.89 17.99L12 18H19L19.10 17.99C19.34 17.96 19.57 17.85 19.74 17.67C19.90 17.48 20.00 17.24 20 17V12L19.99 11.89C19.97 11.66 19.87 11.45 19.70 11.29C19.54 11.13 19.33 11.02 19.10 11.00ZM13 16V13H18V16H13Z", fill:"white"}}]}:K?{j:"svg",V:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},L:[{j:"g",V:{transform:"translate(96, -96) scale(0.8)"},L:[{j:"path",JB:!0,V:{d:"M96-480v-72h165L71-743l50-50 191 190v-165h72v288H96Zm72 288q-29.7 0-50.85-21.15Q96-234.3 96-264v-144h72v144h336v72H168Zm624-264v-240H456v-72h336q29.7 0 50.85 21.15Q864-725.7 864-696v240h-72ZM576-192v-192h288v192H576Z"}}]}]}:VOa()});Qp(z,this.element,this);z.createClientVe(this.element,this,62946);this.Dq()}; Js=function(z,K,f,M,p,t){t=t===void 0?!1:t;var B={j:"div",Wx:["ytp-input-slider-section"],L:[{j:"input",K:"ytp-input-slider",V:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};p&&B.L.unshift(p);t&&B.Wx.push("ytp-vertical-slider");g.F.call(this,B);this.T=z;this.J=K;this.W=f;this.initialValue=M;this.header=p;this.Y=this.dE("ytp-input-slider");this.S=M?M:z;this.init();this.X(this.Y,"input",this.a_);this.X(this.Y,"keydown", this.Xq)}; g2=function(z,K){z.S=K;z.updateValue("slidervalue",z.S);z.Y.valueAsNumber=z.S;K5q(z,K)}; K5q=function(z,K){z.Y.style.setProperty("--yt-slider-shape-gradient-percent",(K-z.T)/(z.J-z.T)*100+"%")}; $_p=function(z){var K=z.isMuted()?0:z.getVolume();Js.call(this,0,100,1,K,void 0,!0);this.U=z;this.D=h$(this.SO,10,this);this.G=!1;this.X(z,"onVolumeChange",this.onVolumeChange);this.X(this.element,"keydown",this.Xq);this.X(this.element,"wheel",this.oe)}; fCu=function(z,K){g.F.call(this,{j:"div",V:{tabindex:"0",title:"\u00c2m l\u01b0\u1ee3ng"},Wx:["ytp-volume-popover"]});var f=this;this.isVisible=!1;this.tooltip=K.XL();this.Y=new $_p(z);g.d(this,this.Y);this.Y.hL(this.element);this.S=new g.Kl(function(){iQ(f,!1)},300); this.listen("mouseenter",function(){f.S.stop()}); this.listen("mouseleave",function(){f.S.start()}); this.listen("focus",function(){f.S.stop()}); this.X(this.Y.Y,"focus",function(){f.S.stop()}); this.listen("blur",function(){f.S.start()}); this.addOnDisposeCallback(g.HD(K.XL(),this.element,-120));g.d(this,this.S)}; iQ=function(z,K){z.element.classList.toggle("ytp-volume-popover-hovering",K);z.isVisible=K}; d2=function(z,K,f){f=f===void 0?!1:f;g.F.call(this,{j:"button",Wx:["ytp-mute-button","ytp-button"],V:z.Z().Bx?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}"}:{"aria-disabled":"true","aria-haspopup":"true"},L:[{j:"div",K:"ytp-volume-icon",qc:"{{icon}}"}]});var M=this;this.U=z;this.vx=f;this.Y=null;this.G=this.nH=this.N=this.D=NaN;this.eV=this.Y1=null;this.W=[];this.J=[];this.visible=!1;this.T=this.S=this.l_=null;z.B("delhi_modern_web_player")&& this.update({"data-priority":4});f=this.U.Z();this.updateValue("icon",sa());this.tooltip=K.XL();this.T=g.rT("ytp-volume-icon",this.element);var p=this.U.B("delhi_modern_web_player_icons")?{j:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",Wx:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],V:{d:"M 11.60 2.08 L 11.48 2.14 L 3.91 6.68 C 3.02 7.21 2.28 7.97 1.77 8.87 C 1.26 9.77 1.00 10.79 1 11.83 V 12.16 L 1.01 12.56 C 1.07 13.52 1.37 14.46 1.87 15.29 C 2.38 16.12 3.08 16.81 3.91 17.31 L 11.48 21.85 C 11.63 21.94 11.80 21.99 11.98 21.99 C 12.16 22.00 12.33 21.95 12.49 21.87 C 12.64 21.78 12.77 21.65 12.86 21.50 C 12.95 21.35 13 21.17 13 21 V 3 C 12.99 2.83 12.95 2.67 12.87 2.52 C 12.80 2.37 12.68 2.25 12.54 2.16 C 12.41 2.07 12.25 2.01 12.08 2.00 C 11.92 1.98 11.75 2.01 11.60 2.08 Z", fill:"#fff"}},{j:"path",K:"ytp-svg-volume-animation-small-ripple",V:{d:" M 15.53 7.05 C 15.35 7.22 15.25 7.45 15.24 7.70 C 15.23 7.95 15.31 8.19 15.46 8.38 L 15.53 8.46 L 15.70 8.64 C 16.09 9.06 16.39 9.55 16.61 10.08 L 16.70 10.31 C 16.90 10.85 17 11.42 17 12 L 16.99 12.24 C 16.96 12.73 16.87 13.22 16.70 13.68 L 16.61 13.91 C 16.36 14.51 15.99 15.07 15.53 15.53 C 15.35 15.72 15.25 15.97 15.26 16.23 C 15.26 16.49 15.37 16.74 15.55 16.92 C 15.73 17.11 15.98 17.21 16.24 17.22 C 16.50 17.22 16.76 17.12 16.95 16.95 C 17.6 16.29 18.11 15.52 18.46 14.67 L 18.59 14.35 C 18.82 13.71 18.95 13.03 18.99 12.34 L 19 12 C 18.99 11.19 18.86 10.39 18.59 9.64 L 18.46 9.32 C 18.15 8.57 17.72 7.89 17.18 7.3 L 16.95 7.05 L 16.87 6.98 C 16.68 6.82 16.43 6.74 16.19 6.75 C 15.94 6.77 15.71 6.87 15.53 7.05", fill:"#fff"}},{j:"path",K:"ytp-svg-volume-animation-big-ripple",V:{d:"M18.36 4.22C18.18 4.39 18.08 4.62 18.07 4.87C18.05 5.12 18.13 5.36 18.29 5.56L18.36 5.63L18.66 5.95C19.36 6.72 19.91 7.60 20.31 8.55L20.47 8.96C20.82 9.94 21 10.96 21 11.99L20.98 12.44C20.94 13.32 20.77 14.19 20.47 15.03L20.31 15.44C19.86 16.53 19.19 17.52 18.36 18.36C18.17 18.55 18.07 18.80 18.07 19.07C18.07 19.33 18.17 19.59 18.36 19.77C18.55 19.96 18.80 20.07 19.07 20.07C19.33 20.07 19.59 19.96 19.77 19.77C20.79 18.75 21.61 17.54 22.16 16.20L22.35 15.70C22.72 14.68 22.93 13.62 22.98 12.54L23 12C22.99 10.73 22.78 9.48 22.35 8.29L22.16 7.79C21.67 6.62 20.99 5.54 20.15 4.61L19.77 4.22L19.70 4.15C19.51 3.99 19.26 3.91 19.02 3.93C18.77 3.94 18.53 4.04 18.36 4.22 Z", fill:"#fff"}}]}:{j:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"defs",L:[{j:"clipPath",V:{id:"ytp-svg-volume-animation-mask"},L:[{j:"path",V:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{j:"path",V:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{j:"path",K:"ytp-svg-volume-animation-mover",V:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{j:"clipPath",V:{id:"ytp-svg-volume-animation-slash-mask"},L:[{j:"path",K:"ytp-svg-volume-animation-mover", V:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{j:"path",JB:!0,Wx:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],V:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{j:"path",JB:!0,Wx:["ytp-svg-fill","ytp-svg-volume-animation-hider"],V:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z", fill:"#fff"}}]};this.Y=new g.kl(p);g.d(this,this.Y);this.Y1=this.Y.dE("ytp-svg-volume-animation-speaker");this.eV=this.Y1.getAttribute("d");this.W=g.F3("ytp-svg-volume-animation-mover",this.Y.element);this.U.B("delhi_modern_web_player_icons");this.J=g.F3("ytp-svg-volume-animation-hider",this.Y.element);this.U.B("delhi_modern_web_player_icons");this.Bx=new TT;g.d(this,this.Bx);this.Hx=new TT;g.d(this,this.Hx);this.X(z,"appresize",this.gD);this.X(z,"onVolumeChange",this.onVolumeChange);z.B("delhi_modern_web_player")? this.listen("click",this.Plh):this.listen("click",this.xJ);f.Bx?z.B("delhi_modern_web_player")?(this.S=new fCu(z,K),this.S.hL(this.element),g.d(this,this.S),this.X(this.T,"mouseover",function(){if(!M.U.vc()){var t;(t=M.S)!=null&&iQ(t,!0);var B;(B=M.S)!=null&&B.S.stop()}}),this.X(this.T,"mouseout",function(){var t; (t=M.S)!=null&&t.S.start()}),this.addOnDisposeCallback(g.HD(K.XL(),this.element,-120))):this.addOnDisposeCallback(g.HD(K.XL(),this.element)):MVg(this); this.message=null;z.createClientVe(this.element,this,28662);this.gD(z.wE().getPlayerSize());this.setVolume(z.getVolume(),z.isMuted())}; pn8=function(z,K){if(z.U.Z().Bx){var f=g.qs(z.U,"T\u1eaft ti\u1ebfng","m"),M=g.qs(z.U,"B\u1eadt \u00e2m thanh","m");z.updateValue("title",K?M:f);z.update({"data-title-no-tooltip":K?"B\u1eadt \u00e2m thanh":"T\u1eaft ti\u1ebfng"});z.tooltip.r$(-120)}}; NCW=function(z,K){z.D=K;var f=z.eV;z.U.B("delhi_modern_web_player_icons")?z.Y.dE("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(K+") translate(-22,-12)")):K&&(f+=ecI(tVp,BCT,K));z.Y1.setAttribute("d",f)}; vAI=function(z,K){var f;K===1?f=z.U.B("delhi_modern_web_player_icons")?{j:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",V:{d:"M11.60 2.08L11.48 2.14L3.91 6.68C3.02 7.21 2.28 7.97 1.77 8.87C1.26 9.77 1.00 10.79 1 11.83V12.16L1.01 12.56C1.07 13.52 1.37 14.46 1.87 15.29C2.38 16.12 3.08 16.81 3.91 17.31L11.48 21.85C11.63 21.94 11.80 21.99 11.98 21.99C12.16 22.00 12.33 21.95 12.49 21.87C12.64 21.78 12.77 21.65 12.86 21.50C12.95 21.35 13 21.17 13 21V3C12.99 2.83 12.95 2.67 12.87 2.52C12.80 2.37 12.68 2.25 12.54 2.16C12.41 2.07 12.25 2.01 12.08 2.00C11.92 1.98 11.75 2.01 11.60 2.08ZM4.94 8.4V8.40L11 4.76V19.23L4.94 15.6C4.38 15.26 3.92 14.80 3.58 14.25C3.24 13.70 3.05 13.07 3.00 12.43L3 12.17V11.83C2.99 11.14 3.17 10.46 3.51 9.86C3.85 9.25 4.34 8.75 4.94 8.4ZM21.29 8.29L19 10.58L16.70 8.29L16.63 8.22C16.43 8.07 16.19 7.99 15.95 8.00C15.70 8.01 15.47 8.12 15.29 8.29C15.12 8.47 15.01 8.70 15.00 8.95C14.99 9.19 15.07 9.43 15.22 9.63L15.29 9.70L17.58 12L15.29 14.29C15.19 14.38 15.12 14.49 15.06 14.61C15.01 14.73 14.98 14.87 14.98 15.00C14.98 15.13 15.01 15.26 15.06 15.39C15.11 15.51 15.18 15.62 15.28 15.71C15.37 15.81 15.48 15.88 15.60 15.93C15.73 15.98 15.86 16.01 15.99 16.01C16.12 16.01 16.26 15.98 16.38 15.93C16.50 15.87 16.61 15.80 16.70 15.70L19 13.41L21.29 15.70L21.36 15.77C21.56 15.93 21.80 16.01 22.05 15.99C22.29 15.98 22.53 15.88 22.70 15.70C22.88 15.53 22.98 15.29 22.99 15.05C23.00 14.80 22.93 14.56 22.77 14.36L22.70 14.29L20.41 12L22.70 9.70C22.80 9.61 22.87 9.50 22.93 9.38C22.98 9.26 23.01 9.12 23.01 8.99C23.01 8.86 22.98 8.73 22.93 8.60C22.88 8.48 22.81 8.37 22.71 8.28C22.62 8.18 22.51 8.11 22.39 8.06C22.26 8.01 22.13 7.98 22.00 7.98C21.87 7.98 21.73 8.01 21.61 8.06C21.49 8.12 21.38 8.19 21.29 8.29Z", fill:"white"}}]}:sa():f=z.Y;z.nH=K;if(z.U.B("delhi_modern_web_player_icons"))z.Y.dE("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-K+") translate(-18,-12)")),z.Y.dE("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(z.D-K+") translate(-22, -12)"));else{for(var M=20*K,p=0;p=3&&z.U.getPresentingPlayerType()!==2}; D_u=function(z){var K=nq(z.U.pI());return K?z.S?K.WC():K.S4():!1}; bTu=function(z){var K={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},f=z.playlist!=null&&z.playlist.WC();f=g.WD(z.U)&&(!z.S||f);var M=z.S&&g.cD(z.U),p=D_u(z),t=z.S&&z.U.getPresentingPlayerType()===5,B=g.qs(z.U,"Ti\u1ebfp theo","SHIFT+n"),v=g.qs(z.U,"Tr\u01b0\u1edbc","SHIFT+p");if(t)K.title="Ph\u00e1t video";else if(z.T)K.title="Ph\u00e1t l\u1ea1i";else if(f){var I=null;z.playlist&&(I=g.kW(z.playlist,z.S?ZYv(z.playlist):o2I(z.playlist))); if(I){if(I.videoId){var G=z.playlist.listId;K.url=z.U.Z().getVideoUrl(I.videoId,G?G.toString():void 0)}K.text=I.title;K.duration=I.lengthText?I.lengthText:I.lengthSeconds?g.nd(I.lengthSeconds):null;K.preview=I.JJ("mqdefault.jpg")}z.S?(K.title=B,K["data-title-no-tooltip"]="Ti\u1ebfp theo",K["aria-keyshortcuts"]="SHIFT+n"):(K.title=v,K["data-title-no-tooltip"]="Tr\u01b0\u1edbc",K["aria-keyshortcuts"]="SHIFT+p")}else if(M){if(v=(I=z.videoData)==null?void 0:g.ME(I))K.url=v.xv(),K.text=v.title,K.duration= v.lengthText?v.lengthText:v.lengthSeconds?g.nd(v.lengthSeconds):null,K.preview=v.JJ("mqdefault.jpg");K.title=B;K["data-title-no-tooltip"]="Ti\u1ebfp theo";K["aria-keyshortcuts"]="SHIFT+n"}K.disabled=!M&&!f&&!p&&!t;z.update(K);z.G=!!K.url;M||f||z.T||p||t?z.Y||(z.Y=g.HD(z.tooltip,z.element),z.W=z.listen("click",z.onClick,z)):z.Y&&(z.Y(),z.Y=null,z.W8(z.W),z.W=null);z.tooltip.r$();g.k4(z.element,"ytp-playlist-ui",z.S&&(f||z.U.B("web_hide_next_button")))}; GyW=function(z,K){return z?K?{j:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",V:{d:"M20 20C20.26 20 20.51 19.89 20.70 19.70C20.89 19.51 21 19.26 21 19V5C21 4.73 20.89 4.48 20.70 4.29C20.51 4.10 20.26 4 20 4C19.73 4 19.48 4.10 19.29 4.29C19.10 4.48 19 4.73 19 5V19C19 19.26 19.10 19.51 19.29 19.70C19.48 19.89 19.73 20 20 20ZM5.04 19.77L18 12L5.04 4.22C4.84 4.10 4.60 4.03 4.36 4.03C4.12 4.03 3.89 4.09 3.68 4.21C3.47 4.32 3.30 4.49 3.18 4.70C3.06 4.91 2.99 5.14 3 5.38V18.61C2.99 18.85 3.06 19.08 3.18 19.29C3.30 19.50 3.47 19.67 3.68 19.79C3.89 19.90 4.12 19.96 4.36 19.96C4.60 19.96 4.84 19.89 5.04 19.77Z", fill:"white"}}]}:ln():K?{j:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",V:{d:"M4 4C3.73 4 3.48 4.10 3.29 4.29C3.10 4.48 3 4.73 3 5V19C3 19.26 3.10 19.51 3.29 19.70C3.48 19.89 3.73 20 4 20C4.26 20 4.51 19.89 4.70 19.70C4.89 19.51 5 19.26 5 19V5C5 4.73 4.89 4.48 4.70 4.29C4.51 4.10 4.26 4 4 4ZM18.95 4.23L6 12.00L18.95 19.77C19.15 19.89 19.39 19.96 19.63 19.96C19.87 19.97 20.10 19.91 20.31 19.79C20.52 19.67 20.69 19.50 20.81 19.29C20.93 19.09 21.00 18.85 21 18.61V5.38C20.99 5.14 20.93 4.91 20.81 4.70C20.69 4.50 20.52 4.33 20.31 4.21C20.10 4.09 19.87 4.03 19.63 4.03C19.39 4.04 19.15 4.10 18.95 4.23Z", fill:"white"}}]}:JOu()}; kyq=function(z,K){g.F.call(this,{j:"div",K:"ytp-fine-scrubbing",L:[{j:"div",K:"ytp-fine-scrubbing-draggable",L:[{j:"div",K:"ytp-fine-scrubbing-thumbnails",V:{tabindex:"0",role:"slider",type:"range","aria-label":"Nh\u1ea5p v\u00e0o ho\u1eb7c cu\u1ed9n b\u1ea3ng \u0111i\u1ec1u khi\u1ec3n \u0111\u1ec3 tua ch\u00ednh x\u00e1c","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{j:"div",V:{"aria-hidden":"true"},K:"ytp-fine-scrubbing-cursor"}, {j:"div",K:"ytp-fine-scrubbing-seek-time",V:{"aria-hidden":"true"},qc:"{{seekTime}}"},{j:"div",K:"ytp-fine-scrubbing-play",L:[z.B("delhi_modern_web_player_icons")?Jt():WW()],V:{title:"Ph\u00e1t t\u1eeb th\u1eddi \u0111i\u1ec3m n\u00e0y",role:"button"}},{j:"div",K:"ytp-fine-scrubbing-dismiss",L:[g.qb()],V:{title:"Tho\u00e1t kh\u1ecfi ch\u1ebf \u0111\u1ed9 tua ch\u00ednh x\u00e1c",role:"button"}}]});var f=this;this.api=z;this.W=this.dE("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.dE("ytp-fine-scrubbing-dismiss"); this.nH=this.dE("ytp-fine-scrubbing-draggable");this.playButton=this.dE("ytp-fine-scrubbing-play");this.thumbnails=[];this.Y=[];this.vx=this.S=0;this.Bx=void 0;this.Y1=NaN;this.Px=this.N=this.T=this.D=0;this.J=[];this.interval=this.frameCount=0;this.G=160;this.scale=1;this.Xc=0;this.isEnabled=this.eV=!1;yDW(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.HD(K,this.dismissButton));this.addOnDisposeCallback(g.HD(K,this.playButton));this.Hx=new g.sR(this.nH,!0);this.Hx.subscribe("dragstart", this.rJ,this);this.Hx.subscribe("dragmove",this.Lw,this);this.Hx.subscribe("dragend",this.Tv,this);this.X(z,"SEEK_COMPLETE",this.JW);z.B("web_fix_fine_scrubbing_false_play")&&this.X(z,"rootnodemousedown",function(M){f.l_=M}); this.W.addEventListener("keydown",function(){}); g.d(this,this.Hx);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.W,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; yDW=function(z,K){var f=g.nd(K),M=g.Pt("Tua t\u1edbi $PROGRESS",{PROGRESS:g.nd(K,!0)});z.update({ariamin:0,ariamax:Math.floor(z.api.getDuration()),arianow:Math.floor(K),arianowtext:M,seekTime:f})}; hRI=function(z){z.Y1=NaN;z.N=0;z.D=z.T}; SOS=function(z){var K=z.api.ax();if(K){var f=90*z.scale,M=j1(K,160*z.scale);if(K=K.levels[M]){z.G=K.width;if(!z.J.length){M=[];for(var p=Yt(K,K.iA()),t=K.columns*K.rows,B=K.frameCount,v=0;v<=p;v++)for(var I=Bz.J.length;)M= void 0,(M=z.thumbnails.pop())==null||M.dispose();for(;z.thumbnails.lengthf.length;)M=void 0,(M=z.Y.pop())==null||M.dispose(); for(;z.Y.length-f?-K/f*z.interval*.5:-(K+f/2)/f*z.interval}; uKd=function(z){return-((z.W.offsetWidth||(z.frameCount-1)*z.G*z.scale)-z.S/2)}; aCI=function(){g.F.call(this,{j:"div",K:"ytp-fine-scrubbing-thumbnail"})}; RRa=function(){g.F.call(this,{j:"div",K:"ytp-fine-scrubbing-chapter-title",L:[{j:"div",K:"ytp-fine-scrubbing-chapter-title-content",qc:"{{chapterTitle}}"}]})}; EAv=function(z){g.F.call(this,{j:"div",K:"ytp-heat-map-chapter",L:[{j:"svg",K:"ytp-heat-map-svg",V:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},L:[{j:"defs",L:[{j:"clipPath",V:{id:"{{id}}"},L:[{j:"path",K:"ytp-heat-map-path",V:{d:"",fill:"white"}}]},{j:"linearGradient",V:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},L:[{j:"stop",V:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{j:"stop",V:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{j:"rect",K:"ytp-heat-map-graph",V:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{j:"rect",K:"ytp-heat-map-hover",V:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{j:"rect",K:"ytp-heat-map-play",V:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{j:"path",K:"ytp-modern-heat-map",V:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",style:"display: none;",width:"100%",x:"0",y:"0"}}]}]});this.api=z;this.D=this.dE("ytp-heat-map-svg");this.W=this.dE("ytp-heat-map-path");this.J=this.dE("ytp-heat-map-graph");this.G=this.dE("ytp-heat-map-play");this.S=this.dE("ytp-heat-map-hover");this.T=this.dE("ytp-modern-heat-map");this.bl=!1;this.Y=60;z=""+g.M5(this);this.update({id:z});z="url(#"+z+")";this.J.setAttribute("clip-path",z);this.G.setAttribute("clip-path",z);this.S.setAttribute("clip-path", z)}; Pw8=function(z,K){K>0&&(z.Y=K,z.D.style.height=z.Y+"px")}; jY=function(){g.F.call(this,{j:"div",K:"ytp-chapter-hover-container",L:[{j:"div",K:"ytp-progress-bar-padding"},{j:"div",K:"ytp-progress-list",L:[{j:"div",Wx:["ytp-play-progress","ytp-swatch-background-color"]},{j:"div",K:"ytp-progress-linear-live-buffer"},{j:"div",K:"ytp-load-progress"},{j:"div",K:"ytp-hover-progress"},{j:"div",K:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.Y=this.dE("ytp-progress-list");this.W=this.dE("ytp-progress-linear-live-buffer"); this.J=this.dE("ytp-ad-progress-list");this.G=this.dE("ytp-load-progress");this.D=this.dE("ytp-play-progress");this.T=this.dE("ytp-hover-progress");this.S=this.dE("ytp-chapter-hover-container")}; YJ=function(z,K){g.H6(z.S,"width",K)}; HT5=function(z,K){g.H6(z.S,"margin-right",K+"px")}; QXS=function(){this.Y=this.position=this.T=this.S=this.J=this.width=NaN}; qO8=function(){g.F.call(this,{j:"div",K:"ytp-timed-marker"});this.S=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.xJ=function(z,K){g.RT.call(this,{j:"div",K:"ytp-progress-bar-container",V:{"aria-disabled":"true"},L:[{j:"div",Wx:["ytp-heat-map-container"],L:[{j:"div",K:"ytp-heat-map-edu"}]},{j:"div",Wx:["ytp-progress-bar"],V:{tabindex:"0",role:"slider","aria-label":"Thanh tr\u01b0\u1ee3t t\u00ecm ki\u1ebfm","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},L:[{j:"div",K:"ytp-chapters-container"},{j:"div",K:"ytp-timed-markers-container"}, {j:"div",K:"ytp-clip-start-exclude"},{j:"div",K:"ytp-clip-end-exclude"},{j:"div",K:"ytp-scrubber-container",L:[{j:"div",Wx:["ytp-scrubber-button","ytp-swatch-background-color"],L:[{j:"div",K:"ytp-scrubber-pull-indicator"},{j:"img",Wx:["ytp-decorated-scrubber-button"]}]}]}]},{j:"div",Wx:["ytp-fine-scrubbing-container"],L:[{j:"div",K:"ytp-fine-scrubbing-edu"}]},{j:"div",K:"ytp-bound-time-left",qc:"{{boundTimeLeft}}"},{j:"div",K:"ytp-bound-time-right",qc:"{{boundTimeRight}}"},{j:"div",K:"ytp-clip-start", V:{title:"{{clipstarttitle}}"},qc:"{{clipstarticon}}"},{j:"div",K:"ytp-clip-end",V:{title:"{{clipendtitle}}"},qc:"{{clipendicon}}"}]});this.api=z;this.Hm=!1;this.Gw=this.Yx=this.VE=this.W=this.w$=0;this.PA=null;this.BA=!1;this.Xc={};this.O3={};this.clipEnd=Infinity;this.Ft=this.dE("ytp-clip-end");this.QW=new g.sR(this.Ft,!0);this.D3=this.dE("ytp-clip-end-exclude");this.SU=this.dE("ytp-clip-start-exclude");this.clipStart=0;this.Z2=this.dE("ytp-clip-start");this.Ph=new g.sR(this.Z2,!0);this.Y1=this.TP= 0;this.progressBar=this.dE("ytp-progress-bar");this.W1={};this.QE={};this.rE=this.dE("ytp-chapters-container");this.tJ=this.dE("ytp-timed-markers-container");this.S=[];this.G=[];this.XK={};this.Ix=null;this.eV=-1;this.nI=this.Bx=0;this.ES=this.D=null;this.K3=this.dE("ytp-scrubber-button");this.nH=this.dE("ytp-decorated-scrubber-button");this.Jo=this.dE("ytp-scrubber-container");this.SE=new g.Vw;this.RF=0;this.Co=new QXS;this.T=new Yk(0,0);this.U3=null;this.N=this.lW=!1;this.G8=null;this.l_=this.dE("ytp-heat-map-container"); this.t9=this.dE("ytp-heat-map-edu");this.J=[];this.heatMarkersDecorations=[];this.oa=this.dE("ytp-fine-scrubbing-container");this.b3=this.dE("ytp-fine-scrubbing-edu");this.Y=void 0;this.vx=this.C3=this.Px=!1;this.tooltip=K.XL();this.addOnDisposeCallback(g.HD(this.tooltip,this.Ft));g.d(this,this.QW);this.QW.subscribe("hoverstart",this.Nd,this);this.QW.subscribe("hoverend",this.Ru,this);this.X(this.Ft,"click",this.kV);this.addOnDisposeCallback(g.HD(this.tooltip,this.Z2));g.d(this,this.Ph);this.Ph.subscribe("hoverstart", this.Nd,this);this.Ph.subscribe("hoverend",this.Ru,this);this.X(this.Z2,"click",this.kV);m_d(this);this.X(z,"resize",this.NB);this.X(z,"presentingplayerstatechange",this.kG);this.X(z,"videodatachange",this.Up);this.X(z,"videoplayerreset",this.Mz);this.X(z,"cuerangesadded",this.o9E);this.X(z,"cuerangesremoved",this.WVE);this.X(z,"onLoopRangeChange",this.Z5);this.X(z,"innertubeCommand",this.onClickCommand);this.X(z,"onRetroModeChanged",this.sFd);this.X(z,g.wE("timedMarkerCueRange"),this.UL1);this.X(z, "updatemarkervisibility",this.Ab);this.X(z,"serverstitchedvideochange",this.Sre);this.updateVideoData(z.getVideoData(),!0);this.Z5(z.getLoopRange());X_(this)&&!this.Y&&(this.Y=new kyq(this.api,this.tooltip),z=g.J$(this.element).x||0,this.Y.NB(z,this.W),this.Y.hL(this.oa),g.d(this,this.Y),this.X(this.Y.dismissButton,"click",this.Sz),this.X(this.Y.playButton,"click",this.CL),this.X(this.Y.element,"dblclick",this.CL));this.api.createClientVe(this.l_,this,139609,!0);this.api.createClientVe(this.t9,this, 140127,!0);this.api.createClientVe(this.b3,this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; m_d=function(z){if(z.S.length===0){var K=new jY;z.S.push(K);g.d(z,K);K.hL(z.rE,0)}for(;z.S.length>1;)z.S.pop().dispose();YJ(z.S[0],"100%");z.S[0].startTime=0;z.S[0].title=""}; lCq=function(z){var K=K===void 0?NaN:K;var f=new EAv(z.api);z.J.push(f);g.d(z,f);f.hL(z.l_);K>=0&&(f.element.style.width=K+"px")}; VVg=function(z){for(;z.G.length;)z.G.pop().dispose()}; W5T=function(z){var K,f,M,p,t;return(t=g.A((p=g.A((K=z.getWatchNextResponse())==null?void 0:(f=K.playerOverlays)==null?void 0:(M=f.playerOverlayRenderer)==null?void 0:M.decoratedPlayerBarRenderer,VJ))==null?void 0:p.playerBar,nA8))==null?void 0:t.chapters}; JDq=function(z){for(var K=z.S,f=[],M=0;M=B&&R<=b&&t.push(w)}I>0&&(z.l_.style.height=I+"px");B=z.J[M];b=t;w=p;y=I;R=M===0;R=R===void 0?!1:R;Pw8(B,y);e=b;D=B.Y;R=R===void 0?!1:R;var S=1E3/e.length,E=[];E.push({x:0,y:100});for(var L=0;L0&&(f=t[t.length-1])}g.F_(z);v=[];K=g.a(K.heatMarkersDecorations||[]);for(p=K.next();!p.done;p=K.next())if(p=g.A(p.value,jXv))I=p.label,M=f=G=void 0,v.push({visibleTimeRangeStartMillis:(G=p.visibleTimeRangeStartMillis)!=null?G:-1,visibleTimeRangeEndMillis:(f=p.visibleTimeRangeEndMillis)!=null?f:-1,decorationTimeMillis:(M=p.decorationTimeMillis)!=null?M:NaN,label:I?g.Lc(I):""});z.heatMarkersDecorations=v}}; d_p=function(z,K){z.G.push(K);g.d(z,K);K.hL(z.tJ,z.tJ.children.length)}; cDu=function(z,K){K=g.a(K);for(var f=K.next();!f.done;f=K.next()){f=f.value;var M=OX(z,f.timeRangeStartMillis/(z.T.S*1E3),r2(z)),p=z.api.B("delhi_modern_web_player")?.667:.6;g.H6(f.element,"transform","translateX("+M+"px) scaleX("+p+")")}}; gA8=function(z,K){var f=0,M=!1;K=g.a(K);for(var p=K.next();!p.done;p=K.next()){p=p.value;if(g.A(p,Xnv)){p=g.A(p,Xnv);var t={startTime:NaN,title:null,onActiveCommand:void 0},B=p.title;t.title=B?g.Lc(B):"";B=p.timeRangeStartMillis;B!=null&&(t.startTime=B);t.onActiveCommand=p.onActiveCommand;p=t;f===0&&p.startTime!==0&&(z.S[f].startTime=0,z.S[f].title="",z.S[f].onActiveCommand=p.onActiveCommand,f++,M=!0);z.S.length<=f&&(t=new jY,z.S.push(t),g.d(z,t),t.hL(z.rE,z.rE.children.length));z.S[f].startTime= p.startTime;z.S[f].title=p.title?p.title:"";z.S[f].onActiveCommand=p.onActiveCommand;z.S[f].index=M?f-1:f}f++}for(;f=0;M--)if(z.S[M].width>0){HT5(z.S[M],0);var p=Math.floor(z.S[M].width);z.S[M].width=p;YJ(z.S[M],p+"px");break}z.S[f].width=0;YJ(z.S[f],"0")}else f===z.S.length-1?(M=Math.floor(z.S[f].width+K),z.S[f].width=M,YJ(z.S[f],M+"px")):(K=z.S[f].width+K,M=Math.round(K),K-=M,z.S[f].width=M,YJ(z.S[f],M+"px"));f=0;if(z.J.length===z.S.length)for(K=0;K< z.J.length;K++)M=z.S[K].width,z.J[K].element.style.width=M+"px",z.J[K].element.style.left=f+"px",f+=M+o_(z);z.api.B("delhi_modern_web_player")&&(z.S.length===1?z.S[0].Y.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(z.S[0].Y.classList.remove("ytp-progress-bar-end"),z.S[0].Y.classList.add("ytp-progress-bar-start"),z.S[z.S.length-1].Y.classList.add("ytp-progress-bar-end")))}; x_v=function(z,K){var f=0,M=!1,p=z.S.length,t=z.T.S*1E3;t===0&&(t=z.api.getProgressState().seekableEnd*1E3);if(t>0&&z.W>0){for(var B=z.W-o_(z)*z.Bx,v=z.nI===0?3:B*z.nI,I=g.a(z.S),G=I.next();!G.done;G=I.next())G.value.width=0;for(;f1);G=(t===0?0:I/t*B)+z.S[f].width;if(G>v)z.S[f].width=G;else{z.S[f].width=0;var b=z,e=f,w=b.S[e-1];w!==void 0&&w.width>0? w.width+=G:ez.nI&&(z.nI=I/t),M=!0)}f++}}return M}; Zn=function(z){if(z.W){var K=z.api.getProgressState(),f=z.api.getVideoData();if(!(f&&f.enableServerStitchedDai&&f.pk)||isFinite(K.current)){var M;if(((M=z.api.getVideoData())==null?0:UM(M))&&K.airingStart&&K.airingEnd)var p=Cy(z,K.airingStart,K.airingEnd);else if(z.api.getPresentingPlayerType()===2){var t,B,v;p=(f=(p=z.api.getVideoData())==null?void 0:(t=p.getPlayerResponse())==null?void 0:(B=t.playerConfig)==null?void 0:(v=B.webPlayerConfig)==null?void 0:v.skippableAdProgressBarDuration)?Cy(z,K.seekableStart, f/1E3):Cy(z,K.seekableStart,K.seekableEnd)}else p=Cy(z,K.seekableStart,K.seekableEnd);t=XN(p,K.loaded,0);K=XN(p,K.current,0);B=z.T.Y!==p.Y||z.T.S!==p.S;z.T=p;Tq(z,K,t);B&&F5d(z);OTo(z)}}}; Cy=function(z,K,f){return rD5(z)?new Yk(Math.max(K,z.U3.startTimeMs/1E3),Math.min(f,z.U3.endTimeMs/1E3)):new Yk(K,f)}; oAW=function(z,K){var f,M,p;K=g.A((f=K.getWatchNextResponse())==null?void 0:(M=f.playerOverlays)==null?void 0:(p=M.playerOverlayRenderer)==null?void 0:p.decoratedPlayerBarRenderer,VJ);if(K==null?0:K.progressColor)for(f=0;f1){f=UX(z,K.T,!0);for(var M=0,p=0;p0&&(M+=z.S[p].width,M+=o_(z));f=(z.S[f].startTime+(K.T-M)/z.S[f].width*((f===z.S.length-1?z.T.S*1E3:z.S[f+1].startTime)-z.S[f].startTime))/1E3||0}return f}; KY=function(z,K,f,M,p){K=K<0?0:Math.floor(Math.min(K,z.api.getDuration())*1E3);f=f<0?0:Math.floor(Math.min(f,z.api.getDuration())*1E3);z=z.progressBar.visualElement;M={seekData:{startMediaTimeMs:K,endMediaTimeMs:f,seekSource:M}};(K=g.Vz())&&g.Mu(pc)(void 0,K,z,p,M,void 0)}; TCa=function(z,K,f){if(f>=z.S.length)return!1;var M=z.W-o_(z)*z.Bx;return Math.abs(K-z.S[f].startTime/1E3)/z.T.S*M<4}; F5d=function(z){z.K3.style.removeProperty("height");for(var K=g.a(Object.keys(z.Xc)),f=K.next();!f.done;f=K.next())U_8(z,f.value);$2(z);Tq(z,z.Y1,z.TP)}; r2=function(z){var K=z.SE.x;K=g.qt(K,0,z.W);z.Co.update(K,z.W);return z.Co}; MC=function(z){return(z.N?135:90)-fY(z)}; fY=function(z){var K=48,f=z.api.Z();z.api.B("delhi_modern_web_player")?K=z.N?96:68:z.N?K=54:g.Jw(f)&&!f.Y&&(K=40);return K}; Tq=function(z,K,f){z.Y1=K;z.TP=f;var M=r2(z),p=z.T.S,t=ex8(z.T,z.Y1),B=g.Pt("$PLAY_PROGRESS / $DURATION",{PLAY_PROGRESS:g.nd(t,!0),DURATION:g.nd(p,!0)}),v=I_(z.S,t*1E3);v=z.S[v].title;z.update({ariamin:Math.floor(z.T.Y),ariamax:Math.floor(p),arianow:Math.floor(t),arianowtext:v?v+" "+B:B});p=z.clipStart;t=z.clipEnd;z.U3&&z.api.getPresentingPlayerType()!==2&&(p=z.U3.startTimeMs/1E3,t=z.U3.endTimeMs/1E3);p=XN(z.T,p,0);v=XN(z.T,t,1);B=z.api.getVideoData();t=g.qt(K,p,v);f=(B==null?0:g.op(B))?1:g.qt(f, p,v);K=OX(z,K,M);g.H6(z.Jo,"transform","translateX("+K+"px)");z.api.B("delhi_modern_web_player")&&z.api.B("delhi_modern_web_player_cutout")&&zsT(z,K);pY(z,M,p,t,"PLAY_PROGRESS");(B==null?0:UM(B))?(K=z.api.getProgressState().seekableEnd)&&pY(z,M,t,XN(z.T,K),"LIVE_BUFFER"):pY(z,M,p,f,"LOAD_PROGRESS");if(z.api.B("web_player_heat_map_played_bar")){var I;(I=z.J[0])!=null&&I.G.setAttribute("width",(t*100).toFixed(2)+"%")}}; zsT=function(z,K){z.api.getPresentingPlayerType()!==1?z.rE.style.removeProperty("clip-path"):(K||(K=OX(z,z.Y1,r2(z))),z.rE.style.clipPath='path("'+(z.BA?KBp(z,8,K,z.N?50:36,0,6):KBp(z,4,K,z.N?34:24,2,3))+'")')}; KBp=function(z,K,f,M,p,t){var B=f-M/2;f+=M/2;K+=p;return"M 0 "+p+" L 0 "+(K+" L ")+(B+" "+K+" C ")+(B+t+" "+K+" "+(B+t)+" "+p+" "+B+" "+p+" L 0 ")+(p+" M ")+(f+" "+p+" L ")+(z.W+" "+p+" L ")+(z.W+" "+K+" L ")+(f+" "+K+" C ")+(f-t+" "+K+" "+(f-t)+" "+p+" "+f+" "+p)}; pY=function(z,K,f,M,p){var t=z.S.length,B=K.S-z.Bx*o_(z),v=f*B;f=UX(z,v);var I=M*B;B=UX(z,I);p==="HOVER_PROGRESS"&&(B=UX(z,K.S*M,!0),I=K.S*M-$O5(z,K.S*M)*o_(z));M=Math.max(v-frv(z,f),0);for(v=f;v=z.S.length)return z.W;for(var f=0,M=0;M0||z.D3.clientWidth>0?(t=K.clientWidth/f,z=-1*z.SU.clientWidth/f):(t/=f,z=-1*z.S[p].element.offsetLeft/f),g.H6(K,"background-size",t+"px"),g.H6(K,"background-position-x",z+"px"))}; tz=function(z,K,f,M,p){p||z.api.Z().Y?K.style.width=f+"px":g.H6(K,"transform","scalex("+(M?f/M:0)+")")}; UX=function(z,K,f){var M=0;(f===void 0?0:f)&&(K-=$O5(z,K)*o_(z));f=g.a(z.S);for(var p=f.next();!p.done;p=f.next()){p=p.value;if(K>p.width)K-=p.width;else break;M++}return M===z.S.length?M-1:M}; OX=function(z,K,f){var M=K*z.T.S*1E3;for(var p=-1,t=g.a(z.S),B=t.next();!B.done;B=t.next())B=B.value,M>B.startTime&&B.width>0&&p++;M=p<0?0:p;p=f.S-o_(z)*z.Bx;return K*p+o_(z)*M+f.J}; $O5=function(z,K){for(var f=z.S.length,M=0,p=g.a(z.S),t=p.next();!t.done;t=p.next())if(t=t.value,t.width!==0)if(K>t.width)K-=t.width,K-=o_(z),M++;else break;return M===f?f-1:M}; g.ttu=function(z,K,f,M){var p=z.W!==f,t=z.N!==M;z.w$=K;z.W=f;z.N=M;X_(z)&&(K=z.Y)!=null&&(K.scale=M?1.5:1);F5d(z);z.S.length===1&&(z.S[0].width=f||0);p&&g.F_(z);z.Y&&t&&X_(z)&&(z.Y.isEnabled&&(f=z.N?135:90,M=f-fY(z),z.oa.style.height=f+"px",g.H6(z.l_,"transform","translateY("+-M+"px)"),g.H6(z.progressBar,"transform","translateY("+-M+"px)")),SOS(z.Y))}; $2=function(z){var K=!!z.U3&&z.api.getPresentingPlayerType()!==2,f=z.clipStart,M=z.clipEnd,p=!0,t=!0;K&&z.U3?(f=z.U3.startTimeMs/1E3,M=z.U3.endTimeMs/1E3):(p=f>z.T.Y,t=z.T.S>0&&Mz.Y1);g.k4(z.K3,"ytp-scrubber-button-hover",f===M&&z.S.length>1);if(z.api.B("web_player_heat_map_played_bar")){var t;(t=z.J[0])!=null&&t.S.setAttribute("width",(K.Y*100).toFixed(2)+"%")}}}; U_8=function(z,K){var f=z.Xc[K];K=z.O3[K];var M=r2(z),p=XN(z.T,f.start/1E3,0),t=LhW(f,z.N)/M.width;var B=XN(z.T,f.end/1E3,1);t!==Number.POSITIVE_INFINITY&&(p=g.qt(p,0,B-t));B=Math.min(B,p+t);f.color&&(K.style.background=f.color);f=p;K.style.left=Math.max(f*M.S+M.J,0)+"px";tz(z,K,g.qt((B-f)*M.S+M.J,0,M.width),M.width,!0)}; B$8=function(z,K){var f=K.getId();z.Xc[f]===K&&(g.ps(z.O3[f]),delete z.Xc[f],delete z.O3[f])}; X_=function(z){var K=g.$t(z.api.Z())&&(z.api.B("web_shorts_pip")||z.api.B("web_watch_pip")),f;return!((f=z.api.getVideoData())==null?0:f.isLivePlayback)&&!z.api.isMinimized()&&!z.api.isInline()&&(!z.api.Uo()||!K)}; BE=function(z){z.Y&&(z.Y.disable(),z.VE=0,z.l_.style.removeProperty("transform"),z.progressBar.style.removeProperty("transform"),z.oa.style.removeProperty("height"),z.element.parentElement&&z.element.parentElement.style.removeProperty("height"))}; N$u=function(z,K){var f=K/MC(z)*fY(z);g.H6(z.progressBar,"transform","translateY("+-K+"px)");g.H6(z.l_,"transform","translateY("+-K+"px)");g.H6(z.oa,"transform","translateY("+f+"px)");z.oa.style.height=K+f+"px";z.element.parentElement&&(z.element.parentElement.style.height=fY(z)-f+"px")}; v1S=function(z,K){K?z.D||(z.element.removeAttribute("aria-disabled"),z.D=new g.sR(z.progressBar,!0),z.api.B("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&z.D.subscribe("hoverstart",z.I3E,z),z.D.subscribe("hovermove",z.BOE,z),z.D.subscribe("hoverend",z.CPf,z),z.D.subscribe("dragstart",z.vbL,z),z.D.subscribe("dragmove",z.PPq,z),z.D.subscribe("dragend",z.G5c,z),z.api&&z.api.B("delhi_modern_web_player")&&z.api.B("delhi_modern_web_player_cutout")&&(z.ES=new g.sR(z.progressBar, !0),z.ES.subscribe("hoverstart",function(){z.BA=!0;zsT(z)},z),z.ES.subscribe("hoverend",function(){z.BA=!1; zsT(z)},z)),z.G8=z.listen("keydown",z.Ej)):z.D&&(z.element.setAttribute("aria-disabled","true"),z.W8(z.G8),z.D.cancel(),z.D.dispose(),z.D=null)}; o_=function(z){return z.api.B("delhi_modern_web_player")?4:z.N?3:2}; rD5=function(z){var K;return!((K=z.U3)==null||!K.postId)&&z.api.getPresentingPlayerType()!==2}; NC=function(z,K){g.F.call(this,{j:"button",Wx:["ytp-remote-button","ytp-button"],V:{title:"Ph\u00e1t tr\u00ean TV","aria-haspopup":"true","data-priority":"10"},qc:"{{icon}}"});this.U=z;this.zP=K;this.S=null;this.X(z,"onMdxReceiversChange",this.Dq);this.X(z,"presentingplayerstatechange",this.Dq);this.X(z,"appresize",this.Dq);z.createClientVe(this.element,this,139118);this.Dq();this.listen("click",this.Y,this);Qp(z,this.element,this)}; vE=function(z,K){g.F.call(this,{j:"button",Wx:["ytp-button","ytp-settings-button"],V:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":yb(),title:"C\u00e0i \u0111\u1eb7t","data-tooltip-target-id":"ytp-settings-button"},L:[z.B("delhi_modern_web_player_icons")?{j:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",V:{d:"M12.84 1H11.15C10.72 .99 10.30 1.14 9.95 1.40C9.60 1.66 9.35 2.02 9.23 2.44L9.19 2.61C9.11 3.00 8.96 3.38 8.73 3.71C8.51 4.04 8.22 4.33 7.89 4.55L7.75 4.64C7.37 4.85 6.96 4.98 6.53 5.02C6.11 5.06 5.68 5.01 5.27 4.87C4.86 4.73 4.42 4.73 4.00 4.86C3.59 5.00 3.23 5.26 2.99 5.62L2.89 5.77L2.05 7.23C1.82 7.63 1.73 8.10 1.81 8.55C1.88 9.01 2.12 9.43 2.47 9.73L2.58 9.84C3.15 10.39 3.50 11.15 3.50 12L3.49 12.16C3.47 12.56 3.37 12.95 3.19 13.31C3.01 13.67 2.77 13.99 2.47 14.26C2.12 14.56 1.88 14.98 1.81 15.43C1.73 15.89 1.82 16.36 2.05 16.76L2.89 18.22L2.99 18.37C3.24 18.73 3.59 18.99 4.01 19.13C4.42 19.26 4.86 19.26 5.27 19.12L5.42 19.07C5.81 18.96 6.21 18.93 6.61 18.98C7.01 19.03 7.40 19.15 7.75 19.36L7.89 19.44C8.22 19.66 8.51 19.95 8.73 20.28C8.96 20.61 9.11 20.99 9.19 21.38C9.28 21.84 9.52 22.24 9.88 22.54C10.24 22.83 10.69 23.00 11.15 23H12.84C13.30 23.00 13.75 22.83 14.11 22.54C14.47 22.24 14.71 21.84 14.80 21.38C14.89 20.96 15.06 20.56 15.31 20.21C15.55 19.86 15.88 19.57 16.25 19.36L16.39 19.28C16.75 19.10 17.14 18.99 17.54 18.96C17.94 18.94 18.34 18.99 18.72 19.12L18.89 19.17C19.31 19.27 19.75 19.24 20.15 19.07C20.55 18.90 20.88 18.60 21.10 18.23L21.95 16.76C22.18 16.36 22.26 15.89 22.19 15.43C22.11 14.98 21.88 14.56 21.53 14.26C21.23 13.99 20.98 13.67 20.80 13.31C20.63 12.95 20.52 12.56 20.50 12.16L20.50 12C20.50 11.57 20.59 11.14 20.77 10.75C20.94 10.36 21.20 10.01 21.53 9.73C21.88 9.43 22.11 9.01 22.19 8.55C22.26 8.10 22.18 7.63 21.95 7.23L21.10 5.76C20.88 5.39 20.55 5.09 20.15 4.92C19.76 4.75 19.31 4.72 18.89 4.82L18.72 4.87C18.34 5.00 17.94 5.05 17.54 5.03C17.14 5.00 16.75 4.89 16.4 4.71L16.25 4.63C15.88 4.42 15.56 4.13 15.31 3.78C15.06 3.43 14.89 3.03 14.80 2.61C14.71 2.15 14.47 1.74 14.11 1.45C13.75 1.16 13.30 .99 12.84 1ZM11.15 3H12.84C12.98 3.70 13.26 4.36 13.68 4.94C14.09 5.52 14.63 6.01 15.25 6.37C15.87 6.72 16.55 6.94 17.26 7.01C17.97 7.08 18.69 6.99 19.37 6.76L20.21 8.23C19.67 8.69 19.24 9.27 18.94 9.92C18.65 10.57 18.50 11.28 18.5 12C18.50 12.71 18.65 13.42 18.95 14.07C19.24 14.72 19.67 15.29 20.21 15.76L19.37 17.23C18.69 16.99 17.97 16.91 17.26 16.98C16.55 17.05 15.86 17.27 15.25 17.63C14.63 17.98 14.09 18.47 13.68 19.05C13.26 19.63 12.98 20.29 12.84 21H11.15C11.01 20.29 10.73 19.63 10.31 19.05C9.90 18.47 9.36 17.98 8.75 17.62C8.13 17.27 7.44 17.05 6.73 16.98C6.02 16.91 5.30 16.99 4.62 17.23L3.78 15.76C4.32 15.29 4.75 14.71 5.05 14.06C5.34 13.41 5.49 12.71 5.5 12C5.50 11.28 5.34 10.57 5.05 9.92C4.75 9.27 4.32 8.69 3.78 8.23L4.62 6.76C5.30 7.00 6.02 7.08 6.73 7.01C7.44 6.94 8.13 6.72 8.75 6.37C9.36 6.01 9.90 5.52 10.31 4.94C10.73 4.36 11.01 3.70 11.15 3ZM12.00 8C10.94 8 9.92 8.42 9.17 9.17C8.42 9.92 8.00 10.93 8.00 12C8.00 13.06 8.42 14.07 9.17 14.82C9.92 15.57 10.94 16 12.00 16C13.06 16 14.08 15.57 14.83 14.82C15.58 14.07 16.00 13.06 16.00 12C16.00 10.93 15.58 9.92 14.83 9.17C14.08 8.42 13.06 8 12.00 8ZM12.00 10H12L12.20 10.01C12.69 10.06 13.15 10.29 13.48 10.65C13.81 11.02 14.00 11.50 14 12L13.99 12.20C13.95 12.58 13.80 12.95 13.55 13.25C13.31 13.55 12.98 13.78 12.62 13.90C12.25 14.02 11.85 14.03 11.48 13.93C11.11 13.83 10.77 13.62 10.51 13.34C10.25 13.05 10.08 12.69 10.02 12.31C9.96 11.93 10.01 11.54 10.17 11.18C10.32 10.83 10.58 10.53 10.91 10.32C11.23 10.11 11.61 10.00 12 10", fill:"white"}}]}:g.dM()]});this.U=z;this.zP=K;this.Y=!0;this.listen("click",this.T);this.X(z,"onPlaybackQualityChange",this.updateBadge);this.X(z,"videodatachange",this.updateBadge);this.X(z,"webglsettingschanged",this.updateBadge);this.X(z,"appresize",this.S);Qp(z,this.element,this);this.U.createClientVe(this.element,this,28663);this.updateBadge();this.S(z.wE().getPlayerSize())}; Iro=function(z,K){z.Y=!!K;z.S(z.U.wE().getPlayerSize())}; IJ=function(z,K){B1.call(this,"Ch\u00fa th\u00edch",g.e9.uU);this.U=z;this.zP=K;this.S=!1;z.B("web_settings_menu_icons")&&(K=z.B("delhi_modern_web_player_icons")?{j:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",V:{d:"M9.65 6.00L9.5 6H2.5L2.34 6.00C1.97 6.04 1.63 6.21 1.38 6.49C1.13 6.77 1.00 7.12 1 7.5V13.5L1.00 13.65C1.04 14.02 1.21 14.36 1.49 14.61C1.77 14.86 2.12 15 2.5 15H4.5L3.81 17.75C3.77 17.89 3.77 18.03 3.79 18.17C3.82 18.31 3.87 18.45 3.95 18.56C4.03 18.68 4.14 18.78 4.26 18.85C4.38 18.92 4.51 18.97 4.66 18.99L4.78 19H8.55L8.72 18.98C8.88 18.95 9.04 18.89 9.17 18.79C9.30 18.68 9.40 18.55 9.47 18.40L9.52 18.24L10.62 13.96C10.84 13.11 10.96 12.24 10.99 11.36L11 10.98V7.5C11 7.12 10.86 6.77 10.61 6.49C10.36 6.21 10.02 6.04 9.65 6.00ZM21.65 6.00L21.5 6H14.5L14.34 6.00C13.97 6.04 13.63 6.21 13.38 6.49C13.13 6.77 13 7.12 13 7.5V13.5L13.00 13.65C13.04 14.02 13.21 14.36 13.49 14.61C13.77 14.86 14.12 15 14.5 15H16.5L15.81 17.75C15.77 17.89 15.77 18.03 15.79 18.17C15.82 18.31 15.87 18.44 15.95 18.56C16.03 18.68 16.14 18.78 16.26 18.85C16.38 18.92 16.51 18.97 16.66 18.99L16.78 19H20.55L20.72 18.98C20.88 18.95 21.04 18.89 21.17 18.79C21.30 18.68 21.40 18.55 21.47 18.40L21.52 18.24L22.62 13.96C22.84 13.11 22.96 12.24 22.99 11.36L23 10.98V7.5C23 7.12 22.86 6.77 22.61 6.49C22.36 6.21 22.02 6.04 21.65 6.00ZM3 13V8H9V10.98C9.00 11.71 8.91 12.44 8.76 13.16L8.68 13.47L7.78 17H6.06L6.44 15.48L7.06 13H3ZM15 13V8H21V10.98C21 11.71 20.91 12.44 20.76 13.16L20.68 13.47L19.78 17H18.06L18.44 15.48L19.06 13H15Z", fill:"white"}}]}:{j:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",V:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7 M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7 M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z", fill:"white"}}]},this.setIcon(K));this.X(z,"videodatachange",this.Dq);this.X(z,"onApiChange",this.Dq);this.subscribe("select",this.onSelect,this);this.Dq()}; GB=function(z,K){g.iP.call(this,"B\u1ea3n \u00e2m thanh",g.e9.AUDIO,z,K);this.U=z;this.tracks={};g.ey(this.element,"ytp-audio-menu-item");this.countLabel=new g.F({j:"div",L:[{j:"span",qc:"B\u1ea3n \u00e2m thanh"},{j:"span",K:"ytp-menuitem-label-count",qc:"{{content}}"}]});z.B("web_settings_menu_icons")&&(K=z.B("delhi_modern_web_player_icons")?{j:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",V:{d:"M19.4 .2C19.29 .27 19.20 .37 19.13 .49C19.07 .60 19.02 .72 19.01 .85C18.99 .98 18.99 1.12 19.03 1.24C19.06 1.37 19.12 1.49 19.2 1.6L20.8 .4C20.64 .18 20.40 .04 20.14 .01C19.87 -0.02 19.61 .04 19.4 .2ZM20.8 .4L20 1L19.2 1.59C20.37 3.16 21.00 5.06 21.00 7.01C20.99 8.97 20.35 10.87 19.17 12.42C19.01 12.64 18.94 12.90 18.98 13.16C19.02 13.43 19.16 13.66 19.37 13.83C19.58 13.99 19.84 14.05 20.11 14.02C20.37 13.98 20.61 13.84 20.77 13.63C22.21 11.73 22.99 9.41 23 7.02C23.00 4.63 22.23 2.31 20.8 .4ZM10 2C8.67 2 7.40 2.52 6.46 3.46C5.52 4.40 5 5.67 5 7C5 8.32 5.52 9.59 6.46 10.53C7.40 11.47 8.67 12 10 12C11.32 12 12.59 11.47 13.53 10.53C14.47 9.59 15 8.32 15 7C15 5.67 14.47 4.40 13.53 3.46C12.59 2.52 11.32 2 10 2ZM16.17 2.29C15.97 2.48 15.86 2.73 15.86 2.99C15.85 3.26 15.95 3.51 16.14 3.71C16.98 4.58 17.44 5.68 17.49 6.80L17.5 7.02C17.49 8.22 17.01 9.40 16.10 10.32C15.92 10.51 15.83 10.77 15.83 11.03C15.84 11.29 15.95 11.53 16.13 11.71C16.32 11.90 16.57 12.00 16.83 12.00C17.09 12.00 17.34 11.90 17.53 11.72C18.78 10.44 19.49 8.77 19.5 7.03L19.49 6.71C19.42 5.09 18.74 3.53 17.58 2.32C17.49 2.23 17.38 2.15 17.26 2.10C17.14 2.05 17.01 2.02 16.88 2.01C16.75 2.01 16.62 2.03 16.49 2.08C16.37 2.13 16.26 2.20 16.17 2.29ZM10 4C10.39 4 10.78 4.07 11.14 4.22C11.51 4.37 11.84 4.60 12.12 4.87C12.39 5.15 12.62 5.48 12.77 5.85C12.92 6.21 13 6.60 13 7C13 7.39 12.92 7.78 12.77 8.14C12.62 8.51 12.39 8.84 12.12 9.12C11.84 9.39 11.51 9.62 11.14 9.77C10.78 9.92 10.39 10 10 10C9.20 10 8.44 9.68 7.87 9.12C7.31 8.55 7 7.79 7 7C7 6.20 7.31 5.44 7.87 4.87C8.44 4.31 9.20 4 10 4ZM10.39 13.01L10 13C8.01 12.99 6.10 13.73 4.63 15.06L4.34 15.34C3.60 16.08 3.01 16.96 2.60 17.93C2.20 18.90 1.99 19.94 2 21C2 21.26 2.10 21.51 2.29 21.70C2.48 21.89 2.73 22 3 22C3.26 22 3.51 21.89 3.70 21.70C3.89 21.51 4 21.26 4 21C4.00 19.40 4.63 17.88 5.75 16.75L5.97 16.55C7.07 15.55 8.51 15 10 15L10.29 15.00C11.78 15.08 13.18 15.70 14.24 16.75L14.44 16.97C15.44 18.07 16 19.51 16 21C16 21.26 16.10 21.51 16.29 21.70C16.48 21.89 16.73 22 17 22C17.26 22 17.51 21.89 17.70 21.70C17.89 21.51 18 21.26 18 21C18.00 19.01 17.26 17.10 15.93 15.63L15.65 15.34C14.25 13.93 12.37 13.10 10.39 13.01Z", fill:"white"}}]}:lsW(),this.setIcon(K));g.d(this,this.countLabel);g.Zo(this,this.countLabel);this.X(z,"videodatachange",this.Dq);this.X(z,"onPlaybackAudioChange",this.Dq);this.Dq()}; bo=function(z,K){B1.call(this,"T\u1ef1 \u0111\u1ed9ng ph\u00e1t",g.e9.QK);this.U=z;this.zP=K;this.S=!1;this.T=[];this.X(z,"presentingplayerstatechange",this.Y);this.subscribe("select",this.onSelect,this);z.createClientVe(this.element,this,113682);this.Y()}; GKW=function(z,K){g.oN.call(this,g.Cq({"aria-haspopup":"false"}),0,"Tu\u1ef3 ch\u1ecdn kh\u00e1c");this.U=z;this.zP=K;this.X(this.element,"click",this.onClick);this.zP.md(this)}; bkd=function(z,K){var f;g.$t(z.Z())&&(f={j:"div",K:"ytp-panel-footer-content",L:[{j:"span",qc:"\u0110i\u1ec1u ch\u1ec9nh ch\u1ea5t l\u01b0\u1ee3ng c\u1ee7a t\u1ec7p t\u1ea3i xu\u1ed1ng trong ph\u1ea7n "},{j:"a",K:"ytp-panel-footer-content-link",qc:"C\u00e0i \u0111\u1eb7t",V:{href:"/account_downloads"}}]});g.iP.call(this,"Ch\u1ea5t l\u01b0\u1ee3ng",g.e9.Xd,z,K,void 0,void 0,f);this.U=z;this.nH={};this.N={};this.J={};this.Hx=new Set;this.S=this.W=!1;this.G="unknown";this.Y1="";this.l_=new g.Un;g.d(this, this.l_);this.W=this.U.B("web_player_use_new_api_for_quality_pullback");this.S=this.U.B("web_player_enable_premium_hbr_playback_cap");z.B("web_settings_menu_icons")&&(K=z.B("delhi_modern_web_player_icons")?{j:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",V:{d:"M9 3C8.11 2.99 7.25 3.29 6.54 3.83C5.84 4.38 5.34 5.14 5.12 6H3C2.73 6 2.48 6.10 2.29 6.29C2.10 6.48 2 6.73 2 7C2 7.26 2.10 7.51 2.29 7.70C2.48 7.89 2.73 8 3 8H5.12C5.34 8.85 5.84 9.61 6.55 10.16C7.25 10.70 8.11 10.99 9 10.99C9.88 10.99 10.74 10.70 11.44 10.16C12.15 9.61 12.65 8.85 12.87 8H21C21.26 8 21.51 7.89 21.70 7.70C21.89 7.51 22 7.26 22 7C22 6.73 21.89 6.48 21.70 6.29C21.51 6.10 21.26 6 21 6H12.87C12.65 5.14 12.15 4.38 11.45 3.83C10.74 3.29 9.88 2.99 9 3ZM9 5C9.53 5 10.03 5.21 10.41 5.58C10.78 5.96 11 6.46 11 7C11 7.53 10.78 8.03 10.41 8.41C10.03 8.78 9.53 9 9 9C8.46 9 7.96 8.78 7.58 8.41C7.21 8.03 7 7.53 7 7C7 6.46 7.21 5.96 7.58 5.58C7.96 5.21 8.46 5 9 5ZM15 13C14.11 12.99 13.25 13.29 12.54 13.83C11.84 14.38 11.34 15.14 11.12 16H3C2.73 16 2.48 16.10 2.29 16.29C2.10 16.48 2 16.73 2 17C2 17.26 2.10 17.51 2.29 17.70C2.48 17.89 2.73 18 3 18H11.12C11.34 18.85 11.84 19.61 12.55 20.16C13.25 20.70 14.11 20.99 15 20.99C15.88 20.99 16.74 20.70 17.44 20.16C18.15 19.61 18.65 18.85 18.87 18H21C21.26 18 21.51 17.89 21.70 17.70C21.89 17.51 22 17.26 22 17C22 16.73 21.89 16.48 21.70 16.29C21.51 16.10 21.26 16 21 16H18.87C18.65 15.14 18.15 14.38 17.45 13.83C16.74 13.29 15.88 12.99 15 13ZM15 15C15.53 15 16.03 15.21 16.41 15.58C16.78 15.96 17 16.46 17 17C17 17.53 16.78 18.03 16.41 18.41C16.03 18.78 15.53 19 15 19C14.46 19 13.96 18.78 13.58 18.41C13.21 18.03 13 17.53 13 17C13 16.46 13.21 15.96 13.58 15.58C13.96 15.21 14.46 15 15 15Z", fill:"white"}}]}:{j:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",V:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]},this.setIcon(K));g.ey(this.Y.element,"ytp-quality-menu");this.X(z,"videodatachange",this.Rz);this.X(z,"videoplayerreset",this.Rz);this.X(z,"onPlaybackQualityChange",this.Ov);this.Rz();z.createClientVe(this.element,this,137721)}; whq=function(z,K,f){var M=z.nH[K],p=g.rI[K];return esI(z,M?M.qualityLabel:p?p+"p":"T\u01b0\u0323 \u0111\u00f4\u0323ng",K,f)}; DO8=function(z,K,f,M,p){var t=(K=z.S?z.J[K]:z.N[K])&&K.quality,B=K&&K.qualityLabel;B=B?B:"T\u01b0\u0323 \u0111\u00f4\u0323ng";M&&(B="("+B);z=esI(z,B,t||"",p);M&&z.L.push(")");(M=(M=K&&K.paygatedQualityDetails)&&M.paygatedIndicatorText)&&f&&z.L.push({j:"div",K:"ytp-premium-label",qc:M});return z}; esI=function(z,K,f,M){K={j:"span",Wx:M,L:[K]};var p;M="ytp-swatch-color";if(z.W||z.S)M="ytp-swatch-color-white";f==="highres"?p="8K":f==="hd2880"?p="5K":f==="hd2160"?p="4K":f.indexOf("hd")===0&&f!=="hd720"&&(p="HD");p&&(K.L.push(" "),K.L.push({j:"sup",K:M,qc:p}));return K}; e0=function(z){Js.call(this,z.getAvailablePlaybackRates()[0],z.getAvailablePlaybackRates()[z.getAvailablePlaybackRates().length-1],.05,z.getPlaybackRate(),{j:"div",K:"ytp-speedslider-indicator-container",L:[{j:"div",K:"ytp-speedslider-badge"},{j:"p",K:"ytp-speedslider-text"}]});this.U=z;this.D=h$(this.N,50,this);g.ey(this.Y,"ytp-speedslider");this.G=this.dE("ytp-speedslider-text");this.l_=this.dE("ytp-speedslider-badge");y9W(this);this.X(this.Y,"change",this.Y1)}; y9W=function(z){z.G.textContent=z.S.toFixed(2)+"x";z.l_.classList.toggle("ytp-speedslider-premium-badge",z.S>2&&z.U.B("enable_web_premium_varispeed"))}; wR=function(z,K,f,M,p,t,B){g.F.call(this,{j:"div",K:"ytp-slider-section",V:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},L:[{j:"div",K:"ytp-slider",L:[{j:"div",K:"ytp-slider-handle"}]}]});this.D=z;this.N=K;this.Y=f;this.T=M;this.Y1=p;this.eV=t;this.range=this.T-this.Y;this.Bx=this.dE("ytp-slider-section");this.J=this.dE("ytp-slider");this.l_=this.dE("ytp-slider-handle");this.G=new g.sR(this.J, !0);this.S=B?B:f;g.d(this,this.G);this.G.subscribe("dragmove",this.nX,this);this.X(this.element,"keydown",this.pX);this.X(this.element,"wheel",this.zv);this.init()}; DG=function(z){wR.call(this,.05,.05,z.getAvailablePlaybackRates()[0],z.getAvailablePlaybackRates()[z.getAvailablePlaybackRates().length-1],150,20,z.getPlaybackRate());this.U=z;this.W=g.zi("P");this.Hx=h$(this.nH,50,this);g.ey(this.J,"ytp-speedslider");g.ey(this.W,"ytp-speedslider-text");z=this.W;var K=this.J;K.parentNode&&K.parentNode.insertBefore(z,K.nextSibling);kK8(this);this.X(this.U,"onPlaybackRateChange",this.updateValues)}; kK8=function(z){z.W.textContent=hsu(z,z.S)+"x"}; hsu=function(z,K){z=Number(g.qt(K,z.Y,z.T).toFixed(2));K=Math.floor((z+.001)*100%5+2E-15);var f=z;K!==0&&(f=z-K*.01);return Number(f.toFixed(2))}; ar8=function(z){g.RT.call(this,{j:"div",K:"ytp-speedslider-component"});z.B("web_settings_use_input_slider")?this.S=new e0(z):this.S=new DG(z);g.d(this,this.S);this.element.appendChild(this.S.element)}; Rs8=function(z){var K=new ar8(z);P8.call(this,z,K,"T\u00f9y ch\u1ec9nh");g.d(this,K)}; SCq=function(z,K){var f=new Rs8(z);g.iP.call(this,"T\u1ed1c \u0111\u1ed9 ph\u00e1t",g.e9.gy,z,K,yC(z)?void 0:"T\u00f9y ch\u1ec9nh",yC(z)?void 0:function(){g.mY(K,f)}); var M=this;this.J=!1;g.d(this,f);this.G=new e0(z);g.d(this,this.G);if(z.B("web_settings_menu_icons")){var p=z.B("delhi_modern_web_player_icons")?{j:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",V:{d:"M9.80 1.22C8.59 1.46 7.44 1.91 6.38 2.54L5.93 2.82L5.85 2.88C5.66 3.04 5.53 3.26 5.49 3.51C5.45 3.75 5.51 4.00 5.65 4.21C5.78 4.41 5.99 4.56 6.23 4.62C6.47 4.69 6.72 4.66 6.94 4.54L7.03 4.49L7.40 4.26C8.27 3.74 9.21 3.38 10.20 3.18C10.46 3.12 10.69 2.97 10.84 2.75C10.98 2.53 11.04 2.26 10.98 2.00C10.93 1.74 10.77 1.51 10.55 1.36C10.33 1.22 10.06 1.16 9.80 1.22M13.02 2.00C12.99 2.13 12.99 2.26 13.02 2.39C13.04 2.52 13.09 2.64 13.16 2.75C13.24 2.86 13.33 2.95 13.44 3.03C13.55 3.10 13.67 3.15 13.80 3.18L14.20 1.22C14.07 1.19 13.94 1.19 13.81 1.22C13.68 1.24 13.56 1.29 13.45 1.36C13.34 1.44 13.24 1.53 13.17 1.64C13.09 1.75 13.04 1.87 13.02 2.00ZM14.20 1.22L14.00 2.20L13.80 3.18C15.77 3.58 17.54 4.63 18.85 6.15C20.15 7.68 20.90 9.60 20.99 11.61L21.00 12.00C21.00 14.07 20.28 16.08 18.96 17.69C17.65 19.30 15.82 20.40 13.79 20.82L13.99 21.8L14.19 22.78C16.59 22.29 18.77 21.01 20.36 19.14C21.96 17.27 22.88 14.93 22.99 12.47L23.00 12.00C23.00 9.46 22.12 7.00 20.52 5.04C18.91 3.08 16.68 1.73 14.20 1.22ZM2.88 5.85L2.82 5.93L2.54 6.38C1.91 7.44 1.46 8.59 1.22 9.80C1.19 9.93 1.19 10.06 1.21 10.19C1.24 10.32 1.29 10.44 1.36 10.55C1.51 10.77 1.74 10.93 2 10.98C2.25 11.04 2.53 10.98 2.75 10.84C2.97 10.69 3.12 10.46 3.18 10.20C3.38 9.21 3.74 8.27 4.26 7.40L4.49 7.03L4.54 6.95C4.65 6.73 4.68 6.47 4.62 6.23C4.56 5.99 4.41 5.78 4.20 5.65C4.00 5.51 3.75 5.46 3.50 5.49C3.26 5.53 3.03 5.66 2.88 5.85ZM17 12.00L9 7.2V16.8L17 12.00ZM2 13.01C1.87 13.04 1.74 13.09 1.64 13.16C1.53 13.23 1.43 13.33 1.36 13.44C1.29 13.55 1.24 13.67 1.21 13.80C1.19 13.93 1.19 14.06 1.22 14.19C1.46 15.40 1.91 16.55 2.54 17.61L2.82 18.06L2.88 18.14C3.03 18.33 3.26 18.46 3.50 18.50C3.75 18.53 4.00 18.48 4.20 18.34C4.41 18.21 4.56 18.00 4.62 17.76C4.68 17.52 4.65 17.27 4.54 17.05L4.49 16.96L4.26 16.59C3.74 15.72 3.38 14.78 3.18 13.79C3.15 13.66 3.10 13.54 3.02 13.43C2.95 13.32 2.86 13.23 2.75 13.15C2.64 13.08 2.51 13.03 2.39 13.01C2.26 12.98 2.12 12.98 2 13.01ZM5.65 19.79C5.51 19.99 5.46 20.24 5.49 20.49C5.53 20.73 5.66 20.95 5.85 21.11L5.93 21.17L6.38 21.45C7.44 22.08 8.59 22.53 9.80 22.77C10.06 22.83 10.33 22.77 10.55 22.63C10.77 22.48 10.93 22.25 10.98 21.99C11.03 21.73 10.98 21.46 10.84 21.24C10.69 21.02 10.46 20.87 10.20 20.81C9.21 20.61 8.27 20.25 7.40 19.73L7.03 19.50L6.94 19.45C6.72 19.34 6.47 19.31 6.23 19.37C5.99 19.43 5.78 19.58 5.65 19.79ZM14.19 22.78L13.79 20.82C13.66 20.84 13.54 20.89 13.43 20.97C13.32 21.04 13.23 21.13 13.15 21.24C13.08 21.35 13.03 21.48 13.01 21.60C12.98 21.73 12.98 21.87 13.01 22C13.04 22.12 13.09 22.25 13.16 22.35C13.23 22.46 13.33 22.56 13.44 22.63C13.55 22.70 13.67 22.75 13.80 22.78C13.93 22.80 14.06 22.80 14.19 22.78Z", fill:"white"}}]}:{j:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",V:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", fill:"white"}}]};this.setIcon(p)}this.U=z;this.J=!1;this.Y1=null;yC(z)?(this.S=g.Pt("T\u00f9y ch\u1ec9nh ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.U.getPlaybackRate().toString()}),this.W=this.U.getPlaybackRate()):this.W=this.S=null;this.N=this.U.getAvailablePlaybackRates();this.X(z,"presentingplayerstatechange",this.Dq);var t;((t=this.U.getVideoData())==null?0:t.Fr())&&this.X(z,"serverstitchedvideochange",this.Dq);this.X(this.G.Y,"change",function(){M.J=!0;M.Dq()}); this.Dq()}; uwp=function(z,K){var f=k2(K);z.S&&(z.J||K===z.W)?(z.bI(z.S),z.s0(K.toString())):z.bI(f)}; E1I=function(z){z.Ym(z.N.map(k2));z.S=null;z.W=null;var K=z.U.getPlaybackRate();yC(z.U)&&LBq(z,K);!z.N.includes(K)||z.J?z.bI(z.S):z.bI(k2(K))}; LBq=function(z,K){z.W=K;z.S=g.Pt("T\u00f9y ch\u1ec9nh ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:K.toString()});K=z.N.map(k2);K.unshift(z.S);z.Ym(K)}; k2=function(z){return z.toString()}; yC=function(z){return z.B("web_settings_menu_surface_custom_playback")}; PtS=function(z){return z.B("web_settings_menu_surface_custom_playback")&&z.B("web_settings_use_input_slider")}; QHg=function(z,K,f,M){var p=new g.H8(K,void 0,"Ghi \u0111\u00e8 video");g.iP.call(this,M.text||"",z,K,f,"Ghi \u0111\u00e8 video",function(){g.mY(f,p)}); var t=this;g.ey(this.element,"ytp-subtitles-options-menu-item");this.setting=M.option.toString();z=M.options;this.settings=g.s9(z,this.Qy,this);this.W=p;g.d(this,this.W);K=new g.oN({j:"div",K:"ytp-menuitemtitle",qc:"Cho ph\u00e9p ki\u1ec3u ph\u1ee5 \u0111\u1ec1 kh\u00e1c n\u1ebfu theo ch\u1ec9 \u0111\u1ecbnh c\u1ee7a video."},0);g.d(this,K);this.W.md(K,!0);this.J=new g.oN({j:"div",K:"ytp-menuitem",V:{role:"menuitemradio",tabindex:"0"},L:[{j:"div",K:"ytp-menuitem-label",qc:"B\u1eadt"}]},-1);g.d(this, this.J);this.W.md(this.J,!0);this.X(this.J.element,"click",function(){Hkv(t,!0)}); this.S=new g.oN({j:"div",K:"ytp-menuitem",V:{role:"menuitemradio",tabindex:"0"},L:[{j:"div",K:"ytp-menuitem-label",qc:"T\u1eaft"}]},-2);g.d(this,this.S);this.W.md(this.S,!0);this.X(this.S.element,"click",function(){Hkv(t,!1)}); this.Ym(g.UZ(z,this.Qy))}; Hkv=function(z,K){z.publish("settingChange",z.setting+"Override",!K);z.zP.wS()}; hz=function(z,K){g.H8.call(this,z,void 0,"T\u00f9y ch\u1ecdn");var f=this;this.aK={};for(var M=0;M=0);if(!(K<0||K===z.J)){z.J=K;K=243*z.scale;var f=141*z.scale,M=lIo(z.Y,z.J,K);rN8(z.bg,M,K,f,!0);z.Y1.start()}}; f78=function(z){var K=z.S;z.type===3&&z.l_.stop();z.api.removeEventListener("appresize",z.N);z.G||K.setAttribute("title",z.T);z.T="";z.S=null;z.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});z.wrapper.style.width=""}; pHa=function(z){g.F.call(this,{j:"button",Wx:["ytp-watch-later-button","ytp-button"],V:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.Jw(z.Z()))},L:[{j:"div",K:"ytp-watch-later-icon",qc:"{{icon}}"},{j:"div",K:"ytp-watch-later-title",qc:"Xem sau"}]});this.U=z;this.icon=null;this.visible=this.isRequestPending=this.S=!1;v$g(z);z.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.X(z,"videoplayerreset",this.onReset);this.X(z,"appresize", this.yu);this.X(z,"videodatachange",this.yu);this.X(z,"presentingplayerstatechange",this.yu);this.yu();z=this.U.Z();var K=g.AV("yt-player-watch-later-pending");z.J&&K?(ozp(),MBu(this)):this.Dq(2);g.k4(this.element,"ytp-show-watch-later-title",g.Jw(z));Qp(this.U,this.element,this)}; tBa=function(z){var K=z.U.getPlayerSize(),f=z.U.Z(),M=z.U.getVideoData(),p=g.Jw(f)&&g.WD(z.U)&&g.Z(z.U.getPlayerStateObject(),128),t=f.T;return f.b3&&K.width>=240&&!M.isAd()&&M.b3&&!p&&!g.zG(M)&&!z.U.isEmbedsShortsMode()&&!t}; BuI=function(z,K){BL5(g.CO(z.U.Z()),"wl_button",function(){ozp({videoId:K});window.location.reload()})}; MBu=function(z){if(!z.isRequestPending){z.isRequestPending=!0;z.Dq(3);var K=z.U.getVideoData();K=z.S?K.removeFromWatchLaterCommand:K.addToWatchLaterCommand;var f=z.U.Gm(),M=z.S?function(){z.S=!1;z.isRequestPending=!1;z.Dq(2);z.U.Z().D&&z.U.LH("WATCH_LATER_VIDEO_REMOVED")}:function(){z.S=!0; z.isRequestPending=!1;z.Dq(1);z.U.Z().Y&&z.U.dW(z.element);z.U.Z().D&&z.U.LH("WATCH_LATER_VIDEO_ADDED")}; KI(f,K).then(M,function(){z.isRequestPending=!1;z.Dq(4,"\u0110\u00e3 x\u1ea3y ra l\u1ed7i. Vui l\u00f2ng th\u1eed l\u1ea1i sau.");z.U.Z().D&&z.U.LH("WATCH_LATER_ERROR","\u0110\u00e3 x\u1ea3y ra l\u1ed7i. Vui l\u00f2ng th\u1eed l\u1ea1i sau.")})}}; Nuv=function(z,K){if(K!==z.icon){switch(K){case 3:var f=GD();break;case 1:f=PW();break;case 2:f={j:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",JB:!0,K:"ytp-svg-fill",V:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:f={j:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path", JB:!0,V:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}z.updateValue("icon",f);z.icon=K}}; g.nY=function(){g.r1.apply(this,arguments);this.O6=(this.fD=g.Jw(this.api.Z()))&&(this.api.Z().Y||tV()||Mm());this.XW=48;this.DN=69;this.N$=this.I1=null;this.AF=[];this.ZJ=this.eY=this.OF=this.Tb=this.Ka=null;this.F5=[];this.Qs=this.contextMenu=this.fz=this.overflowButton=this.ET=this.T8=this.searchButton=this.copyLinkButton=this.shareButton=this.I3=this.SF=this.title=this.channelAvatar=this.AQ=this.tooltip=null;this.xN=!1;this.vR=this.fq=this.WF=this.m_=null;this.gg=this.iM=this.LV=!1}; vup=function(z){var K=z.api.Z(),f=g.Z(z.api.getPlayerStateObject(),128);return K.J&&f&&!z.api.isFullscreen()}; I7S=function(z){if(z.wI()&&!z.api.isEmbedsShortsMode()&&z.ET){var K=z.api.B("web_player_hide_overflow_button_if_empty_menu");!z.I3||K&&!tBa(z.I3)||vdo(z.ET,z.I3);!z.shareButton||K&&!Qbu(z.shareButton)||vdo(z.ET,z.shareButton);!z.copyLinkButton||K&&!LP5(z.copyLinkButton)||vdo(z.ET,z.copyLinkButton)}else{K=z.api.Z().getWebPlayerContextConfig();if(z.ET){for(var f=z.ET,M=g.a(f.actionButtons),p=M.next();!p.done;p=M.next())p.value.detach();f.actionButtons=[]}z.searchButton&&!g.t$(z.SF.element,z.searchButton.element)&& z.searchButton.hL(z.SF.element);!z.I3||(K==null?0:K.hideTopWatchNextButton)||g.t$(z.SF.element,z.I3.element)||z.I3.hL(z.SF.element);!z.shareButton||(K==null?0:K.hideTopShareButton)||g.t$(z.SF.element,z.shareButton.element)||z.shareButton.hL(z.SF.element);z.copyLinkButton&&!g.t$(z.SF.element,z.copyLinkButton.element)&&z.copyLinkButton.hL(z.SF.element)}}; GYT=function(z,K,f){K=f?K.lastElementChild:K.firstElementChild;for(var M=null;K;){if(mN(K,"display")!=="none"&&K.getAttribute("aria-hidden")!=="true"){var p=void 0;K.tabIndex>=0?p=K:p=GYT(z,K,f);p&&(M?f?p.tabIndex>M.tabIndex&&(M=p):p.tabIndexM/1E3+1)return{msg:"in-the-past"};if(t.isLivePlayback&&!isFinite(M))return{msg:"live-infinite"};(M=K.qL())&&M.isView()&&(M=M.mediaElement);if(M&&M.zS().length>12&&g.EM(p))return{msg:"played-ranges"};if(!p.T)return null;if(!B)return{msg:"no-pvd-formats"};if(!p.T.S||!B.S)return{msg:"non-dash"};M=B.videoInfos[0];var v=p.T.videoInfos[0];z.Y1&&NE(t)&&(M=K.LG(), v=f.LG());if(!M||!v)return{msg:"no-video-info"};if(z.W&&(fZ(M)||fZ(v)))return{msg:"av1"};K=z.J&&t.WW()&&Tr();if(v.containerType!==M.containerType)if(K)t.Th("sgap",{ierr:"container"});else return{msg:"container"};if(z.C&&!K&&(v.Ra!==M.Ra||v.Ra===""||M.Ra===""))return{msg:"codec"};if(z.G&&v.video&&M.video&&Math.abs(v.video.width/v.video.height-M.video.width/M.video.height)>.01)return{msg:"ratio"};if(g.EM(t)&&g.EM(p))return{msg:"content-protection"};B=B.S[0];p=p.T.S[0];f=B.audio;var I=p.audio;if(f.sampleRate!== I.sampleRate&&!g.sq)if(K)t.Th("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:B.itag,cr:f.sampleRate,ni:p.itag,nr:I.sampleRate};return(f.numChannels||2)!==(I.numChannels||2)?{msg:"channel-count"}:z.D&&t.WW()&&M.video.fps!==v.video.fps?{msg:"fps"}:null}; DV8=function(z,K,f){var M=z.getVideoData(),p=K.getVideoData();if(!M.Z().supportsGaplessShorts())return{nq:"env"};if(f.N?M.NV&&!M.isAd()||p.NV&&!p.isAd():f.Y?M.NV&&!M.isAd()||p.NV:f.T?p.NV&&!p.isAd()||M.NV:M.NV||p.NV)return{nq:"autoplay"};if(M.endSeconds>0)return{nq:"endcr"};if(!M.G)return{nq:"client"};if(!z.Ao())return{nq:"no-empty"};z=wHv(f,z,K,Infinity);return z!=null?{nq:z.msg}:null}; gR=function(z){g.J.call(this);this.app=z;this.C=this.J=this.Y=this.S=null;this.T=1;this.events=new g.xI(this);this.events.X(this.app.Fc,g.DU("gaplessshortslooprange"),this.D);g.d(this,this.events)}; yF5=function(){this.S=this.G=this.T=this.Y=this.N=this.W=this.Y1=this.D=this.C=this.J=!1}; kYI=function(z){var K=new yF5;K.J=z.B("h5_gapless_support_types_diff");K.D=z.B("h5_gapless_error_on_fps_diff");K.Y1=z.B("html5_gapless_use_format_info_fix");K.W=z.B("html5_gapless_disable_on_av1")&&!z.B("html5_gapless_enable_on_av1");K.C=z.B("html5_gapless_check_codec_diff_strictly");K.N=z.B("html5_gapless_on_ad_autoplay");K.G=z.B("html5_gapless_disable_diff_aspect_radio");K.Y=z.B("html5_gapless_ad_autoplay_on_ad_to_video_only");K.S=z.B("html5_pseudogapless_shorts_seek_to_next_start");K.T=z.B("html5_gapless_ad_autoplay_on_video_to_ad_only"); return K}; g.io=function(z,K,f,M){M=M===void 0?!1:M;NB.call(this);this.mediaElement=z;this.start=K;this.end=f;this.S=M}; hC8=function(z,K,f,M,p,t){t=t===void 0?0:t;g.J.call(this);var B=this;this.policy=z;this.S=K;this.Y=f;this.G5=p;this.C=t;this.J=this.T=null;this.currentVideoDuration=this.W=-1;this.G=!1;this.OM=new BC;this.Vw=M-K.MB()*1E3;this.OM.then(void 0,function(){}); this.timeout=new g.Kl(function(){B.a5("timeout")},1E4); g.d(this,this.timeout);this.D=isFinite(M)||this.G5.Z().experiments.sf("html5_pseudogapless_shorts")&&NE(K.getVideoData());this.status={status:0,error:null}}; RCq=function(z){var K,f,M,p,t,B,v,I,G;return g.n(function(b){if(b.Y==1){if(z.CH())return b.return(Promise.reject(Error(z.status.error||"disposed")));z.timeout.start();return g.l(b,z.OM,2)}K=z.S.qL();if(K.isEnded())return z.a5("ended_in_finishTransition"),b.return(Promise.reject(Error(z.status.error||"")));if(!z.J||!Kw(z.J))return z.a5("next_mse_closed"),b.return(Promise.reject(Error(z.status.error||"")));if(z.Y.HC()!==z.J)return z.a5("next_mse_mismatch"),b.return(Promise.reject(Error(z.status.error|| "")));f=dR(z);M=f.Kc;p=f.KS;t=f.OB;z.S.dS(!1,!0);B=a7W(K,M,t,!z.Y.getVideoData().isAd());z.Y.setMediaElement(B);(v=z.S.cD())&&z.Y.PH(v.Ta,v.q5);z.D&&(z.Y.seekTo(z.Y.getCurrentTime()+.001,{Wr:!0,BN:3,v8:"gapless_pseudo"}),B.play(),cg());I=K.S3();I.cpn=z.S.getVideoData().clientPlaybackNonce;I.st=""+M;I.et=""+t;z.Y.Th("gapless",I);z.S.Th("gaplessTo",{cpn:z.Y.getVideoData().clientPlaybackNonce});G=z.S.getPlayerType()===z.Y.getPlayerType();z.S.PR(p,!0,!1,G,z.Y.getVideoData().clientPlaybackNonce);z.Y.PR(z.Y.getCurrentTime(), !0,!0,G,z.S.getVideoData().clientPlaybackNonce);g.mZ(function(){!z.Y.getVideoData().Bx&&z.Y.getPlayerState().isOrWillBePlaying()&&z.Y.bz()}); cE(z,6);z.dispose();return b.return(Promise.resolve())})}; EuW=function(z){if(z.Y.getVideoData().T){var K=z.G5.Z().B("html5_gapless_suspend_next_loader")&&z.C===1;z.Y.Kf(z.J,K,S6q(z));cE(z,3);uo5(z);var f=LJp(z);K=f.N4;f=f.MI;K.subscribe("updateend",z.Du,z);f.subscribe("updateend",z.Du,z);z.Du(K);z.Du(f)}}; uo5=function(z){z.S.unsubscribe("internalvideodatachange",z.EP,z);z.Y.unsubscribe("internalvideodatachange",z.EP,z);z.G5.Z().B("html5_gapless_use_format_info_fix")&&(z.S.unsubscribe("internalvideoformatchange",z.EP,z),z.Y.unsubscribe("internalvideoformatchange",z.EP,z));z.S.unsubscribe("mediasourceattached",z.EP,z);z.Y.unsubscribe("statechange",z.k5,z)}; a7W=function(z,K,f,M){z=z.isView()?z.mediaElement:z;return new g.io(z,K,f,M)}; cE=function(z,K){K<=z.status.status||(z.status={status:K,error:null},K===5&&z.OM.resolve())}; S6q=function(z){return z.G5.Z().B("html5_gapless_no_clear_buffer_timeline")&&z.C===1&&bv(z.S.getVideoData())}; dR=function(z){var K=z.S.qL();K=K.isView()?K.start:0;var f=z.S.getVideoData().isLivePlayback?Infinity:z.S.HW(!0);f=Math.min(z.Vw/1E3,f)+K;var M=z.D?100:0;z=f-z.Y.t$()+M;return{yN:K,Kc:z,KS:f,OB:Infinity}}; LJp=function(z){return{N4:z.T.S.oF,MI:z.T.Y.oF}}; s1=function(z){g.J.call(this);var K=this;this.app=z;this.W=this.Y=this.S=null;this.D=!1;this.T=this.J=null;this.C=kYI(this.app.Z());this.G=function(){g.mZ(function(){PXu(K)})}}; H4W=function(z,K,f,M,p){M=M===void 0?0:M;p=p===void 0?0:p;z.Ao()||Az(z);z.J=new BC;z.S=K;var t=f,B=p===0;B=B===void 0?!0:B;var v=z.app.Of(),I=v.getVideoData().isLivePlayback?Infinity:v.HW(!0)*1E3;t>I&&(t=I-200,z.D=!0);B&&v.getCurrentTime()>=t/1E3?z.G():(z.Y=v,B&&(B=t,t=z.Y,z.app.Fc.addEventListener(g.wE("vqueued"),z.G),B=isFinite(B)||B/1E3>t.getDuration()?B:0x8000000000000,z.W=new g.bS(B,0x8000000000000,{namespace:"vqueued"}),t.addCueRange(z.W)));B=M/=1E3;t=K.getVideoData().S;M&&t&&z.Y&&(v=M,I=0, K.getVideoData().isLivePlayback&&(B=Math.min(f/1E3,z.Y.HW(!0)),I=Math.max(0,B-z.Y.getCurrentTime()),v=Math.min(M,K.HW()+I)),B=Vxo(t,v)||M,B!==M&&z.S.Th("qvaln",{st:M,at:B,rm:I,ct:v}));K=B;M=z.S;M.getVideoData().Yx=!0;M.getVideoData().G=!0;M.GK(!0);t={};z.Y&&(t=z.Y.j_(),B=z.Y.getVideoData().clientPlaybackNonce,t={crt:(t*1E3).toFixed(),cpn:B});M.Th("queued",t);K!==0&&M.seekTo(K+.01,{Wr:!0,BN:3,v8:"videoqueuer_queued"});z.T=new hC8(z.C,z.app.Of(),z.S,f,z.app,p);f=z.T;f.status.status!==Infinity&&(cE(f, 1),f.S.subscribe("internalvideodatachange",f.EP,f),f.Y.subscribe("internalvideodatachange",f.EP,f),f.G5.Z().B("html5_gapless_use_format_info_fix")&&(f.S.subscribe("internalvideoformatchange",f.EP,f),f.Y.subscribe("internalvideoformatchange",f.EP,f)),f.S.subscribe("mediasourceattached",f.EP,f),f.Y.subscribe("statechange",f.k5,f),f.S.subscribe("newelementrequired",f.TC,f),f.EP());return z.J}; PXu=function(z){var K,f,M,p,t,B,v,I,G;g.n(function(b){switch(b.Y){case 1:if(z.CH()||!z.J||!z.S)return b.return();z.D&&z.app.Of().BH(!0,!1);f=z.app.Z().B("html5_force_csdai_gapful_transition")&&((K=z.app.Of())==null?void 0:K.getVideoData().isDaiEnabled());M=null;if(!z.T||f){b.jV(2);break}g.Sq(b,3);return g.l(b,RCq(z.T),5);case 5:g.Eu(b,2);break;case 3:M=p=g.QI(b);case 2:if(!z.S)return b.return();Qmp.Yu("vqsp",function(){z.app.vn(z.S)}); if(!z.S)return b.return();t=z.S.qL();z.app.Z().B("html5_gapless_seek_on_negative_time")&&t&&t.getCurrentTime()<-.01&&z.S.seekTo(0);Qmp.Yu("vqpv",function(){z.app.playVideo()}); if(M||f)z.S?(B=M?M.message:"forced",(v=z.Y)==null||v.Th("gapfulfbk",{r:B}),z.S.vJ(B)):(I=z.Y)==null||I.Th("gapsp",{});G=z.J;Az(z);G&&G.resolve();return b.return(Promise.resolve())}})}; Az=function(z,K){K=K===void 0?!1:K;if(z.Y){if(z.W){var f=z.Y;z.app.Fc.removeEventListener(g.wE("vqueued"),z.G);f.removeCueRange(z.W)}z.Y=null;z.W=null}z.T&&(z.T.status.status!==6&&(f=z.T,f.status.status!==Infinity&&f.C!==1&&f.a5("Canceled")),z.T=null);z.J=null;z.S&&!K&&z.S!==z.app.JH()&&z.S!==z.app.Of()&&z.S.dispose();z.S&&K&&z.S.P9();z.S=null;z.D=!1}; q68=function(z){var K;return((K=z.T)==null?void 0:K.currentVideoDuration)||-1}; mVS=function(z,K,f){if(z.Ao())return"qie";if(z.S==null||z.S.CH()||z.S.getVideoData()==null)return"qpd";if(K.videoId!==z.S.u3())return"vinm";if(q68(z)<=0)return"ivd";if(f!==1)return"upt";if((f=z.T)==null)z=void 0;else if(f.getStatus().status!==5)z="niss";else if(wHv(f.policy,f.S,f.Y,f.Vw)!=null)z="pge";else{K=LJp(f);z=K.N4;var M=K.MI;K=g.uY(f.G5.Z().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var p=f.W+K;f.G5.Z().experiments.sf("html5_pseudogapless_shorts")&&(p=dR(f).Kc+K);f=kr(M.NL(), p);z=kr(z.NL(),p);z=!(K>0)||f&&z?null:"neb"}return z!=null?z:null}; l7a=function(){g.Dv.call(this);var z=this;this.fullscreen=0;this.J=this.T=this.pictureInPicture=this.S=this.Y=this.inline=!1;this.C=function(){z.oX()}; IL8(this.C);this.W=this.getVisibilityState(this.Lz(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Uo(),this.Sy(),this.zn(),this.mY())}; elI=function(z){return!(z.isMinimized()||z.isInline()||z.isBackground()||z.Uo()||z.Sy()||z.zn()||z.mY())}; g.j0=function(z){g.J.call(this);this.SV=z;this.videoData=this.playerState=null}; x2=function(z,K){g.J.call(this);var f=this;this.data=[];this.T=z||NaN;this.Y=K||null;this.S=new g.Kl(function(){Y2(f);Xz(f)}); g.d(this,this.S)}; GIv=function(z){Y2(z);return z.data.map(function(K){return K.value})}; Y2=function(z){var K=(0,g.X)();z.data.forEach(function(f){f.expire0));(M=g.uY(K, "html5_cobalt_audio_write_ahead_ms"))&&GS("Media.AudioWriteDurationLocal",M);(M=f("html5_cobalt_enable_decode_to_texture"))&&GS("Media.PlayerConfiguration.DecodeToTexturePreferred",M?1:0);z.i8()&&BvW();Error.stackTraceLimit=50;var p=g.uY(K,"html5_idle_rate_limit_ms");p&&Object.defineProperty(window,"requestIdleCallback",{value:function(t){return window.setTimeout(t,p)}}); UBo(z.C);a1q(f("html5_use_ump_request_slicer"));r35(f("html5_record_now"));f("html5_disable_streaming_xhr")&&(BZ=!1);f("html5_byterate_constraints")&&(yO=!0);f("html5_use_non_active_broadcast_for_post_live")&&(fx=!0);f("html5_enable_encrypted_av1")&&($r=!0);F0p(g.uY(z.experiments,"html5_sticky_duration_mos"));z.B("html5_estimate_live_partial_slice_duration")&&(Dh8=!0)}; cF5=function(z,K){return z.slice(K.length).replace(/_[a-z]/g,function(f){return f.toUpperCase().replace("_","")}).replace("Dot",".")}; sm8=function(z){for(var K={},f=g.a(Object.keys(z.experiments.flags)),M=f.next();!M.done;M=f.next())if(M=M.value,M.startsWith("cobalt_h5vcc"))if(M.startsWith("cobalt_h5vcc_string")){var p=cF5(M,"cobalt_h5vcc_string");M=Nw(z.experiments,M);p&&M&&(K[p]=GS(p,M))}else M.startsWith("cobalt_h5vcc")&&(p=cF5(M,"cobalt_h5vcc"),M=g.uY(z.experiments,M),p&&M&&(K[p]=GS(p,M)));return K}; ZG=function(z,K,f,M,p){p=p===void 0?[]:p;g.J.call(this);this.SV=z;this.D2=K;this.segments=p;this.S=new Map}; AF5=function(z,K,f,M){M=M===void 0?0:M;g.Xm.call(this,f.H3());this.Z3=z;this.videoData=K;this.duration=M;this.endTime=this.startTime=0}; jmg=function(z){this.end=this.start=z}; g.oJ=function(){this.S=new Map;this.T=new Map;this.Y=new Map}; Y6S=function(){this.Y=[];this.S=new Map;this.J=new Map;this.T=new Map}; g.CY=function(z,K,f,M){g.J.call(this);var p=this;this.api=z;this.SV=K;this.playback=f;this.app=M;this.Hx=new g.oJ;this.T=new Map;this.C=[];this.S=new Y6S;this.oa=new Map;this.Px=null;this.LI=NaN;this.TP=this.W1=null;this.nI=new g.Kl(function(){XHu(p,p.LI,p.W1||void 0)}); this.events=new g.xI(this);this.rE=15E3;this.l_=new g.Kl(function(){p.nH=!0;p.playback.O$(p.rE);xVd(p);if(p.playback.getVideoData().Fr()){var t;p.Nc({togab:(t=p.Y1)==null?void 0:t.identifier})}p.CO(!1)},this.rE); this.nH=!1;this.G=new Map;this.b_=[];this.Y1=null;this.SE=new Set;this.eV=[];this.Ft=[];this.E0=[];this.ra=[];this.Y=void 0;this.IP=0;this.vx=!0;this.W=!1;this.Bx=[];this.QE=new Set;this.D3=new Set;this.RF=new Set;this.cV=0;this.Xc=new Set;this.O3=0;this.d_=this.Z2=!1;this.Hh=this.J="";this.D=null;this.logger=new g.Np("dai");this.dO={WAh:function(){return p.T}, ZNV:function(){return p.C}, BuE:function(){return p.S.S}, PYV:function(){return p.J}, qMd:function(t){p.onCueRangeEnter(p.T.get(t))}, jPa:function(t){p.onCueRangeExit(p.T.get(t))}, sDL:function(t,B){p.T.set(t,B)}, rAh:function(t){p.Hh=t}, pJ:function(){return p.pJ()}, C4f:function(t){return p.S.T.get(t)}, GYq:function(){return p.D}, I71:function(){return p.S.Y}}; this.playback.getPlayerType();this.playback.xK(this);this.VE=this.SV.i8();g.d(this,this.nI);g.d(this,this.events);g.d(this,this.l_);this.events.X(this.api,g.wE("serverstitchedcuerange"),this.onCueRangeEnter);this.events.X(this.api,g.DU("serverstitchedcuerange"),this.onCueRangeExit);nuT(this.app.e_(),this.playback,!1)}; ouS=function(z,K,f,M,p,t,B,v,I){if(z.SV.B("html5_ignore_ads_after_noadresponse")&&I&&z.SE.has(I))TB(z,{reason:"addafternoad",cueid:I});else{I=FJu(z,t,t+p);z.nH&&z.Nc({adaftto:1});f||z.Nc({missadcon:1,enter:t,len:p,aid:v});z.N&&!z.N.g0&&(z.N.g0=v);z.d_&&z.Nc({adfbk:1,enter:t,len:p,aid:v});var G=z.playback;B=B===void 0?t+p:B;t===B&&!p&&z.SV.B("html5_allow_zero_duration_ads_on_timeline")&&z.Nc({attl0d:1});t>B&&TB(z,{reason:"enterTime_greater_than_return",D2:t,TE:B});var b=G.L6()*1E3;tG&&TB(z,{reason:"parent_return_greater_than_content_duration",TE:B,IK1:G});G=null;b=g.l_(z.S.Y,{TE:t},function(e,w){return e.TE-w.TE}); b>=0&&(G=z.S.Y[b],G.TE>t&&O4v(z,K.video_id||"",t,B,G));if(I&&G)for(b=0;b.5&&z.Nc({ttdtb:1,delta:B,cpn:p.cpn,enter:K.adCpn,exit:f.adCpn,seek:M,skip:t});z.api.B("html5_ssdai_enable_media_end_cue_range")&&(!M&&!t&&f.isAd&&f.adCpn?z.api.XB(f.adCpn):(M||t)&&z.Nc({mecr:0,seek:M,skip:t}));if(K.isAd&&f.isAd){p=!!t;if(K.adCpn&&f.adCpn){var v=z.S.S.get(K.adCpn);var I=z.S.S.get(f.adCpn)}p?z.Nc({igtransskip:1,enter:K.adCpn,exit:f.adCpn,seek:M,skip:t}):$U(z,I,v,f.vj,K.vj,M,p)}else if(!K.isAd&&f.isAd){z.Hh= p.cpn;z.fd(p.cpn,p.D2/1E3);z.api.publish("serverstitchedvideochange");v=z3(z,"a2c");z.Nc(v);z.cV=0;if(v=f.Wh)z.IP=v.end,TuT(z,v.id,v.end);var G;f.adCpn&&(G=z.S.S.get(f.adCpn));G&&z.playback.vH(G,p,f.vj,K.vj,M,!!t)}else if(K.isAd&&!f.isAd){var b;K.adCpn&&(b=z.S.S.get(K.adCpn));b&&(z.IP=0,z.Hh=b.cpn,z.fd(b.cpn,b.D2/1E3),KS(z,b),G=z3(z,"c2a",b),z.Nc(G),z.cV=1,z.playback.vH(p,b,f.vj,K.vj,M,!!t))}}; My=function(z,K,f){f=f===void 0?0:f;var M=g.l_(z.S.Y,{D2:(K+f)*1E3},function(v,I){return v.D2-I.D2}); M=M<0?(M+2)*-1:M;if(M>=0)for(var p=K*1E3,t=M;t<=M+1&&t=B.D2-f*1E3&&p<=B.TE+f*1E3)return{nY:B,T0:K}}return{nY:void 0,T0:K}}; zjT=function(z,K){var f="";(K=UVv(z,K))&&(f=K.getId());return f?z.S.S.get(f):void 0}; UVv=function(z,K){if(z.Hh){var f=z.T.get(z.Hh);if(f&&f.start-200<=K&&f.end+200>=K)return f}z=g.a(z.T.values());for(f=z.next();!f.done;f=z.next())if(f=f.value,f.start<=K&&f.end>=K)return f}; XHu=function(z,K,f){var M=z.TP||z.app.Of().getPlayerState();pS(z,!0);z.playback.seekTo(K,f);z=z.app.Of();K=z.getPlayerState();M.isOrWillBePlaying()&&!K.isOrWillBePlaying()?z.playVideo():M.isPaused()&&!K.isPaused()&&z.pauseVideo()}; pS=function(z,K){z.LI=NaN;z.W1=null;z.nI.stop();z.Px&&K&&z.Px.H$();z.TP=null;z.Px=null}; $lI=function(z){var K=K===void 0?-1:K;var f=f===void 0?Infinity:f;for(var M=[],p=g.a(z.S.Y),t=p.next();!t.done;t=p.next())t=t.value,(t.D2f)&&M.push(t);z.S.Y=M;M=g.a(z.T.values());for(p=M.next();!p.done;p=M.next())p=p.value,p.start>=K&&p.end<=f&&(z.playback.removeCueRange(p),z.T.delete(p.getId()),z.Nc({rmAdCR:1}));M=My(z,K/1E3);K=M.nY;M=M.T0;if(K&&(M=M*1E3-K.D2,Kqa(z,K,M,K.D2+M),M=z.T.get(K.cpn))){p=g.a(z.C);for(t=p.next();!t.done;t=p.next())t=t.value,t.start===M.end?t.start=K.D2+K.durationMs: t.end===M.start&&(t.end=K.D2);M.start=K.D2;M.end=K.D2+K.durationMs}if(K=My(z,f/1E3).nY){var B;M="playback_timelinePlaybackId_"+K.O0+"_video_id_"+((B=K.videoData)==null?void 0:B.videoId)+"_durationMs_"+K.durationMs+"_enterTimeMs_"+K.D2+"_parentReturnTimeMs_"+K.TE;z.Bc("Invalid_clearEndTimeMs_"+f+"_that_falls_during_"+M+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; f_8=function(z){z.Hx.clearAll();z.T.clear();z.C=[];z.S.clear();z.G.clear();z.b_=[];z.Y1=null;z.SE.clear();z.eV=[];z.Ft=[];z.E0=[];z.ra=[];z.Bx=[];z.QE.clear();z.D3.clear();z.RF.clear();z.Xc.clear();z.nH=!1;z.Y=void 0;z.IP=0;z.vx=!0;z.W=!1;z.cV=0;z.O3=0;z.Z2=!1;z.d_=!1;z.J="";z.l_.isActive()&&U1(z)}; Kqa=function(z,K,f,M){K.durationMs=f;K.TE=M;(M=z.oa.get(K.cpn))?M.uy(f/1E3):z.Nc({nop_d:K.cpn})}; pVp=function(z,K,f,M,p,t){if(!z.d_)if(g.MMa(z,f))z.Nc({gdu:"undec",seg:f,itag:p});else if(K=tJ(z,K,f,M,t),!(z.playback.getVideoData().Fr()&&(K==null?0:K.q7)))return K}; tJ=function(z,K,f,M,p){var t=z.G.get(f);if(!t){if(t=tMg(z,K))return t;K=z.X3(f-1,M!=null?M:2);if(p)return z.Nc({misscue:p,sq:f,type:M,prevsstate:K==null?void 0:K.Zu,prevrecord:z.G.has(f-1)}),z.G.get(f-1);if((K==null?void 0:K.Zu)===2)return z.Nc({adnf:1,sq:f,type:M,prevrecord:z.G.has(f-1)}),z.G.get(f-1)}return t}; tMg=function(z,K){K+=z.xg();if(z.playback.getVideoData().Fr())a:{var f=1;f=f===void 0?0:f;var M=K*1E3;z=g.a(z.S.Y);for(var p=z.next();!p.done;p=z.next()){p=p.value;var t=p.TR?p.TR*1E3:p.D2;if(M>=p.D2-f*1E3&&M<=t+p.durationMs+f*1E3){M={nY:p,T0:K};break a}}M={nY:void 0,T0:K}}else M=My(z,K),((f=M)==null?0:f.nY)||(M=My(z,K,1));var B;return(B=M)==null?void 0:B.nY}; BY8=function(z,K){K=K===void 0?"":K;var f=eo(K)||void 0;if(!K||!f){var M;z.Nc({adcfg:(M=K)==null?void 0:M.length,dcfg:f==null?void 0:f.length})}return f}; NYS=function(z){if(z.Bx.length)for(var K=g.a(z.Bx),f=K.next();!f.done;f=K.next())z.onCueRangeExit(f.value);K=g.a(z.T.values());for(f=K.next();!f.done;f=K.next())z.playback.removeCueRange(f.value);K=g.a(z.C);for(f=K.next();!f.done;f=K.next())z.playback.removeCueRange(f.value);z.T.clear();z.C=[];z.Hx.clearAll();z.Y||(z.vx=!0)}; $U=function(z,K,f,M,p,t,B){if(K&&f){z.Hh=f.cpn;z.fd(f.cpn,f.D2/1E3);KS(z,f);var v=z3(z,"a2a",f);z.Nc(v);z.cV++;z.playback.vH(K,f,M||0,p||0,!!t,!!B)}else z.Nc({misspbkonadtrans:1,enter:(f==null?void 0:f.cpn)||"",exit:(K==null?void 0:K.cpn)||"",seek:t,skip:B})}; I_u=function(z,K,f,M){if(M)for(M=0;Mf){var t=p.end;p.end=K;v_T(z,f,t)}else if(p.start>=K&&p.startf)p.start=f;else if(p.end>K&&p.end<=f&&p.start=K&&p.end<=f){z.playback.removeCueRange(p);if(z.Bx.includes(p))z.onCueRangeExit(p);z.C.splice(M,1);continue}M++}else v_T(z,K,f)}; v_T=function(z,K,f){K=CXg(K,f);f=!0;g.dZ(z.C,K,function(B,v){return B.start-v.start}); for(var M=0;M0){var p=z.C[M],t=z.C[M-1];if(Math.round(t.end/1E3)>=Math.round(p.start/1E3)){t.end=p.end;p!==K?z.playback.removeCueRange(p):f=!1;z.C.splice(M,1);continue}}M++}if(f)for(z.playback.addCueRange(K),K=z.playback.Ib("serverstitchedcuerange",36E5),K=g.a(K),f=K.next();!f.done;f=K.next())z.T.delete(f.value.getId())}; BS=function(z,K,f){if(f===void 0||!f){f=g.a(z.b_);for(var M=f.next();!M.done;M=f.next()){M=M.value;if(K>=M.start&&K<=M.end)return;if(K===M.end+1){M.end+=1;return}}z.b_.push(new jmg(K))}}; g.MMa=function(z,K){z=g.a(z.b_);for(var f=z.next();!f.done;f=z.next())if(f=f.value,K>=f.start&&K<=f.end)return!0;return!1}; Ny=function(z,K,f){var M;if(M=z.playback.getVideoData().Fr()||z.SV.B("html5_ssdai_extent_last_unfinished_ad_cue_range"))M=(M=z.S.S.get(K))&&M.Eo?(z=z.S.T.get(M==null?void 0:M.Eo))&&z.slice(-1)[0].cpn===K:!1;return M&&f===2?1E3:0}; O4v=function(z,K,f,M,p){var t;K={reason:"overlapping_playbacks",x0a:K,D2:f,TE:M,p9_:p.O0,dP_:((t=p.videoData)==null?void 0:t.videoId)||"",EeL:p.durationMs,zjq:p.D2,nee:p.TE};TB(z,K)}; TB=function(z,K,f){z.playback.QC(K,f)}; Gaq=function(z,K){var f=[];z=z.S.T.get(K);if(!z)return[];z=g.a(z);for(K=z.next();!K.done;K=z.next())K=K.value,K.cpn&&f.push(K.cpn);return f}; bAv=function(z,K,f){var M=0;z=z.S.T.get(f);if(!z)return-1;z=g.a(z);for(f=z.next();!f.done;f=z.next()){if(f.value.cpn===K)return M;M++}return-1}; eju=function(z,K){var f=0;z=z.S.T.get(K);if(!z)return 0;z=g.a(z);for(K=z.next();!K.done;K=z.next())K=K.value,K.durationMs!==0&&K.TE!==K.D2&&f++;return f}; wV5=function(z,K,f){var M=!1;if(f&&(f=z.S.T.get(f))){f=g.a(f);for(var p=f.next();!p.done;p=f.next())p=p.value,p.durationMs!==0&&p.TE!==p.D2&&(p=p.cpn,K===p&&(M=!0),M&&!z.D3.has(p)&&(z.Nc({decoratedAd:p}),z.D3.add(p)))}}; xVd=function(z){z.VE&&z.Nc({adf:"0_"+((new Date).getTime()/1E3-z.O3)+"_isTimeout_"+z.nH})}; FJu=function(z,K,f){if(z.eV.length)for(var M=g.a(z.eV),p=M.next(),t={};!p.done;t={TA:void 0},p=M.next()){t.TA=p.value;p=t.TA.startSecs*1E3;var B=t.TA.mP*1E3+p;if(K>p&&Kp&&f0?z:0}else z.pJ().videoData.ra=z.playback.getCurrentTime()}; S_5=function(z,K,f,M){g.J.call(this);var p=this;this.api=z;this.SV=K;this.S=f;this.app=M;this.C=new Map;this.Y=[];this.T=this.G=null;this.Y1=NaN;this.W=this.J=this.N=null;this.D=new g.Kl(function(){Rjq(p,p.Y1,p.N||void 0)}); this.l_=[];this.nH=new g.Kl(function(){var t=p.l_.pop();if(t){var B=t.O0,v=t.playerVars;t=t.playerType;v&&(v.prefer_gapless=!0,p.api.preloadVideoByPlayerVars(v,t,NaN,"",B),p.l_.length&&g.$4(p.nH,4500))}}); this.events=new g.xI(this);this.dO={u9V:function(){return p.Y}}; this.S.getPlayerType();g.d(this,this.D);g.d(this,this.nH);g.d(this,this.events);this.events.X(this.api,g.wE("childplayback"),this.onCueRangeEnter);this.events.X(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.X(this.api,"presentingplayerstatechange",this.Lb)}; P7u=function(z,K,f,M,p,t){var B=K.cpn,v=K.docid||K.video_id||K.videoId||K.id,I=z.S;t=t===void 0?p+M:t;if(p>t)return IK(z,"enterAfterReturn enterTimeMs="+p+" is greater than parentReturnTimeMs="+t.toFixed(3),B,v),"";var G=I.L6()*1E3;if(pG)return I="returnAfterDuration parentReturnTimeMs="+t.toFixed(3)+" is greater than parentDurationMs="+G+". And timestampOffset in seconds is "+ I.MB(),IK(z,I,B,v),"";G=null;for(var b=g.a(z.Y),e=b.next();!e.done;e=b.next()){e=e.value;if(p>=e.D2&&pe.D2)return IK(z,"overlappingReturn",B,v),"";if(t===e.D2)return IK(z,"outOfOrder",B,v),"";p===e.TE&&(G=e)}B="cs_childplayback_"+uRa++;v={Wh:G3(M,!0),Vw:Infinity,target:null};var w={O0:B,playerVars:K,playerType:f,durationMs:M,D2:p,TE:t,Ec:v};z.Y=z.Y.concat(w).sort(function(R,S){return R.D2-S.D2}); G?Lqv(z,G,{Wh:G3(G.durationMs,!0),Vw:G.Ec.Vw,target:w}):(K={Wh:G3(p,!1),Vw:p,target:w},z.C.set(K.Wh,K),I.addCueRange(K.Wh));K=!0;if(z.S===z.app.Of()&&(I=I.getCurrentTime()*1E3,I>=w.D2&&IK)break;if(t>K)return{nY:M,T0:K-p};f=t-M.TE/1E3}return{nY:null,T0:K-f}}; Rjq=function(z,K,f){f=f===void 0?{}:f;var M=z.W||z.app.Of().getPlayerState();wd(z,!0);K=isFinite(K)?K:z.S.jk();var p=ml8(z,K);K=p.T0;var t=(p=p.nY)&&!bC(z,p)||!p&&z.S!==z.app.Of(),B=K*1E3;B=z.T&&z.T.start<=B&&B<=z.T.end;!t&&B||e6(z);p?E_q(z,p,K,f,M):l_5(z,K,f,M)}; l_5=function(z,K,f,M){var p=z.S;p!==z.app.Of()&&z.app.OI();p.seekTo(K,Object.assign({},{v8:"application_timelinemanager"},f));VM8(z,M)}; E_q=function(z,K,f,M,p){var t=bC(z,K);if(!t){K.playerVars.prefer_gapless=!0;z.SV.B("html5_enable_ssap_entity_id")&&(K.playerVars.cached_load=!0);var B=new g.oB(z.SV,K.playerVars);B.O0=K.O0;z.api.tV(B,K.playerType)}B=z.app.Of();t||B.addCueRange(K.Ec.Wh);B.seekTo(f,Object.assign({},{v8:"application_timelinemanager"},M));VM8(z,p)}; VM8=function(z,K){z=z.app.Of();var f=z.getPlayerState();K.isOrWillBePlaying()&&!f.isOrWillBePlaying()?z.playVideo():K.isPaused()&&!f.isPaused()&&z.pauseVideo()}; wd=function(z,K){z.Y1=NaN;z.N=null;z.D.stop();z.J&&K&&z.J.H$();z.W=null;z.J=null}; bC=function(z,K){z=z.app.Of();return!!z&&z.getVideoData().O0===K.O0}; n_I=function(z){var K=z.Y.find(function(p){return bC(z,p)}); if(K){var f=z.app.Of();e6(z);var M=new g.ex(8);K=q_S(z,K)/1E3;l_5(z,K,{},M);f.Th("forceParentTransition",{childPlayback:1});z.S.Th("forceParentTransition",{parentPlayback:1})}}; JeT=function(z,K,f){K=K===void 0?-1:K;f=f===void 0?Infinity:f;for(var M=K,p=f,t=g.a(z.C),B=t.next();!B.done;B=t.next()){var v=g.a(B.value);B=v.next().value;v=v.next().value;v.Vw>=M&&v.target&&v.target.TE<=p&&(z.S.removeCueRange(B),z.C.delete(B))}M=K;p=f;t=[];B=g.a(z.Y);for(v=B.next();!v.done;v=B.next())if(v=v.value,v.D2>=M&&v.TE<=p){var I=z;I.G===v&&e6(I);bC(I,v)&&I.app.OI()}else t.push(v);z.Y=t;M=ml8(z,K/1E3);K=M.nY;M=M.T0;K&&(M*=1E3,Wq8(z,K,M,K.TE===K.D2+K.durationMs?K.D2+M:K.TE));(K=ml8(z,f/1E3).nY)&& IK(z,"Invalid clearEndTimeMs="+f+" that falls during playback={timelinePlaybackId="+(K.O0+" video_id="+K.playerVars.video_id+" durationMs="+K.durationMs+" enterTimeMs="+K.D2+" parentReturnTimeMs="+K.TE+"}.Child playbacks can only have duration updated not their start."))}; Wq8=function(z,K,f,M){K.durationMs=f;K.TE=M;M={Wh:G3(f,!0),Vw:f,target:null};Lqv(z,K,M);bC(z,K)&&z.app.Of().getCurrentTime()*1E3>f&&(K=q_S(z,K)/1E3,f=z.app.Of().getPlayerState(),l_5(z,K,{},f))}; IK=function(z,K,f,M){z.S.Th("timelineerror",{e:K,cpn:f?f:void 0,videoId:M?M:void 0})}; iAu=function(z){z&&z!=="web"&&g_g.includes(z)}; Dg=function(){g.J.call(this);this.S=new x2(5,null);g.d(this,this.S);this.Y=new x2(15,null);g.d(this,this.Y)}; HKd=function(z,K){return K?!!z.S.get(K):!1}; dl5=function(z,K){z.dataset.version=K}; AeW=function(z){g.F.call(this,{j:"div",Wx:["html5-video-player"],V:{tabindex:z.Z().disableOrganicUi?"":"-1",id:z.webPlayerContextConfig?z.webPlayerContextConfig.rootElementId:z.config.attrs.id},L:[{j:"div",K:g.$6.VIDEO_CONTAINER,V:{"data-layer":"0"}}]});var K=this;this.app=z;this.sO=this.dE(g.$6.VIDEO_CONTAINER);this.l7=new g.Ls(0,0,0,0);this.lP=null;this.K_=new g.Ls(0,0,0,0);this.hI=this.DA=this.XT=NaN;this.PJ=this.Bu=this.RZ=this.Tl=!1;this.kN=NaN;this.EQ=!1;this.Xb=null;this.YJ=function(){K.element.focus({preventScroll:!0})}; this.qj=function(){K.app.Fc.publish("playerUnderlayVisibilityChange","visible");K.lP.classList.remove(g.$6.VIDEO_CONTAINER_TRANSITIONING);K.lP.removeEventListener(wK,K.qj);K.lP.removeEventListener("transitioncancel",K.qj)}; this.vQ=this.ED=!1;var f=this.element.addEventListener,M=this.element.removeEventListener;this.addEventListener=function(t,B,v){f.apply(K.element,[t,B,v])}; this.removeEventListener=function(t,B,v){M.apply(K.element,[t,B,v])}; var p=z.Z();p.transparentBackground&&this.sU("ytp-transparent");p.controlsType==="0"&&this.sU("ytp-hide-controls");g.ey(this.element,"ytp-exp-bottom-control-flexbox");g.ey(this.element,"ytp-modern-caption");p.B("enable_new_paid_product_placement")&&!g.MR(p)&&g.ey(this.element,"ytp-exp-ppp-update");p.B("html5_enable_ssap")&&g.ey(this.element,"ytp-ssap");g.ey(this.element,"ytp-livebadge-color");if(p.B("delhi_modern_web_player"))switch(g.ey(this.element,"ytp-delhi-modern"),p.B("delhi_modern_web_player_icons")&& g.ey(this.element,"ytp-delhi-modern-icons"),Nw(p.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.ey(this.element,"ytp-delhi-modern-with-luminosity");break;case "difference":g.ey(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.ey(this.element,"ytp-delhi-modern-with-exclusion")}dl5(this.element,ceo(z));this.bF=!1;this.Ue=new g.W9(NaN,NaN);sgu(this);this.X(z.Fc,"onMutedAutoplayChange",this.onMutedAutoplayChange)}; sgu=function(z){function K(){z.lP&&y$(z);kU(z)!==z.EQ&&z.resize()} function f(B,v){z.Up(B,v)} function M(B){B.getVideoData()&&z.updateVideoData(B.getVideoData())} function p(){z.K_=new g.Ls(0,0,0,0);z.l7=new g.Ls(0,0,0,0)} var t=z.app.Fc;t.addEventListener("initializingmode",p);t.addEventListener("videoplayerreset",M);t.addEventListener("videodatachange",f);t.addEventListener("presentingplayerstatechange",K);z.addOnDisposeCallback(function(){t.removeEventListener("initializingmode",p);t.removeEventListener("videoplayerreset",M);t.removeEventListener("videodatachange",f);t.removeEventListener("presentingplayerstatechange",K)})}; Y_a=function(z){var K=z.app.Of();if(K=K?K.getVideoData():null){if(g.Ww(K)||g.Jf(K)||g.gH(K))return 16/9;if(Bw(K)&&K.T.S)return z=K.T.videoInfos[0].video,jgg(z.width,z.height)}return(z=z.lP)?jgg(z.videoWidth,z.videoHeight):16/9}; XVT=function(z,K,f,M){var p=f,t=jgg(K.width,K.height);z.Tl?p=ft?{width:K.width,height:K.width/p,aspectRatio:p}:pp?z.width=z.height*f:fI;if(kU(z)){var G=Y_a(z);var b=isNaN(G)||g.Ux||UK&&g.PJ||I;TN&&!g.Qw(601)?G=p.aspectRatio:b=b||t.controlsType==="3";b?I?(b=t.B("place_shrunken_video_on_left_of_player")?16:z.getPlayerSize().width-K.width-16,G=Math.max((z.getPlayerSize().height-K.height)/2,0),b=new g.Ls(b,G,K.width, K.height),z.lP.style.setProperty("border-radius","12px")):b=new g.Ls(0,0,K.width,K.height):(f=p.aspectRatio/G,b=new g.Ls((K.width-p.width/f)/2,(K.height-p.height)/2,p.width/f,p.height),f===1&&g.PJ&&(G=b.width-K.height*G,G>0&&(b.width+=G,b.height+=G)));g.k4(z.element,"ytp-fit-cover-video",Math.max(b.width-p.width,b.height-p.height)<1);if(v||z.bF)z.lP.style.display="";z.EQ=!0}else{b=-K.height;TN?b*=window.devicePixelRatio:g.pa&&(b-=window.screen.height);b=new g.Ls(0,b,K.width,K.height);if(v||z.bF)z.lP.style.display= "none";z.EQ=!1}EZ(z.K_,b)||(z.K_=b,g.jo(t)?(z.lP.style.setProperty("width",b.width+"px","important"),z.lP.style.setProperty("height",b.height+"px","important")):g.ip(z.lP,b.getSize()),M=new g.Vw(b.left,b.top),g.ns(z.lP,Math.round(M.x),Math.round(M.y)),M=!0);K=new g.Ls((K.width-p.width)/2,(K.height-p.height)/2,p.width,p.height);EZ(z.l7,K)||(z.l7=K,M=!0);g.H6(z.lP,"transform",f===1?"":"scaleX("+f+")");B&&I!==z.Bu&&(I&&(z.lP.addEventListener(wK,z.qj),z.lP.addEventListener("transitioncancel",z.qj),z.lP.classList.add(g.$6.VIDEO_CONTAINER_TRANSITIONING)), z.Bu=I,z.app.Fc.publish("playerUnderlayVisibilityChange",z.Bu?"transitioning":"hidden"));return M}; OAI=function(z){z.ED=!z.ED;z.vQ=!0;z.element.classList.toggle("ytp-retro-player",z.ED);z.resize();z.vQ=!1;z.app.Fc.LH("onRetroModeChanged",z.ED)}; reS=function(){this.csn=g.Vz();this.clientPlaybackNonce=null;this.elements=new Set;this.T=new Set;this.S=new Set;this.Y=new Set}; ZAg=function(z){if(z.csn!==g.Vz())if(z.csn==="UNDEFINED_CSN")z.csn=g.Vz();else{var K=g.Vz(),f=g.lc();if(K&&f){z.csn=K;for(var M=g.a(z.elements),p=M.next();!p.done;p=M.next())(p=p.value.visualElement)&&p.isClientVe()&&K&&f&&(g.Hg("combine_ve_grafts")?so(d8(),p,f):g.Mu(g.zU)(void 0,K,f,p))}if(K)for(z=g.a(z.S),f=z.next();!f.done;f=z.next())(f=f.value.visualElement)&&f.isClientVe()&&g.vW(K,f)}}; g.hJ=function(z,K,f,M){g.J.call(this);var p=this;this.logger=new g.Np("App");this.Xw=this.d2=!1;this.Xl={};this.IM=[];this.KF=!1;this.rj=null;this.intentionalPlayback=!1;this.iT=!0;this.SL=!1;this.v2=this.RI=this.xw=null;this.p$=!0;this.mediaElement=this.U3=null;this.Qq=NaN;this.dN=!1;this.VR=this.Ji=this.La=this.screenLayer=this.playlist=null;this.fC=[];this.Cg=0;this.dO={e_:function(){return p.xb}, CYL:function(){return p.La}, BUE:function(){}}; this.logger.debug("constructor begin");if(!f)throw Error("b/179532961");this.config=OG8(K||{});this.webPlayerContextConfig=f;tyS();K=this.config.args||{};this.SV=new Z5(K,f,f?f.canaryState:this.config.assets.player_canary_state,M,this);g.d(this,this.SV);dVS(this.SV);f=sm8(this.SV);this.SV.i8()&&this.Tz("h5vcc",f);this.SV.experiments.sf("jspb_serialize_with_worker")&&Xgg();this.SV.experiments.sf("gzip_gel_with_worker")&&nLd();this.SV.Y&&!o_g&&(window.addEventListener(lI?"touchstart":"click",eCq,{capture:!0, passive:!0}),o_g=!0);this.B("html5_onesie")&&(this.C9=new tr(this.SV),g.d(this,this.C9));this.LZ=vK(iI(this.SV)&&!0,K.enablesizebutton);this.qR=vK(!1,K.player_wide);this.visibility=new l7a;g.d(this,this.visibility);this.B("web_log_theater_mode_visibility")&&this.OH(vK(!1,K.player_wide));this.d2=vK(!1,K.external_list);this.events=new g.xI(this);g.d(this,this.events);this.B("start_client_gcf")&&(ii(AY(),{EH:es,L1:$zS()}),this.gF=AY().resolve(es),pmg(this.gF));this.qSf=new Do;g.d(this,this.qSf);this.uY= new reS;f=new yp;this.Fc=new g.m8(this,f);g.d(this,this.Fc);this.template=new AeW(this);g.d(this,this.template);this.appState=1;this.X2=C7p(this);g.d(this,f);f={};this.dT=(f.internalvideodatachange=this.MVc,f.playbackready=this.OHf,f.playbackstarted=this.Qa_,f.statechange=this.VVc,f);this.gR=new w1(this.Fc);this.g3=TYd(this);f=this.SV.W;!1!==f&&this.Tz("badps",{hbp:f,hostname:window.location.hostname,ps:this.SV.playerStyle});this.hH=new XEo(this.SV,this.g3);this.Fc.publish("csiinitialized");var t; (((t=this.webPlayerContextConfig)==null?0:t.wasmModuleUrl)||hdT(this.g3))&&Ulv(this);t=10;g.iY(this.SV)&&(t=3);fa(this.SV)&&(t=g.uY(this.SV.experiments,"tvhtml5_unplugged_preload_cache_size"));this.xb=new g.O1(this.Fc,t);t=z2p(this);this.xb.EF(t);KX5(this);t={};this.ys=(t.airplayactivechange=this.L9_,t.airplayavailabilitychange=this.rHL,t.beginseeking=this.Rae,t.sabrCaptionsDataLoaded=this.nb_,t.endseeking=this.yHE,t.internalAbandon=this.oi_,t.internalaudioformatchange=this.tE_,t.internalvideodatachange= this.hOH,t.internalvideoformatchange=this.Uv1,t.liveviewshift=this.S0f,t.playbackstalledatstart=this.xvV,t.progresssync=this.Eb1,t.onAbnormalityDetected=this.spV,t.onSnackbarMessage=this.eOE,t.onLoadProgress=this.ABh,t.SEEK_COMPLETE=this.p8f,t.SEEK_TO=this.jFd,t.onVideoProgress=this.WdL,t.onLoadedMetadata=this.Y0V,t.onAutoplayBlocked=this.w1e,t.onPlaybackPauseAtStart=this.TOf,t.playbackready=this.q0h,t.statechange=this.jn,t.newelementrequired=this.dV,t.heartbeatparams=this.a21,t.videoelementevent= this.cBc,t.drmoutputrestricted=this.Nah,t.signatureexpired=this.H6H,t.nonfatalerror=this.l31,t.reloadplayer=this.zOf,t);this.Na=new g.xI(this);g.d(this,this.Na);this.yO=new Dg;g.d(this,this.yO);this.mq=this.O2=-1;this.Nj=new g.Kl(this.template.resize,16,this.template);g.d(this,this.Nj);this.Z3=new S_5(this.Fc,this.SV,this.JH(),this);this.bN=new ZG(this.SV);this.b9=new s1(this);g.d(this,this.b9);this.T_=new gR(this);g.d(this,this.T_);iAu(this.SV.S.c);this.events.X(this.Fc,g.wE("appapi"),this.g1q); this.events.X(this.Fc,g.DU("appapi"),this.fqf);this.events.X(this.Fc,g.wE("appprogressboundary"),this.Kd1);this.events.X(this.Fc,g.DU("applooprange"),this.l6);this.events.X(this.Fc,"presentingplayerstatechange",this.Lb);this.events.X(this.Fc,"resize",this.k5x);this.template.hL(X3(document,z));this.events.X(this.Fc,"offlineslatestatechange",this.OIE);this.events.X(this.Fc,"sabrCaptionsTrackChanged",this.ob_);this.events.X(this.Fc,"sabrCaptionsBufferedRangesUpdated",this.a3f);this.g3.U.Z().w$&&mg(this.g3, "offline");this.SV.VE&&g.a5("ux",g.WE);z=g.uY(this.SV.experiments,"html5_defer_fetch_att_ms");this.Z1=new g.Kl(this.dT_,z,this);g.d(this,this.Z1);this.Y8().bl()&&(g.Ya()&&this.Y8().l_.push("remote"),$KS(this));this.hH.tick("fs");fuS(this);this.SV.VE&&mg(this.g3,"ux",!0);g.Jw(this.g3.U.Z())&&mg(this.g3,"embed");this.B("web_player_sentinel_is_uniplayer")||g.Al(new g.UT("Player experiment flags missing","web_player_sentinel_is_uniplayer"));z=this.B("web_player_sentinel_yt_experiments_sync");t=g.Hg("web_player_sentinel_yt_experiments_sync"); z!==t&&g.Al(new g.UT("b/195699950",{yt:z,player:t}));this.wQ=MCo(this);if(z=g.uY(this.SV.experiments,"html5_block_pip_safari_delay"))this.XY=new g.Kl(this.Se,z,this),g.d(this,this.XY);sJ=this.SV.ra;this.Fc.publish("applicationInitialized");this.logger.debug("constructor end")}; MCo=function(z){function K(f){f.stack&&f.stack.indexOf("player")!==-1&&z.Of().Mp(f)} j3.subscribe("handleError",K);$B.push(K);return function(){j3.unsubscribe("handleError",K);var f=$B.indexOf(K);f!==-1&&$B.splice(f,1)}}; z2p=function(z){var K=new g.oB(z.SV,z.config.args);z.Fc.publish("initialvideodatacreated",K);return aK(z,1,K,!1)}; KX5=function(z){var K=z.JH();K.setPlaybackRate(z.SV.J?1:pUI(z,Number(g.AV("yt-player-playback-rate"))||1));K.Qw(z.dT,z);K.QX()}; TYd=function(z){var K="",f=ceo(z);f.indexOf("//")===0&&(f=z.SV.protocol+":"+f);var M=f.lastIndexOf("/base.js");M!==-1&&(K=f.substring(0,M+1));if(f=Error().stack)if(f=f.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))f=f[1],f.includes(K)||g.Al(Error("Player module URL mismatch: "+(f+" vs "+K+".")));K=new yJS(z.Fc,K);tCg(z,K);return K}; tCg=function(z,K){var f={};f=(f.destroyed=function(){z.onApiChange()},f); K.Y=f}; C7p=function(z){if(z.SV.storeUserVolume){z=g.AV("yt-player-volume")||{};var K=z.volume;z={volume:isNaN(K)?100:g.qt(Math.floor(K),0,100),muted:!!z.muted}}else z={volume:100,muted:z.SV.mute};return z}; RK=function(z){z.mediaElement=z.SV.deviceIsAudioOnly?new g.r9(g.zi("AUDIO")):Jz.pop()||new g.r9(g.zi("VIDEO"));g.d(z,z.mediaElement);z.Of().setMediaElement(z.mediaElement);try{z.SV.D3?(z.Ji&&z.events.W8(z.Ji),z.Ji=z.events.X(z.mediaElement,"volumechange",z.X1c)):(z.mediaElement.i7(z.X2.muted),z.mediaElement.setVolume(z.X2.volume/100))}catch(p){z.a5("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(p&&typeof p==="object"&&"message"in p&&typeof p.message==="string"&&p.message.replace(/[;:,]/g, "_")));return}g.g0(z.Na);BmI(z);var K=z.template,f=z.mediaElement.H1();K.lP=f;K.PJ=!1;K.lP.parentNode||M0(K.sO,K.lP,0);K.K_=new g.Ls(0,0,0,0);Fqp(K);y$(K);f=K.lP;g.ey(f,"video-stream");g.ey(f,g.$6.MAIN_VIDEO);var M=K.app.Z();M.Dh&&f.setAttribute("data-no-fullscreen","true");M.B("html5_local_playsinline")?"playsInline"in dI()&&(f.playsInline=!0):M.t0&&(f.setAttribute("webkit-playsinline",""),f.setAttribute("playsinline",""));M.Sq&&K.lP&&K.X(f,"click",f.play,f);try{z.mediaElement.activate()}catch(p){z.a5("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(p&&typeof p==="object"&&"message"in p&&typeof p.message==="string"&&p.message.replace(/[;:,]/g,"_")))}}; vsI=function(z){if(!NmW(z)){var K=z.JH().qL();K&&(K=K.xp(),K instanceof Promise&&K.catch(function(){})); S6(z,Sx(z.getPlayerStateObject()))}}; BmI=function(z){var K=z.mediaElement;YI()?z.Na.X(K,"webkitpresentationmodechanged",z.A9e):window.document.pictureInPictureEnabled&&(z.Na.X(K,"enterpictureinpicture",function(){z.G0(!0)}),z.Na.X(K,"leavepictureinpicture",function(){z.G0(!1)})); $a&&(z.Na.X(K,"webkitbeginfullscreen",function(){z.ZE(3)}),z.Na.X(K,"webkitendfullscreen",function(){z.ZE(0)}))}; Iuv=function(z,K){var f=K.getPlayerType(),M=z.xb.T[f]||null;K!==z.JH()&&K!==M&&(M==null||M.dispose(),z.xb.T[f]=K)}; G_a=function(z,K){K=K===void 0?!0:K;z.logger.debug("start clear presenting player");var f;if(f=z.VR){f=z.VR;var M=z.mediaElement;f=!!M&&M===f.mediaElement}f&&(z.dS(),RK(z));f=z.Of();f.dS(!K);f.s9(z.ys,z);f.getPlayerType()!==1&&f.dispose();K=z.xb;K.Y=K.S;rR(K);z.logger.debug("finish clear presenting player")}; g.b$v=function(z,K,f,M){var p=z.hH;K===2&&(p=new XEo(z.SV));return new g.M9(z.SV,K,p,z.template,function(t,B,v){z.Fc.publish(t,B,v)},function(){return z.Fc.getVisibilityState()},z.visibility,z,f,M)}; aK=function(z,K,f,M,p){z=g.b$v(z,K,f,p);z=new g.Xm(z);M&&z.QX();return z}; uC=function(z,K){return z.RX(K)?z.JH():K}; LS=function(z,K){var f=z.Of();return K===z.JH()&&z.RX(K)&&z.RX(f)?f:K}; DKI=function(z){z.logger.debug("start application playback");if(z.JH().getPlayerState().isError())z.logger.debug("start application playback done, player in error state");else{var K=Er(z);z.Y8().isLoaded();K&&z.D7(6);e28(z);QK8(z.g3)||wUp(z)}}; wUp=function(z){if(!Er(z)){var K=Vu(z.g3);K&&!K.created&&k3a(z.g3)&&(z.logger.debug("reload ad module"),K.create())}}; e28=function(z){z.logger.debug("start presenter playback");var K=z.getVideoData(),f=z.g3;QK8(f)||f.t6();!wSq&&f.U.B("html5_allow_asmjs")&&WDv(f);mg(f,"embed");mg(f,"kids");mg(f,"remote");mg(f,"miniplayer");mg(f,"offline");mg(f,"unplugged");mg(f,"ypc",!1,!0);mg(f,"ypc_clickwrap",!1,!0);mg(f,"yto",!1,!0);mg(f,"webgl",!1,!0);qru(f)||(mg(f,"captions",!0),mg(f,"endscreen"),f.Hv(),mg(f,"creatorendscreen",!0));f.m3();z.Fc.publish("videoready",K)}; PS=function(z){z=z.Y8();z.bl();return Y3(z)}; fuS=function(z){z.logger.debug("start prepare initial playback");z.lK();var K=z.config.args;RK(z);z.events.X(window,"resize",z.b6x);var f=z.Y8();z.Fc.IX("onVolumeChange",z.X2);if(K&&rzu(K)){var M=Ui(z.SV);M&&!z.d2&&(K.fetch=0);var p=g.Jw(z.SV);p&&!z.d2&&(K.fetch=0);HS(z,K);g.Jw(z.SV)&&z.hH.tick("ep_pr_s");if(!M||z.d2)if(p&&!z.d2)y_a(z);else if(!f.bl())z.playlist.onReady(function(){Q$(z)})}z.vn(z.JH(),!1,!0); g.Z(z.JH().getPlayerState(),128)||(K=Q3T(!z.SV.deviceIsAudioOnly),K==="fmt.noneavailable"?z.a5("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):K==="html5.missingapi"?z.a5(K,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):f&&f.bl()&&PS(z)&&(z.SV.Ix||z.SV.Co)?qy(z):f.Iz?z.Fc.mutedAutoplay({durationMode:f.mutedAutoplayDurationMode}):g.AV("yt-player-playback-on-reload")?(g.Ds("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!z.SV.nH}),g.sT("yt-player-playback-on-reload",!1), qy(z)):BG(z.SV)||k_d(z),g.$t(z.SV)||g.tw(z.SV)==="MWEB"?(g.Mg(g.tO(),function(){mD(z)}),g.Mg(g.tO(),function(){HvT()})):(mD(z),HvT()),z.logger.debug("finish prepare initial playback"))}; mD=function(z){if(!z.B("use_rta_for_player"))if(z.B("fetch_att_independently"))g.$4(z.Z1);else{var K=z.getVideoData().botguardData;K&&g.r8(K,z.SV,z.getVideoData().d7||"")}}; k_d=function(z){z.logger.debug("start initialize to CUED mode");z.Fc.publish("initializingmode");z.D7(2);z.B("embeds_web_enable_defer_loading_remote_js")&&g.MR(z.SV)?g.Mg(g.tO(),function(){mg(z.g3,"remote")}):mg(z.g3,"remote"); mg(z.g3,"miniplayer");z.logger.debug("initialized to CUED mode")}; qy=function(z){z.logger.debug("start initialize application playback");var K=z.JH();if(g.Z(K.getPlayerState(),128))return!1;K=K.getVideoData();PS(z)&&z.SV.Co&&(Jz.length&&z.Xw?(lC(z,{muted:!1,volume:z.X2.volume},!1),V$(z,!1)):Jz.length||z.X2.muted||(lC(z,{muted:!0,volume:z.X2.volume},!1),V$(z,!0)));PS(z)&&g.Jw(z.SV)&&K.mutedAutoplay&&(lC(z,{muted:!0,volume:z.X2.volume},!1),V$(z,!0));K.C2&&lC(z,{muted:!0,volume:z.X2.volume},!1);h2S(z,1,K,!1);var f=z.JH();z.Fc.publish("initializingmode");z.vn(f);z.D7(3); var M;if(!(M=!z.SV.ai)){if(M=z.VR){M=z.VR;var p=z.mediaElement;M=!!p&&p===M.mediaElement}M=M&&z.KF}M&&(z.dS(),RK(z),f.setMediaElement(z.mediaElement));f.b7();if(g.Z(f.getPlayerState(),128))return!1;K.tU||S6(z,3);return z.KF=!0}; Er=function(z){z=nq(z.g3);return!!z&&z.loaded}; auq=function(z,K){if(!z.U3)return!1;var f=z.U3.startTimeMs*.001-1,M=z.U3.endTimeMs*.001;z.U3.type==="repeatChapter"&&M--;return Math.abs(K-f)<=1E-6||Math.abs(K-M)<=1E-6||K>=f&&K<=M}; R2u=function(z){var K=z.Of();NE(K.getVideoData())&&!K.Cq()&&(K=nS(z)*1E3-z.getVideoData().jS,z.B("html5_gapless_new_slr")?(z=z.T_,WS(z.app,"gaplessshortslooprange"),K=new g.bS(0,K,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(z=z.app.Of())&&z.addCueRange(K)):z.setLoopRange({startTimeMs:0,endTimeMs:K,type:"shortsLoop"}))}; SVT=function(z){var K=z.JH();if(!(g.Z(K.getPlayerState(),64)&&z.Y8().isLivePlayback&&z.U3.startTimeMs<5E3)){if(z.U3.type==="repeatChapter"){var f,M=(f=KGW(z.pI()))==null?void 0:f.Cb(),p;f=(p=z.getVideoData())==null?void 0:p.G8;M instanceof g.r1&&f&&(p=f[I_(f,z.U3.startTimeMs)],M.renderChapterSeekingAnimation(0,p.title));isNaN(Number(z.U3.loopCount))?z.U3.loopCount=0:z.U3.loopCount++;z.U3.loopCount===1&&z.Fc.LH("innertubeCommand",z.getVideoData().MUc)}M={v8:"application_loopRangeStart"};if(z.U3.type=== "clips"||z.U3.type==="shortsLoop")M.seekSource=58;K.seekTo(z.U3.startTimeMs*.001,M)}}; pUI=function(z,K){var f=z.Fc.getAvailablePlaybackRates();K=Number(K.toFixed(2));z=f[0];f=f[f.length-1];K<=z?K=z:K>=f?K=f:(z=Math.floor(K*100+.001)%5,K=z===0?K:Math.floor((K-z*.01)*100+.001)/100);return K}; nS=function(z,K){K=z.FL({playerType:K});if(!K)return z.xb.S.HW();K=uC(z,K);return JJ(z,K.HW(),K)}; JJ=function(z,K,f){if(z.RX(f)&&(f=f.getVideoData(),!gd(z))){z=z.Z3;for(var M=g.a(z.Y),p=M.next();!p.done;p=M.next())if(p=p.value,f.O0===p.O0){K+=p.D2/1E3;break}M=K;z=g.a(z.Y);for(p=z.next();!p.done;p=z.next()){p=p.value;if(f.O0===p.O0)break;var t=p.D2/1E3;if(t1&&(p=!1);if(!z.dN||p!==K){f=f.lock(p?"portrait":"landscape");if(f!=null)f["catch"](function(){}); z.dN=!0}}else z.dN&&(z.dN=!1,f.unlock())}; j6=function(z,K,f){z.Fc.publish(K,f);var M=g.iY(z.SV)||g.jo(z.SV)||g.O$(z.SV);if(f&&M){switch(K){case "cuerangemarkersupdated":var p="onCueRangeMarkersUpdated";break;case "cuerangesadded":p="onCueRangesAdded";break;case "cuerangesremoved":p="onCueRangesRemoved"}p&&z.Fc.LH(p,f.map(function(t){return{getId:function(){return this.id}, end:t.end,id:t.getId(),namespace:t.namespace==="ad"?"ad":"",start:t.start,style:t.style,visible:t.visible}}))}}; YU=function(z,K,f,M,p,t){f=f===void 0?!0:f;var B=z.FL({playerType:p});if(!B||(B.getPlayerType()!==2||z.RX(B))&&!g.V_(B.getVideoData())){var v=z.xb.qM;v?v.seekTo(K,{aM:!f,De:M,v8:"application",seekSource:t}):(B&&B===z.JH()&&z.U3&&!auq(z,K)&&z.setLoopRange(null),z.seekTo(K,f,M,p,t))}}; c_5=function(z,K,f,M){f&&(z.dS(),RK(z));f=z.Of();f.VC(K);var p=z.getVideoData(),t={};t.video_id=p.videoId;t.adformat=p.adFormat;p.isLivePlayback||(t.start=f.getCurrentTime(),t.resume="1");p.isLivePlayback&&k3(p)&&g.JK(z.SV)&&(t.live_utc_start=f.ll(),t.resume="1");p.Hx&&(t.vvt=p.Hx);p.W&&(t.vss_credentials_token=p.W,t.vss_credentials_token_type=p.kq);p.oauthToken&&(t.oauth_token=p.oauthToken);t.autoplay=1;t.reload_count=p.Ft+1;t.reload_reason=K;p.cP&&(t.unplugged_partner_opt_out=p.cP);p.Co&&(t.ypc_is_premiere_trailer= p.Co);p.playerParams&&(t.player_params=p.playerParams);z.loadVideoByPlayerVars(t,void 0,!0,void 0,void 0,M);K==="signature"&&z.La&&wUp(z)}; sqq=function(z,K){z.Y8().autonavState=K;g.sT("yt-player-autonavstate",K);z.Fc.publish("autonavchange",K)}; A_a=function(z){var K=z.getVideoData().L7,f=z.SV.SE,M=z.isInline()&&!z.getVideoData().I7,p=z.mediaElement;K||f||M?p.qO():(p.nL(),lC(z,z.X2))}; iC=function(z){var K=Vu(z.pI());K&&K.created&&(z.logger.debug("reset ad module"),K.destroy())}; gd=function(z){return z.getVideoData().enableServerStitchedDai&&!!z.La}; jq5=function(z,K){K.bounds=z.getBoundingClientRect();for(var f=g.a(["display","opacity","visibility","zIndex"]),M=f.next();!M.done;M=f.next())M=M.value,K[M]=mN(z,M);K.hidden=!!z.hidden}; ceo=function(z){if(z.webPlayerContextConfig){var K=z.webPlayerContextConfig.trustedJsUrl;return K?ll(K).toString():z.webPlayerContextConfig.jsUrl}return z.config.assets&&z.config.assets.js?z.config.assets.js:""}; YVS=function(z,K){var f=z.FL({playerType:1});if(f){if(f.getVideoData().clientPlaybackNonce===K)return f;if((z=z.b9.S)&&z.getVideoData().clientPlaybackNonce===K)return z}return null}; Ulv=function(z){function K(p){return uV(JJT(z.g3),function(t){return t.Wl(p)})} z.hH.tick("wasm_s");var f;z.SV.rE=Dyd((f=z.webPlayerContextConfig)==null?void 0:f.wasmModuleUrl,hdT(z.g3)?K:void 0,z.Tz.bind(z));var M;(M=z.SV.rE)==null||uV(M,function(p){z.SV.Px=p;z.hH.tick(p.S?"wasm_fa":"wasm_fw")},function(){z.SV.rE=void 0; z.hH.tick("wasm_ferr")})}; XUS=function(z){return z.name==="TypeError"&&z.stack.includes("/s/player/")&&OJ()<=105}; xKT=function(z){return z.isTimeout?"NO_BID":"ERR_BID"}; FXS=function(){var z=null;lVu().then(function(K){return z=K},function(K){return z=xKT(K)}); return z}; O$8=function(){var z=xZ(1E3,"NO_BID");return g.A8(ru8([lVu(),z]).Qf(xKT),function(){z.cancel()})}; X5=function(z){return z.t9?g.r0(g.OT(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; xU=function(z){this.player=z;this.T=this.S=1}; osd=function(z,K,f,M,p,t){K.client||(K.client={});z.player.Z().B("h5_remove_url_for_get_ad_break")||(K.client.originalUrl=f);var B=eg(f),v=g.EW(f)?!1:!0;(B||v)&&typeof Intl!=="undefined"&&(K.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);v=g.EW(f)?!1:!0;if(B||v||M!==""){var I={};f=Bg(ha(M)).split("&");var G=new Map;f.forEach(function(b){b=b.split("=");b.length>1&&G.set(b[0].toString(),decodeURIComponent(b[1].toString()))}); G.has("bid")&&(I.bid=G.get("bid"));I.params=[];r_I.forEach(function(b){G.has(b)&&(b={key:b,value:G.get(b)},I.params.push(b))}); Z$d(z,I);K.adSignalsInfo=I}K.client.unpluggedAppInfo||(K.client.unpluggedAppInfo={});K.client.unpluggedAppInfo.enableFilterMode=!1;f=p.S.cosver;f!=null&&f!=="cosver"&&(K.client.osVersion=f);f=p.S.cplatform;f!=null&&f!=="cplatform"&&f!==""&&(K.client.platform=f);f=p.S.cmodel;f!=null&&f!=="cmodel"&&(K.client.deviceModel=f);f=p.S.cplayer;f!=null&&f!=="cplayer"&&(K.client.playerType=f);f=p.S.cbrand;f!=null&&f!=="cbrand"&&(K.client.deviceMake=f);K.user||(K.user={});K.user.lockedSafetyMode=!1;(p.B("embeds_web_enable_iframe_api_send_full_embed_url")|| p.B("embeds_enable_autoplay_and_visibility_signals"))&&g.Aw(p)&&$Ip(K,t,z.player.getPlayerState(1))}; UK8=function(z,K){var f=!1;if(K==="")return f;K.split(",").forEach(function(M){var p={},t={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},B="ACTIVE";M[0]==="!"&&(M=M.substring(1),B="INACTIVE");M=M.split("-");M.length<3||(M[0]in COI&&(t.clientName=COI[M[0]]),M[1]in Tma&&(t.platform=Tma[M[1]]),t.applicationState=B,t.clientVersion=M.length>2?M[2]:"",p.remoteClient=t,z.remoteContexts?z.remoteContexts.push(p):z.remoteContexts=[p],f=!0)}); return f}; K_S=function(z){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in z_W))return!1;z=z.split(RegExp("[:&]"));var K=z_W.FLAG_AUTO_CAPTIONS_DEFAULT_ON,f="f"+(1+Math.floor(K/31)).toString();K=1<=2?B[1]:"";var v=fad.test(K),I=Mcv.exec(K);I=I!=null&&I.length>=2?I[1]:"";var G=pbp.exec(K);G=G!=null&&G.length>=2&&!Number.isNaN(Number(G[1]))?Number(G[1]):1;var b=tcd.exec(K);b=b!=null&&b.length>=2?b[1]:"0";var e=Ff(z.player.Z().c7),w=z.player.getVideoData(1),D=g.tE(w.vx,!0),y="BISCOTTI_ID"in f?f.BISCOTTI_ID:"";osd(z,D,K,y.toString(),z.player.Z(), w);w={splay:!1,lactMilliseconds:f.LACT.toString(),playerHeightPixels:Math.trunc(f.P_H),playerWidthPixels:Math.trunc(f.P_W),vis:Math.trunc(f.VIS),signatureTimestamp:20237,autonavState:X5(z.player.Z())};M&&(M={},UK8(M,f.YT_REMOTE)&&(w.mdxContext=M));if(M=Bt8.includes(e)?void 0:g.YB("PREF")){for(var R=M.split(RegExp("[:&]")),S=0,E=R.length;S1&&L[1].toUpperCase()==="TRUE"){D.user.lockedSafetyMode=!0;break}}w.autoCaptionsDefaultOn= K_S(M)}K=Ntp.exec(K);(K=K!=null&&K.length>=2?K[1]:"")&&I&&(D.user.credentialTransferTokens=[{token:K,scope:"VIDEO"}]);K={contentPlaybackContext:w};B={adBlock:Math.trunc(f.AD_BLOCK),params:B,breakIndex:G,breakPositionMs:b,clientPlaybackNonce:f.CPN,topLevelDomain:e,isProxyAdTagRequest:v,context:D,adSignalsInfoString:Bg(ha(y.toString())),overridePlaybackContext:K};p!==void 0&&(B.cueProcessedMs=Math.round(p).toString());I&&(B.videoId=I);f.LIVE_TARGETING_CONTEXT&&(B.liveTargetingParams=f.LIVE_TARGETING_CONTEXT); f.AD_BREAK_LENGTH&&(B.breakLengthMs=Math.trunc(f.AD_BREAK_LENGTH*1E3).toString());t&&(B.driftFromHeadMs=t.toString());B.currentMediaTimeMs=Math.round(z.player.getCurrentTime(1)*1E3);(z=z.player.getGetAdBreakContext())&&(B.getAdBreakContext=z);return B}; IaS=function(){xU.apply(this,arguments)}; GRv=function(z,K,f,M,p){var t=f.tf;var B=f.Wh;var v=z.player.Z().Jo,I=0;f.cueProcessedMs&&B&&!t&&(f=B.end-B.start,f>0&&(I=Math.floor(f/1E3)));var G={AD_BLOCK:p,AD_BREAK_LENGTH:t?t.mP:I,AUTONAV_STATE:X5(z.player.Z()),CA_TYPE:"image",CPN:z.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:z.player.dL()*1E3,LACT:nv(),LIVE_INDEX:t?z.T++:1,LIVE_TARGETING_CONTEXT:t&&t.context?t.context:"",MIDROLL_POS:B?Math.round(B.start/1E3):0,MIDROLL_POS_MS:B?Math.round(B.start):0,VIS:z.player.getVisibilityState(), P_H:z.player.wE().ox().height,P_W:z.player.wE().ox().width,YT_REMOTE:v?v.join(","):""},b=kB(y4);Object.keys(b).forEach(function(e){b[e]!=null&&(G[e.toUpperCase()]=b[e].toString())}); M!==""&&(G.BISCOTTI_ID=M);M={};DQ(K)&&(M.sts="20237",(z=z.player.Z().forcedExperiments)&&(M.forced_experiments=z));return bm(g.Jy(K,G),M)}; b2d=function(z,K){var f=z.player.Z(),M,p=(M=z.player.getVideoData(1))==null?void 0:M.oauthToken;return g.IB(f,p).then(function(t){if(t&&wV()){var B=jz();YO(B,t)}return g.$H(z.player.Gm(B),K,"/youtubei/v1/player/ad_break").then(function(v){return v})})}; e_u=function(z){this.Gh=z}; wbS=function(z){this.U=z}; DUd=function(z){this.Gh=z}; kRS=function(z){g.J.call(this);this.S=z;this.c6=yBI(this)}; yBI=function(z){var K=new Q2d(z.S.VW);g.d(z,K);z=[new e_u(z.S.Gh),new wbS(z.S.U),new DUd(z.S.Gh),new jv(z.S.CJ,z.S.yJ),new XS,new OI(z.S.Sv,z.S.Ep,z.S.Gh),new Y8,new AM];z=g.a(z);for(var f=z.next();!f.done;f=z.next())qmI(K,f.value);z=g.a(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(f=z.next();!f.done;f=z.next())x8(K,f.value,function(){}); return K}; F5=function(z){var K=z.i_,f=z.Ef;z=z.ac;var M=new x3o,p={OT:new Psp(K.get(),f),Ef:f};return{KI:new eR(f,z,K,p),context:p,DU:M}}; Or=function(z,K,f,M,p){g.J.call(this);this.Y=K;this.Uf=f;this.i_=M;this.ML=p;this.listeners=[];var t=new WK(this);g.d(this,t);t.X(z,"internalAbandon",this.mBh);this.addOnDisposeCallback(function(){g.g0(t)})}; rd=function(z){this.U=z;this.adVideoId=this.S=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.Y=this.T=!1;this.adFormat=null;this.J="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; h_8=function(z){z.contentCpn=null;z.adCpn=null;z.videoId=null;z.adVideoId=null;z.adFormat=null;z.J="AD_PLACEMENT_KIND_UNKNOWN";z.actionType="unknown_type";z.T=!1;z.Y=!1}; aa8=function(z,K){z=g.a(K);for(K=z.next();!K.done;K=z.next())if((K=K.value.renderer)&&(K.instreamVideoAdRenderer||K.linearAdSequenceRenderer||K.sandwichedLinearAdRenderer||K.instreamSurveyAdRenderer)){rl("ad_i");g.ZE({isMonetized:!0});break}}; R_p=function(z){var K;(K=z.U.getVideoData(1))!=null&&K.Bx&&(z.Y=!1,K={},z.S&&z.videoId&&(K.cttAuthInfo={token:z.S,videoId:z.videoId}),oV("video_to_ad",K))}; Kb=function(z){z.Y=!1;var K={};z.S&&z.videoId&&(K.cttAuthInfo={token:z.S,videoId:z.videoId});oV("ad_to_video",K);SYu(z)}; SYu=function(z){if(z.T)if(z.J==="AD_PLACEMENT_KIND_START"&&z.actionType==="video_to_ad")x5("video_to_ad");else{var K={adBreakType:VW(z.J),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:z.videoStreamType};z.actionType==="ad_to_video"?(z.contentCpn&&(K.targetCpn=z.contentCpn),z.videoId&&(K.targetVideoId=z.videoId)):(z.adCpn&&(K.targetCpn=z.adCpn),z.adVideoId&&(K.targetVideoId=z.adVideoId));z.adFormat&&(K.adType=z.adFormat);z.contentCpn&& (K.clientPlaybackNonce=z.contentCpn);z.videoId&&(K.videoId=z.videoId);z.adCpn&&(K.adClientPlaybackNonce=z.adCpn);z.adVideoId&&(K.adVideoId=z.adVideoId);g.ZE(K,z.actionType);z.U.Z().experiments.sf("html5_ads_csi_qoes")&&(K=z.U.j_(z.actionType==="ad_to_video"?1:2),K=(0,g.X)()-1E3*K,T9("qoes",K,z.actionType))}}; Zg=function(z){g.J.call(this);this.U=z;this.S=new Map;this.Y=new WK(this);g.d(this,this.Y);this.Y.X(this.U,g.wE("ad"),this.onCueRangeEnter,this);this.Y.X(this.U,g.DU("ad"),this.onCueRangeExit,this)}; uEu=function(z,K,f,M,p){g.bS.call(this,K,f,{id:z,namespace:"ad",priority:p,visible:M})}; oK=function(z){this.U=z}; L_8=function(z,K){z.U.cueVideoByPlayerVars(K,2)}; CS=function(z){this.U=z}; T3=function(z){this.U=z;g.uY(this.U.Z().experiments,"tv_pacf_logging_sample_rate")}; EQp=function(z){return MI(z,"html5_ssap_play_cached_preroll")}; VR=function(z,K){K=K===void 0?!1:K;return z.U.Z().B("html5_ssap_force_ads_ctmp")?!0:(K||z.U.Z().i8())&&z.U.Z().B("html5_ssap_pacf_qoe_ctmp")}; Ur=function(z){var K;return(K=z.U.getVideoData(1)==null?void 0:!1)!=null?K:!1}; MI=function(z,K){return z.U.Z().B(K)}; P3T=function(z){return z.U.Z().B("substitute_ad_cpn_macro_in_ssdai")}; VE=function(z){var K,f,M;return((K=z.U.getVideoData(1).getPlayerResponse())==null?void 0:(f=K.playerConfig)==null?void 0:(M=f.daiConfig)==null?void 0:M.enableServerStitchedDai)||!1}; g9d=function(z){return z.U.Z().B("html5_enable_vod_slar_with_notify_pacf")}; H2a=function(z){return z.U.Z().B("html5_recognize_predict_start_cue_point")}; Id=function(z){return z.U.Z().experiments.sf("enable_desktop_player_underlay")}; Q1u=function(z){return z.U.Z().experiments.sf("html5_load_empty_player_in_media_break_sub_lra")}; Xv=function(z){return z.U.Z().experiments.sf("html5_load_ads_instead_of_cue")}; xm=function(z){return z.U.Z().experiments.sf("html5_preload_ads")}; qYS=function(z){return z.U.Z().experiments.sf("should_ignore_cuepoints_during_lifa_preroll")}; Bl=function(z){return z.U.Z().experiments.sf("enable_ads_control_flow_deterministic_id_generation")}; mUu=function(z){return z.U.Z().experiments.sf("enable_desktop_discovery_video_abandon_pings")||g.zt(z.U.Z())}; laS=function(z){return z.U.Z().experiments.sf("enable_progres_commands_lr_feeds")}; n9=function(z){return z.U.Z().experiments.sf("html5_cuepoint_identifier_logging")}; YB8=function(z){z=z.U.getVideoData(1);return!!z&&z.B("html5_preload_first_vod_video_ad")&&!z.isDaiEnabled()&&!z.isLivePlayback}; VcT=function(z){switch(z){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression"; case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";case "viewable_impression":return"adviewableimpression";default:return null}}; nQu=function(){g.Dv.call(this);var z=this;this.S={};this.addOnDisposeCallback(function(){for(var K=g.a(Object.keys(z.S)),f=K.next();!f.done;f=K.next())delete z.S[f.value]})}; zZ=function(){if(W_v===null){W_v=new nQu;$N(f_).Y="b";var z=$N(f_),K=xF(z)=="h"||xF(z)=="b",f=!(kp(),!1);K&&f&&(z.C=!0,z.W=new bFI)}return W_v}; JBW=function(z,K,f){z.S[K]=f}; gQu=function(z){switch(z){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen"; case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "swipe":case "skip":case "unmuted_skip":return"skip"; case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}}; K7=function(z,K,f){this.Uf=z;this.U=K;this.Ef=f;this.Y=new Set;this.S=new Map;zZ().subscribe("adactiveviewmeasurable",this.jN,this);zZ().subscribe("adfullyviewableaudiblehalfdurationimpression",this.p9,this);zZ().subscribe("adviewableimpression",this.Hd,this);zZ().subscribe("adaudioaudible",this.zr,this);zZ().subscribe("adaudiomeasurable",this.n9,this)}; f7=function(z,K,f){var M=f.bO,p=f.s5,t=f.listener,B=f.NE;f=f.sP===void 0?!1:f.sP;if(z.S.has(K))R3("Unexpected registration of layout in LidarApi");else{if(B){if(z.Y.has(B))return;z.Y.add(B)}z.S.set(K,t);bE(kp().U0,"fmd",1);uOS($N(f_),M);var v=f?K:void 0;JBW(zZ(),K,{LL:function(){if(!p)return{};var I=z.U.getPresentingPlayerType(!0),G;return(G=z.U.getVideoData(I))!=null&&G.isAd()?{currentTime:z.Uf.get().getCurrentTimeSec(I,!1,v),duration:p,isPlaying:$X(z.Uf.get(),I).isPlaying(),isVpaid:!1,isYouTube:!0, volume:z.Uf.get().isMuted()?0:z.Uf.get().getVolume()/100}:{}}})}}; MH=function(z,K){z.S.has(K)?(z.S.delete(K),delete zZ().S[K]):R3("Unexpected unregistration of layout in LidarApi")}; i2g=function(z,K){if(z.U.isLifaAdPlaying()){var f=z.U.hD(!0,!0);z.r6(K,f.width*.5*1.1,f.height*.25*1.1,f.width*.5*.9,f.height*.5*.9)}}; s1a=function(z,K,f){var M={};dUa(z,M,K,f);cB8(M);M.LACT=p7(function(){return nv().toString()}); M.VIS=p7(function(){return z.getVisibilityState().toString()}); M.SDKV="h.3.0";M.VOL=p7(function(){return z.isMuted()?"0":Math.round(z.getVolume()).toString()}); M.VED="";return M}; ABo=function(z,K){var f={};if(K||!z||!z.kind)return f;if(z.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||z.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!z.adTimeOffset||!z.adTimeOffset.offsetStartMilliseconds)return g.sm(Error("malformed AdPlacementConfig")),f;f.MIDROLL_POS=p7(wW(Math.round(S8(z.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else f.MIDROLL_POS=p7(wW("0"));return f}; p7=function(z){return{toString:function(){return z()}}}; j1d=function(z,K,f){function M(v,I){(I=f[I])&&(t[v]=I)} function p(v,I){(I=f[I])&&(t[v]=B(I))} if(!f||g.U9(f))return z;var t=Object.assign({},z),B=K?encodeURIComponent:function(v){return v}; p("DV_VIEWABILITY","doubleVerifyViewability");p("IAS_VIEWABILITY","integralAdsViewability");p("MOAT_INIT","moatInit");p("MOAT_VIEWABILITY","moatViewability");M("GOOGLE_VIEWABILITY","googleViewability");M("VIEWABILITY","viewability");return t}; dUa=function(z,K,f,M){K.CPN=p7(function(){var p;(p=z.getVideoData(1))?p=p.clientPlaybackNonce:(g.Al(Error("Video data is null.")),p=null);return p}); K.AD_MT=p7(function(){if(M!=null)var p=M;else{var t=f;z.Z().B("html5_ssap_use_cpn_to_get_time")||(t=void 0);if(z.Z().B("enable_h5_shorts_ad_fill_ad_mt_macro")||z.Z().B("enable_desktop_discovery_pings_ad_mt_macro")||g.zt(z.Z())){var B=z.getPresentingPlayerType(!0),v;p=((v=z.getVideoData(B))==null?0:v.isAd())?YYa(z,B,t):0}else p=YYa(z,2,t)}return Xbg(p)}); K.MT=p7(function(){return Xbg(z.getCurrentTime(1,!1))}); K.P_H=p7(function(){return z.wE().ox().height.toString()}); K.P_W=p7(function(){return z.wE().ox().width.toString()}); K.PV_H=p7(function(){return z.wE().getVideoContentRect().height.toString()}); K.PV_W=p7(function(){return z.wE().getVideoContentRect().width.toString()})}; Xbg=function(z){return Math.round(Math.max(0,z*1E3)).toString()}; cB8=function(z){z.CONN=p7(wW("0"));z.WT=p7(function(){return Date.now().toString()})}; YYa=function(z,K,f){return f!==void 0?z.getCurrentTime(K,!1,f):z.getCurrentTime(K,!1)}; xUI=function(){}; F_q=function(z,K,f,M,p){var t,B,v,I,G,b,e,w,D,y,R,S,E;g.n(function(L){switch(L.Y){case 1:t=!!K.scrubReferrer;B=g.Jy(K.baseUrl,j1d(f,t,M));v={};if(!K.headers){L.jV(2);break}I=z.J();if(!I.S){G=I.getValue();L.jV(3);break}return g.l(L,I.S,4);case 4:G=L.S;case 3:b=G;e=g.a(K.headers);for(w=e.next();!w.done;w=e.next())switch(D=w.value,D.headerType){case "VISITOR_ID":g.zM("VISITOR_DATA")&&(v["X-Goog-Visitor-Id"]=g.zM("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.zM("EOM_VISITOR_DATA")&&(v["X-Goog-EOM-Visitor-Id"]= g.zM("EOM_VISITOR_DATA"));break;case "USER_AUTH":b&&(v.Authorization="Bearer "+b);break;case "PLUS_PAGE_ID":(y=z.C())&&(v["X-Goog-PageId"]=y);break;case "AUTH_USER":R=z.S();!b&&R&&(v["X-Goog-AuthUser"]=R);break;case "DATASYNC_ID":if(S=void 0,(S=z.T())==null?0:S.sf("enable_datasync_id_header_in_web_vss_pings"))E=z.Y(),eg(B)&&g.zM("LOGGED_IN")&&E&&(v["X-YouTube-DataSync-Id"]=E)}"X-Goog-EOM-Visitor-Id"in v&&"X-Goog-Visitor-Id"in v&&delete v["X-Goog-Visitor-Id"];case 2:g.F$(B,void 0,t,Object.keys(v).length!== 0?v:void 0,"",!0,p),g.Rv(L)}})}; O2W=function(z,K,f,M,p){this.J=z;this.C=K;this.S=f;this.Y=M;this.T=p}; rBa=function(z,K){this.S=z;this.Ef=K}; tZ=function(z,K,f,M,p,t,B){var v=v===void 0?new O2W(function(){var I=z.Z(),G=z.getVideoData(1);return g.IB(I,G?g.X6(G):"")},function(){return z.Z().pageId},function(){return z.Z().nH},function(){var I; return(I=z.Z().datasyncId)!=null?I:""},function(){return z.Z().experiments}):v; this.U=z;this.Y=K;this.E3=f;this.i_=M;this.KI=p;this.Ef=t;this.DU=B;this.J=v;this.IC=null;this.S=new Map;this.T=new rBa(v,this.Ef)}; oQS=function(z,K,f,M,p){var t=Ak(z.Y.get(),f);t?(f=dE(z,Z2u(t),t,void 0,void 0,M),K.hasOwnProperty("baseUrl")?z.J.send(K,f):z.T.send(K,f,{},p)):R3("Trying to ping from an unknown layout",void 0,void 0,{layoutId:f})}; JtI=function(z,K,f,M,p,t){M=M===void 0?[]:M;var B=Ak(z.Y.get(),K);if(B){var v=z.E3.get().ZU(K,f),I=dE(z,Z2u(B),B,p,t);M.forEach(function(G,b){G.baseUrl&&(z.T.send(G.baseUrl,I,v,G.attributionSrcMode),G.serializedAdPingMetadata&&z.KI.s_("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,B,new efd(G,b),void 0,void 0,B.adLayoutLoggingData))})}else R3("Trying to track from an unknown layout.",void 0,void 0,{layoutId:K, trackingType:f})}; lS=function(z,K){z.U.sendVideoStatsEngageEvent(K,void 0,2)}; vp=function(z,K){g.Ds("adsClientStateChange",K)}; C3a=function(z,K){z.S.has(K.GA())?R3("Trying to register an existing AdErrorInfoSupplier."):z.S.set(K.GA(),K)}; Ttd=function(z,K){z.S.delete(K.GA())||R3("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; bb=function(z,K,f){typeof f==="string"?z.U.getVideoData(1).Hs(K,f):z.U.getVideoData(1).Th(K,f)}; Z2u=function(z){var K=Dx(z.clientMetadata,"metadata_type_ad_placement_config");z=Dx(z.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:K,C$:z}}; dE=function(z,K,f,M,p,t){var B=f?UUo(z):{},v=f?zJo(z,f.layoutId):{},I=KCT(z),G,b=p!=null?p:(G=QW(z.i_.get(),2))==null?void 0:G.clientPlaybackNonce;p=void 0;if(f){var e;if((e=z.DU.S.get(f.layoutId))==null?0:e.sP)p=f.layoutId}e={};z=Object.assign({},s1a(z.U,p,M),ABo(K.adPlacementConfig,(f==null?void 0:f.renderingContent)!==void 0),v,B,I,(e.FINAL=p7(function(){return"1"}),e.AD_CPN=p7(function(){return b||""}),e)); (f==null?void 0:f.renderingContent)!==void 0||(z.SLOT_POS=p7(function(){return(K.C$||0).toString()})); f={};t=Object.assign({},z,t);z=g.a(Object.values($FS));for(M=z.next();!M.done;M=z.next())M=M.value,B=t[M],B!=null&&B.toString()!=null&&(f[M]=B.toString());return f}; UUo=function(z){var K={},f,M=(f=z.IC)==null?void 0:f.Ae/1E3;M!=null&&(K.SURVEY_ELAPSED_MS=p7(function(){return Math.round(M*1E3).toString()})); K.SURVEY_LOCAL_TIME_EPOCH_S=p7(function(){return Math.round(Date.now()/1E3).toString()}); return K}; zJo=function(z,K){z=z.S.get(K);if(!z)return{};z=z.DZ();if(!z)return{};K={};return K.YT_ERROR_CODE=z.JG.toString(),K.ERRORCODE=z.VF.toString(),K.ERROR_MSG=z.errorMessage,K}; KCT=function(z){var K={},f=z.U.getVideoData(1);K.ASR=p7(function(){var M;return(M=f==null?void 0:f.YX)!=null?M:null}); K.EI=p7(function(){var M;return(M=f==null?void 0:f.eventId)!=null?M:null}); return K}; B$=function(z,K,f){g.J.call(this);this.U=z;this.QM=K;this.Ef=f;this.listeners=[];this.mp=null;this.qN=new Map;K=new g.xI(this);g.d(this,K);K.X(z,"videodatachange",this.B3_);K.X(z,"serverstitchedvideochange",this.T3c);this.wc=QW(this)}; QW=function(z,K){var f=z.U.getVideoData(K);return f?z.tS(f,K||z.U.getPresentingPlayerType(!0)):null}; fm8=function(z,K,f){var M=z.tS(K,f);z.wc=M;z.listeners.forEach(function(p){p.ov(M)})}; MDI=function(z){switch(z){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7}}; NH=function(z,K,f){g.J.call(this);this.U=z;this.i_=K;this.Ef=f;this.listeners=[];this.r9=[];this.S=function(){R3("Called 'doUnlockPreroll' before it's initialized.")}; K=new WK(this);f=new g.xI(this);g.d(this,f);g.d(this,K);K.X(z,"progresssync",this.Fdx);K.X(z,"presentingplayerstatechange",this.JBH);K.X(z,"fullscreentoggled",this.onFullscreenToggled);K.X(z,"onVolumeChange",this.onVolumeChange);K.X(z,"minimized",this.Hj);K.X(z,"overlayvisibilitychange",this.GN);K.X(z,"shortsadswipe",this.KW);K.X(z,"resize",this.NB);f.X(z,g.wE("appad"),this.If)}; v$=function(z){Ur(z.Ef.get())||z.S()}; pyW=function(z,K){z.r9=z.r9.filter(function(f){return f!==K})}; Ih=function(z,K,f){return z.getCurrentTimeSec(K,f)}; tDp=function(z,K){var f;K=(f=z.i_.get().qN.get(K))!=null?f:null;if(K===null)return R3("Expected ad video start time on playback timeline"),0;z=z.U.getCurrentTime(2,!0);return z0){var t=K.end.toString();p.forEach(function(B){(B=B.config&&B.config.adPlacementConfig)&&B.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&B.adTimeOffset&&B.adTimeOffset.offsetEndMilliseconds==="-1"&&B.adTimeOffset.offsetEndMilliseconds!==t&&(B.adTimeOffset.offsetEndMilliseconds=t)}); M.map(function(B){return g.A(B,ZI)}).forEach(function(B){var v; (B=B==null?void 0:(v=B.slotEntryTrigger)==null?void 0:v.mediaTimeRangeTrigger)&&B.offsetEndMilliseconds==="-1"&&(B.offsetEndMilliseconds=t)})}return{GB:p, adSlots:M,RM:!1,ssdaiAdsConfig:z.ssdaiAdsConfig}}; Dk=function(z){g.J.call(this);this.U=z;this.listeners=[];this.S=new WK(this);g.d(this,this.S);this.S.X(this.U,"aduxclicked",this.onAdUxClicked);this.S.X(this.U,"aduxmouseover",this.Lg);this.S.X(this.U,"aduxmouseout",this.sQ);this.S.X(this.U,"muteadaccepted",this.XxH)}; Gbd=function(z,K,f){K=g.UZ(K,function(M){return new xg5(M,f,M.id)}); z.U.LH("onAdUxUpdate",K)}; yH=function(z,K){z=g.a(z.listeners);for(var f=z.next();!f.done;f=z.next())K(f.value)}; kX=function(z,K){this.Y=z;this.T=K===void 0?!1:K;this.S={}}; bB8=function(z,K){var f=z.startSecs+z.mP;f=f<=0?null:f;if(f===null)return null;switch(z.event){case "start":case "continue":case "stop":break;case "predictStart":if(K)break;return null;default:return null}K=Math.max(z.startSecs,0);return{sG:new lx(K,f),Bl:new CX(K,f-K,z.context,z.identifier,z.event,z.S)}}; eJg=function(){this.S=[]}; VXS=function(z,K,f){var M=g.l_(z.S,K);if(M>=0)return K;K=-M-1;return K>=z.S.length||z.S[K]>f?null:z.S[K]}; hZ=function(z,K,f){g.J.call(this);this.U=z;this.Ef=K;this.Gh=f;this.listeners=[];this.J=!1;this.yX=[];this.S=null;this.C=new kX(this,H2a(K.get()));this.T=new eJg;this.Y=null}; wyg=function(z,K){z.yX.push(K);for(var f=!1,M=g.a(z.listeners),p=M.next();!p.done;p=M.next())f=p.value.UX(K)||f;z.J=f;n9(z.Ef.get())&&bb(z.Gh.get(),"onci","cpi."+K.identifier+";cpe."+K.event+";cps."+K.startSecs+";cbi."+f)}; y7d=function(z,K){vp(z.Gh.get(),{cuepointTrigger:{event:DF8(K.event),cuepointId:K.identifier,totalCueDurationMs:K.mP*1E3,playheadTimeMs:K.S,cueStartTimeMs:K.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:z.U.getVideoData(1).clientPlaybackNonce}})}; DF8=function(z){switch(z){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";default:return Tl(z,"Unexpected cuepoint event")}}; ah=function(z){this.U=z}; Rh=function(z){this.U=z}; kbW=function(z){switch(z){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;default:Tl(z,"unknown transitionReason")}}; SH=function(){g.J.apply(this,arguments)}; hJW=function(z){this.U=z}; ama=function(z,K,f,M,p){g.J.call(this);var t=this,B=Ch(function(){return new t3(t.Ef)}); g.d(this,B);var v=Ch(function(){return new Nf(B,t.Ef)}); g.d(this,v);var I=Ch(function(){return new ca}); g.d(this,I);var G=Ch(function(){return new ik(z)}); g.d(this,G);var b=Ch(function(){return new vl(B,v,t.Ef)}); g.d(this,b);var e=Ch(function(){return new w8}); g.d(this,e);this.qv=Ch(function(){return new Dk(K)}); g.d(this,this.qv);this.v1=Ch(function(){return new U5(p)}); g.d(this,this.v1);this.c8=Ch(function(){return new rd(K)}); g.d(this,this.c8);this.P8=Ch(function(){return new Zg(K)}); g.d(this,this.P8);this.j3=Ch(function(){return new oK(K)}); g.d(this,this.j3);this.VW=Ch(function(){return new CS(K)}); g.d(this,this.VW);this.Ef=Ch(function(){return new T3(K)}); g.d(this,this.Ef);var w=Ch(function(){return new wL(M)}); g.d(this,w);var D=Ch(function(){return new Lh(t.Ef)}); g.d(this,D);this.Kz=Ch(function(){return new ah(K)}); g.d(this,this.Kz);this.Rt=Ch(function(){return new $R}); g.d(this,this.Rt);this.i_=Ch(function(){return new B$(K,e,t.Ef)}); g.d(this,this.i_);var y=F5({i_:this.i_,Ef:this.Ef,ac:D}),R=y.context,S=y.DU;this.KI=y.KI;this.ML=Ch(function(){return new hZ(K,t.Ef,t.Gh)}); g.d(this,this.ML);this.n6=Ch(function(){return new Rh(K)}); g.d(this,this.n6);this.Uf=Ch(function(){return new NH(K,t.i_,t.Ef)}); g.d(this,this.Uf);this.U1=Ch(function(){return new SH}); g.d(this,this.U1);y=Ch(function(){return new QE(B,b,v,t.Ef,D,"SLOT_TYPE_ABOVE_FEED",t.Uf,t.JU,t.Qn)}); g.d(this,y);this.kd=Ch(function(){return new f6(t.Ef)}); this.E3=Ch(function(){return new K7(t.Uf,K,t.Ef)}); g.d(this,this.E3);this.Gh=Ch(function(){return new tZ(K,I,t.E3,t.i_,t.KI,t.Ef,S)}); g.d(this,this.Gh);this.DM=new Jk(Wa,uy,function(L,q,V,c){return va(v.get(),L,q,V,c)},G,b,v,D,this.Ef,this.i_); g.d(this,this.DM);this.EW=new gU(G,y,f,this.Ef,z,this.i_,this.Uf,this.c8);g.d(this,this.EW);var E=new Or(K,this.EW,this.Uf,this.i_,this.ML);this.Cz=Ch(function(){return E}); this.eN=E;this.JU=new lk(G,b,this.Cz,this.ML,this.Uf,this.Ef,this.Gh,this.n6);g.d(this,this.JU);this.ZX=new dU(G,b,this.P8,this.Cz,R);g.d(this,this.ZX);this.d3=new rb(this.Ef,G,b,y,this.i_,this.ZX,f,this.j3);g.d(this,this.d3);this.So=Ch(function(){return new SN(w,v,D,t.Ef,t.Gh,t.Uf,t.n6)}); g.d(this,this.So);this.zw=Ch(function(){return new uS}); g.d(this,this.zw);this.lI=new Fl(z,this.qv,this.Ef);g.d(this,this.lI);this.Qh=new Ol(z);g.d(this,this.Qh);this.b2=new rU(z);g.d(this,this.b2);this.Bj=new od(z,this.Cz,R);g.d(this,this.Bj);this.sS=new C9(z,this.P8,this.Uf,this.i_,R);g.d(this,this.sS);this.Mq=new T6(z,this.i_);g.d(this,this.Mq);this.Qn=new Kg(z,this.ML,this.Uf,this.Gh,this.Cz);g.d(this,this.Qn);this.jt=new Ul(z);g.d(this,this.jt);this.h9=new pg(z);g.d(this,this.h9);this.Fg=new zI(z);g.d(this,this.Fg);this.qJ=new Mf(z);g.d(this,this.qJ); this.h9=new pg(z);g.d(this,this.h9);this.Tw=Ch(function(){return new jb}); g.d(this,this.Tw);this.us=Ch(function(){return new Yc(t.Uf)}); g.d(this,this.us);this.Iw=Ch(function(){return new Kcg(t.qv,t.Gh,z,I,t.E3)}); g.d(this,this.Iw);this.yf=Ch(function(){return new tq(t.d3,G,B)}); g.d(this,this.yf);this.n7=Ch(function(){return new vf(t.Ef,t.Gh,t.jt,t.E3)}); g.d(this,this.n7);this.Xg=Ch(function(){return new a$(z,t.h9,t.jt,t.i_,t.n6,t.Uf,t.U1,t.Gh,e,t.ML,t.E3,t.kd,t.j3,t.P8,t.c8,t.VW,t.v1,t.Kz,t.Ef,I,R,S)}); g.d(this,this.Xg);this.sX=Ch(function(){return new DS8(t.Uf,t.Gh,t.v1,t.Ef,t.E3,t.i_)}); g.d(this,this.sX);this.DO=Ch(function(){return new $dS(t.qv,t.Uf,t.Gh,I,t.E3,t.b2,t.qJ,t.v1,t.Ef,f)}); g.d(this,this.DO);this.R4=Ch(function(){return new $Sv(t.qv,t.Gh,I)}); g.d(this,this.R4);this.A6=new eH(z,this.Rt,B);g.d(this,this.A6);this.Wj={Rj:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.d3],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.JU],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.DM],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.EW],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.ZX]]),pO:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.So],["SLOT_TYPE_ABOVE_FEED",this.zw],["SLOT_TYPE_FORECASTING",this.zw], ["SLOT_TYPE_IN_PLAYER",this.zw],["SLOT_TYPE_PLAYER_BYTES",this.zw],["SLOT_TYPE_PLAYER_UNDERLAY",this.zw],["SLOT_TYPE_PLAYBACK_TRACKING",this.zw],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.zw]]),M2:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.lI],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.lI],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Qh],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Qh],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Qh],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Qh],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.Qh],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Qh],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Qh],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Qh],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Qh],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Qh],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Qh],["TRIGGER_TYPE_CLOSE_REQUESTED",this.b2],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Bj],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.sS],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.sS],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.sS],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.sS],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.sS],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.sS],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.sS],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Mq],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Mq],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.jt],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.Bj],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Fg],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.qJ],["TRIGGER_TYPE_AD_BREAK_STARTED",this.h9],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Qn],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.Qn],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Qn],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Qn],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Qn]]),uv:new Map([["SLOT_TYPE_ABOVE_FEED",this.Tw], ["SLOT_TYPE_AD_BREAK_REQUEST",this.Tw],["SLOT_TYPE_FORECASTING",this.Tw],["SLOT_TYPE_IN_PLAYER",this.Tw],["SLOT_TYPE_PLAYER_BYTES",this.us],["SLOT_TYPE_PLAYER_UNDERLAY",this.Tw],["SLOT_TYPE_PLAYBACK_TRACKING",this.Tw],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Tw]]),LO:new Map([["SLOT_TYPE_ABOVE_FEED",this.Iw],["SLOT_TYPE_AD_BREAK_REQUEST",this.yf],["SLOT_TYPE_FORECASTING",this.n7],["SLOT_TYPE_PLAYER_BYTES",this.Xg],["SLOT_TYPE_PLAYBACK_TRACKING",this.sX],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.sX],["SLOT_TYPE_IN_PLAYER",this.DO],["SLOT_TYPE_PLAYER_UNDERLAY",this.R4]])};this.listeners=[I.get()];this.xo={d3:this.d3,Ep:this.Ef.get(),Zq:this.v1.get(),Sh:this.Uf.get(),EW:this.EW,Ux:B.get(),CT:this.Rt.get(),yJ:this.lI,CJ:I.get(),Sv:this.i_.get()}}; RJv=function(z,K,f,M,p){g.J.call(this);var t=this,B=Ch(function(){return new t3(t.Ef)}); g.d(this,B);var v=Ch(function(){return new Nf(B,t.Ef)}); g.d(this,v);var I=Ch(function(){return new ca}); g.d(this,I);var G=Ch(function(){return new ik(z)}); g.d(this,G);var b=Ch(function(){return new vl(B,v,t.Ef)}); g.d(this,b);var e=Ch(function(){return new w8}); g.d(this,e);this.qv=Ch(function(){return new Dk(K)}); g.d(this,this.qv);this.v1=Ch(function(){return new U5(p)}); g.d(this,this.v1);this.c8=Ch(function(){return new rd(K)}); g.d(this,this.c8);this.P8=Ch(function(){return new Zg(K)}); g.d(this,this.P8);this.j3=Ch(function(){return new oK(K)}); g.d(this,this.j3);this.VW=Ch(function(){return new CS(K)}); g.d(this,this.VW);this.Ef=Ch(function(){return new T3(K)}); g.d(this,this.Ef);var w=Ch(function(){return new wL(M)}); g.d(this,w);var D=Ch(function(){return new Lh(t.Ef)}); g.d(this,D);var y=Ch(function(){return new QE(B,b,v,t.Ef,D,null,null,t.JU,t.Qn)}); g.d(this,y);this.Kz=Ch(function(){return new ah(K)}); g.d(this,this.Kz);this.Rt=Ch(function(){return new $R}); g.d(this,this.Rt);this.i_=Ch(function(){return new B$(K,e,t.Ef)}); g.d(this,this.i_);var R=F5({i_:this.i_,Ef:this.Ef,ac:D}),S=R.context,E=R.DU;this.KI=R.KI;this.ML=Ch(function(){return new hZ(K,t.Ef,t.Gh)}); this.Uf=Ch(function(){return new NH(K,t.i_,t.Ef)}); g.d(this,this.Uf);this.U1=Ch(function(){return new SH}); g.d(this,this.U1);this.E3=Ch(function(){return new K7(t.Uf,K,t.Ef)}); g.d(this,this.E3);this.Gh=Ch(function(){return new tZ(K,I,t.E3,t.i_,t.KI,t.Ef,E)}); g.d(this,this.Gh);this.kd=Ch(function(){return new f6(t.Ef)}); g.d(this,this.kd);this.DM=new Jk(Wa,uy,function(q,V,c,O){return va(v.get(),q,V,c,O)},G,b,v,D,this.Ef,this.i_); g.d(this,this.DM);this.EW=new gU(G,y,f,this.Ef,z,this.i_,this.Uf,this.c8);g.d(this,this.EW);var L=new Or(K,this.EW,this.Uf,this.i_,this.ML);this.Cz=Ch(function(){return L}); this.eN=L;this.JU=new lk(G,b,this.Cz,this.ML,this.Uf,this.Ef,this.Gh);g.d(this,this.JU);this.ZX=new dU(G,b,this.P8,this.Cz,S);g.d(this,this.ZX);this.d3=new rb(this.Ef,G,b,y,this.i_,this.ZX,f,this.j3);g.d(this,this.d3);this.So=Ch(function(){return new SN(w,v,D,t.Ef,t.Gh,t.Uf)}); g.d(this,this.So);this.zw=Ch(function(){return new uS}); g.d(this,this.zw);this.lI=new Fl(z,this.qv,this.Ef);g.d(this,this.lI);this.Qh=new Ol(z);g.d(this,this.Qh);this.b2=new rU(z);g.d(this,this.b2);this.Bj=new od(z,this.Cz,S);g.d(this,this.Bj);this.sS=new C9(z,this.P8,this.Uf,this.i_,S);g.d(this,this.sS);this.jt=new Ul(z);g.d(this,this.jt);this.Fg=new zI(z);g.d(this,this.Fg);this.qJ=new Mf(z);g.d(this,this.qJ);this.n6=Ch(function(){return new Rh(K)}); g.d(this,this.n6);this.h9=new pg(z);g.d(this,this.h9);this.Qn=new Kg(z,this.ML,this.Uf,this.Gh,this.Cz);g.d(this,this.Qn);this.Tw=Ch(function(){return new jb}); g.d(this,this.Tw);this.us=Ch(function(){return new Yc(t.Uf)}); g.d(this,this.us);this.yf=Ch(function(){return new tq(t.d3,G,B)}); g.d(this,this.yf);this.n7=Ch(function(){return new vf(t.Ef,t.Gh,t.jt,t.E3)}); g.d(this,this.n7);this.DO=Ch(function(){return new flI(t.qv,t.Uf,t.Gh,I,t.E3,t.b2,t.qJ,t.v1,t.Ef,f)}); g.d(this,this.DO);this.Xg=Ch(function(){return new R$(z,t.h9,t.jt,t.Gh,t.E3,t.kd,t.j3,t.i_,t.Uf,t.U1,t.P8,t.c8,t.VW,t.v1,t.Kz,t.Ef,t.n6,S,E)}); g.d(this,this.Xg);this.A6=new eH(z,this.Rt,B);g.d(this,this.A6);this.Wj={Rj:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.d3],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.JU],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.DM],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.EW],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.ZX]]),pO:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.So],["SLOT_TYPE_FORECASTING",this.zw],["SLOT_TYPE_IN_PLAYER",this.zw], ["SLOT_TYPE_PLAYER_BYTES",this.zw]]),M2:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.lI],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Qh],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Qh],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Qh],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Qh],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Qh],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Qh],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Qh],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Qh],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Qh], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Qh],["TRIGGER_TYPE_CLOSE_REQUESTED",this.b2],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Bj],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.sS],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.sS],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.sS],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.jt],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Bj],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Fg],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.qJ],["TRIGGER_TYPE_AD_BREAK_STARTED",this.h9],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Qn],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.Qn],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Qn],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Qn],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Qn]]),uv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Tw],["SLOT_TYPE_FORECASTING",this.Tw],["SLOT_TYPE_IN_PLAYER",this.Tw],["SLOT_TYPE_PLAYER_BYTES",this.us]]), LO:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.yf],["SLOT_TYPE_FORECASTING",this.n7],["SLOT_TYPE_IN_PLAYER",this.DO],["SLOT_TYPE_PLAYER_BYTES",this.Xg]])};this.listeners=[I.get()];this.xo={d3:this.d3,Ep:this.Ef.get(),Zq:this.v1.get(),Sh:this.Uf.get(),EW:this.EW,Ux:B.get(),CT:this.Rt.get(),yJ:this.lI,CJ:I.get(),Sv:this.i_.get()}}; SkW=function(z,K,f,M,p){g.J.call(this);var t=this,B=Ch(function(){return new t3(t.Ef)}); g.d(this,B);var v=Ch(function(){return new Nf(B,t.Ef)}); g.d(this,v);var I=Ch(function(){return new ca}); g.d(this,I);var G=Ch(function(){return new ik(z)}); g.d(this,G);var b=Ch(function(){return new vl(B,v,t.Ef)}); g.d(this,b);var e=Ch(function(){return new w8}); g.d(this,e);this.qv=Ch(function(){return new Dk(K)}); g.d(this,this.qv);this.v1=Ch(function(){return new U5(p)}); g.d(this,this.v1);this.c8=Ch(function(){return new rd(K)}); g.d(this,this.c8);this.P8=Ch(function(){return new Zg(K)}); g.d(this,this.P8);this.j3=Ch(function(){return new oK(K)}); g.d(this,this.j3);this.VW=Ch(function(){return new CS(K)}); g.d(this,this.VW);this.Ef=Ch(function(){return new T3(K)}); g.d(this,this.Ef);var w=Ch(function(){return new wL(M)}); g.d(this,w);var D=Ch(function(){return new Lh(t.Ef)}); g.d(this,D);var y=Ch(function(){return new QE(B,b,v,t.Ef,D,null,null,null,null)}); g.d(this,y);this.Kz=Ch(function(){return new ah(K)}); g.d(this,this.Kz);this.i_=Ch(function(){return new B$(K,e,t.Ef)}); g.d(this,this.i_);var R=F5({i_:this.i_,Ef:this.Ef,ac:D}),S=R.context,E=R.DU;this.KI=R.KI;this.Uf=Ch(function(){return new NH(K,t.i_,t.Ef)}); g.d(this,this.Uf);this.U1=Ch(function(){return new SH}); g.d(this,this.U1);this.E3=Ch(function(){return new K7(t.Uf,K,t.Ef)}); g.d(this,this.E3);this.Gh=Ch(function(){return new tZ(K,I,t.E3,t.i_,t.KI,t.Ef,E)}); g.d(this,this.Gh);this.kd=Ch(function(){return new f6(t.Ef)}); g.d(this,this.kd);this.DM=new Jk(Wa,uy,function(q,V,c,O){return va(v.get(),q,V,c,O)},G,b,v,D,this.Ef,this.i_); g.d(this,this.DM);this.EW=new gU(G,y,f,this.Ef,z,this.i_,this.Uf,this.c8);g.d(this,this.EW);var L=new Or(K,this.EW,this.Uf,this.i_);this.Cz=Ch(function(){return L}); this.eN=L;this.ZX=new dU(G,b,this.P8,this.Cz,S);g.d(this,this.ZX);this.d3=new rb(this.Ef,G,b,y,this.i_,this.ZX,f,this.j3);g.d(this,this.d3);this.So=Ch(function(){return new SN(w,v,D,t.Ef,t.Gh,t.Uf)}); g.d(this,this.So);this.zw=Ch(function(){return new uS}); g.d(this,this.zw);this.lI=new Fl(z,this.qv,this.Ef);g.d(this,this.lI);this.Qh=new Ol(z);g.d(this,this.Qh);this.Bj=new od(z,this.Cz,S);g.d(this,this.Bj);this.sS=new C9(z,this.P8,this.Uf,this.i_,S);g.d(this,this.sS);this.jt=new Ul(z);g.d(this,this.jt);this.Fg=new zI(z);g.d(this,this.Fg);this.n6=Ch(function(){return new Rh(K)}); g.d(this,this.n6);this.h9=new pg(z);g.d(this,this.h9);this.Tw=Ch(function(){return new jb}); g.d(this,this.Tw);this.us=Ch(function(){return new Yc(t.Uf)}); g.d(this,this.us);this.yf=Ch(function(){return new tq(t.d3,G,B)}); g.d(this,this.yf);this.n7=Ch(function(){return new vf(t.Ef,t.Gh,t.jt,t.E3)}); g.d(this,this.n7);this.Oq=Ch(function(){return new wPT(t.qv,t.Uf,t.Gh,I,f,t.Ef)}); g.d(this,this.Oq);this.Xg=Ch(function(){return new R$(z,t.h9,t.jt,t.Gh,t.E3,t.kd,t.j3,t.i_,t.Uf,t.U1,t.P8,t.c8,t.VW,t.v1,t.Kz,t.Ef,t.n6,S,E)}); g.d(this,this.Xg);this.Wj={Rj:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.d3],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.DM],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.EW],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.ZX]]),pO:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.So],["SLOT_TYPE_FORECASTING",this.zw],["SLOT_TYPE_IN_PLAYER",this.zw],["SLOT_TYPE_PLAYER_BYTES",this.zw]]),M2:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.lI],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Qh],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Qh],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Qh],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Qh],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Qh],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Qh],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Qh],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Qh],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Qh],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Bj],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.sS],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.sS],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.jt],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Bj],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Fg],["TRIGGER_TYPE_AD_BREAK_STARTED",this.h9]]),uv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Tw],["SLOT_TYPE_ABOVE_FEED",this.Tw],["SLOT_TYPE_FORECASTING",this.Tw],["SLOT_TYPE_IN_PLAYER",this.Tw],["SLOT_TYPE_PLAYER_BYTES",this.us]]),LO:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.yf],["SLOT_TYPE_FORECASTING",this.n7],["SLOT_TYPE_IN_PLAYER", this.Oq],["SLOT_TYPE_PLAYER_BYTES",this.Xg]])};this.listeners=[I.get()];this.xo={d3:this.d3,Ep:this.Ef.get(),Zq:this.v1.get(),Sh:this.Uf.get(),EW:this.EW,Ux:B.get(),CT:null,yJ:this.lI,CJ:I.get(),Sv:this.i_.get()}}; uhg=function(z,K,f,M,p){g.J.call(this);var t=this,B=Ch(function(){return new t3(t.Ef)}); g.d(this,B);var v=Ch(function(){return new Nf(B,t.Ef)}); g.d(this,v);var I=Ch(function(){return new ca}); g.d(this,I);var G=Ch(function(){return new ik(z)}); g.d(this,G);var b=Ch(function(){return new vl(B,v,t.Ef)}); g.d(this,b);var e=Ch(function(){return new w8}); g.d(this,e);this.YI=Ch(function(){return new hJW(K)}); g.d(this,this.YI);this.qv=Ch(function(){return new Dk(K)}); g.d(this,this.qv);this.v1=Ch(function(){return new U5(p)}); g.d(this,this.v1);this.c8=Ch(function(){return new rd(K)}); g.d(this,this.c8);this.P8=Ch(function(){return new Zg(K)}); g.d(this,this.P8);this.j3=Ch(function(){return new oK(K)}); g.d(this,this.j3);this.VW=Ch(function(){return new CS(K)}); g.d(this,this.VW);this.Ef=Ch(function(){return new T3(K)}); g.d(this,this.Ef);var w=Ch(function(){return new wL(M)}); g.d(this,w);var D=Ch(function(){return new Lh(t.Ef)}); g.d(this,D);var y=Ch(function(){return new QE(B,b,v,t.Ef,D,null,null,null,null)}); g.d(this,y);this.Kz=Ch(function(){return new ah(K)}); g.d(this,this.Kz);this.i_=Ch(function(){return new B$(K,e,t.Ef)}); g.d(this,this.i_);var R=F5({i_:this.i_,Ef:this.Ef,ac:D}),S=R.context,E=R.DU;this.KI=R.KI;this.Uf=Ch(function(){return new NH(K,t.i_,t.Ef)}); g.d(this,this.Uf);this.U1=Ch(function(){return new SH}); g.d(this,this.U1);this.E3=Ch(function(){return new K7(t.Uf,K,t.Ef)}); g.d(this,this.E3);this.Gh=Ch(function(){return new tZ(K,I,t.E3,t.i_,t.KI,t.Ef,E)}); g.d(this,this.Gh);this.kd=Ch(function(){return new f6(t.Ef)}); g.d(this,this.kd);this.DM=new Jk(jDS,uy,function(q,V,c,O){return IxS(v.get(),q,V,c,O)},G,b,v,D,this.Ef,this.i_); g.d(this,this.DM);this.EW=new gU(G,y,f,this.Ef,z,this.i_,this.Uf,this.c8);g.d(this,this.EW);var L=new Or(K,this.EW,this.Uf,this.i_);this.Cz=Ch(function(){return L}); this.eN=L;this.ZX=new dU(G,b,this.P8,this.Cz,S);g.d(this,this.ZX);this.d3=new rb(this.Ef,G,b,y,this.i_,this.ZX,f,this.j3);g.d(this,this.d3);this.So=Ch(function(){return new SN(w,v,D,t.Ef,t.Gh,t.Uf)}); g.d(this,this.So);this.zw=Ch(function(){return new uS}); g.d(this,this.zw);this.lI=new Fl(z,this.qv,this.Ef);g.d(this,this.lI);this.Qh=new Ol(z);g.d(this,this.Qh);this.Bj=new od(z,this.Cz,S);g.d(this,this.Bj);this.sS=new C9(z,this.P8,this.Uf,this.i_,S);g.d(this,this.sS);this.jt=new Ul(z);g.d(this,this.jt);this.Fg=new zI(z);g.d(this,this.Fg);this.n6=Ch(function(){return new Rh(K)}); g.d(this,this.n6);this.h9=new pg(z);g.d(this,this.h9);this.Tw=Ch(function(){return new jb}); g.d(this,this.Tw);this.us=Ch(function(){return new Yc(t.Uf)}); g.d(this,this.us);this.yf=Ch(function(){return new tq(t.d3,G,B)}); g.d(this,this.yf);this.n7=Ch(function(){return new vf(t.Ef,t.Gh,t.jt,t.E3)}); g.d(this,this.n7);this.Xg=Ch(function(){return new R$(z,t.h9,t.jt,t.Gh,t.E3,t.kd,t.j3,t.i_,t.Uf,t.U1,t.P8,t.c8,t.VW,t.v1,t.Kz,t.Ef,t.n6,S,E)}); g.d(this,this.Xg);this.IE=Ch(function(){return new pY5(t.qv,t.Uf,t.Gh,I,t.YI,f,t.i_)}); g.d(this,this.IE);this.Wj={Rj:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.d3],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.DM],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.EW],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.ZX]]),pO:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.So],["SLOT_TYPE_FORECASTING",this.zw],["SLOT_TYPE_IN_PLAYER",this.zw],["SLOT_TYPE_PLAYER_BYTES",this.zw]]),M2:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.lI],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Qh],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Qh],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Qh],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Qh],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Qh],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Qh],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Qh],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Qh],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Qh],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Bj],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.sS],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.sS],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.jt],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Bj],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Fg],["TRIGGER_TYPE_AD_BREAK_STARTED",this.h9]]),uv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Tw],["SLOT_TYPE_FORECASTING",this.Tw],["SLOT_TYPE_IN_PLAYER",this.Tw],["SLOT_TYPE_PLAYER_BYTES",this.us]]),LO:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.yf],["SLOT_TYPE_FORECASTING",this.n7],["SLOT_TYPE_IN_PLAYER",this.IE],["SLOT_TYPE_PLAYER_BYTES", this.Xg]])};this.listeners=[I.get()];this.xo={d3:this.d3,Ep:this.Ef.get(),Zq:this.v1.get(),Sh:this.Uf.get(),EW:this.EW,Ux:B.get(),CT:null,yJ:this.lI,CJ:I.get(),Sv:this.i_.get()}}; LCu=function(z,K,f,M,p){g.J.call(this);var t=this,B=Ch(function(){return new t3(t.Ef)}); g.d(this,B);var v=Ch(function(){return new Nf(B,t.Ef)}); g.d(this,v);var I=Ch(function(){return new ca}); g.d(this,I);var G=Ch(function(){return new ik(z)}); g.d(this,G);var b=Ch(function(){return new vl(B,v,t.Ef)}); g.d(this,b);var e=Ch(function(){return new w8}); g.d(this,e);this.YI=Ch(function(){return new hJW(K)}); g.d(this,this.YI);this.qv=Ch(function(){return new Dk(K)}); g.d(this,this.qv);this.v1=Ch(function(){return new U5(p)}); g.d(this,this.v1);this.c8=Ch(function(){return new rd(K)}); g.d(this,this.c8);this.P8=Ch(function(){return new Zg(K)}); g.d(this,this.P8);this.j3=Ch(function(){return new oK(K)}); g.d(this,this.j3);this.VW=Ch(function(){return new CS(K)}); g.d(this,this.VW);this.Ef=Ch(function(){return new T3(K)}); g.d(this,this.Ef);var w=Ch(function(){return new wL(M)}); g.d(this,w);var D=Ch(function(){return new Lh(t.Ef)}); g.d(this,D);this.Kz=Ch(function(){return new ah(K)}); g.d(this,this.Kz);this.i_=Ch(function(){return new B$(K,e,t.Ef)}); g.d(this,this.i_);var y=F5({i_:this.i_,Ef:this.Ef,ac:D}),R=y.context,S=y.DU;this.KI=y.KI;this.ML=Ch(function(){return new hZ(K,t.Ef,t.Gh)}); g.d(this,this.ML);this.n6=Ch(function(){return new Rh(K)}); g.d(this,this.n6);this.Uf=Ch(function(){return new NH(K,t.i_,t.Ef)}); g.d(this,this.Uf);this.U1=Ch(function(){return new SH}); g.d(this,this.U1);y=Ch(function(){return new QE(B,b,v,t.Ef,D,null,t.Uf,t.JU,t.Qn,3)}); g.d(this,y);this.kd=Ch(function(){return new f6(t.Ef)}); this.E3=Ch(function(){return new K7(t.Uf,K,t.Ef)}); g.d(this,this.E3);this.Gh=Ch(function(){return new tZ(K,I,t.E3,t.i_,t.KI,t.Ef,S)}); g.d(this,this.Gh);this.EW=new gU(G,y,f,this.Ef,z,this.i_,this.Uf,this.c8);g.d(this,this.EW);var E=new Or(K,this.EW,this.Uf,this.i_,this.ML);this.Cz=Ch(function(){return E}); this.eN=E;this.DM=new Jk(Yj5,uy,function(L,q,V,c){return IxS(v.get(),L,q,V,c)},G,b,v,D,this.Ef,this.i_); g.d(this,this.DM);this.JU=new lk(G,b,this.Cz,this.ML,this.Uf,this.Ef,this.Gh,this.n6);g.d(this,this.JU);this.ZX=new dU(G,b,this.P8,this.Cz,R);g.d(this,this.ZX);this.d3=new rb(this.Ef,G,b,y,this.i_,this.ZX,f,this.j3);g.d(this,this.d3);this.So=Ch(function(){return new SN(w,v,D,t.Ef,t.Gh,t.Uf,t.n6)}); g.d(this,this.So);this.zw=Ch(function(){return new uS}); g.d(this,this.zw);this.lI=new Fl(z,this.qv,this.Ef);g.d(this,this.lI);this.Qh=new Ol(z);g.d(this,this.Qh);this.Bj=new od(z,this.Cz,R);g.d(this,this.Bj);this.sS=new C9(z,this.P8,this.Uf,this.i_,R);g.d(this,this.sS);this.Mq=new T6(z,this.i_);g.d(this,this.Mq);this.Qn=new Kg(z,this.ML,this.Uf,this.Gh,this.Cz);g.d(this,this.Qn);this.jt=new Ul(z);g.d(this,this.jt);this.Fg=new zI(z);g.d(this,this.Fg);this.h9=new pg(z);g.d(this,this.h9);this.Tw=Ch(function(){return new jb}); g.d(this,this.Tw);this.us=Ch(function(){return new Yc(t.Uf)}); g.d(this,this.us);this.yf=Ch(function(){return new tq(t.d3,G,B)}); g.d(this,this.yf);this.n7=Ch(function(){return new vf(t.Ef,t.Gh,t.jt,t.E3)}); g.d(this,this.n7);this.Xg=Ch(function(){return new a$(z,t.h9,t.jt,t.i_,t.n6,t.Uf,t.U1,t.Gh,e,t.ML,t.E3,t.kd,t.j3,t.P8,t.c8,t.VW,t.v1,t.Kz,t.Ef,I,R,S)}); g.d(this,this.Xg);this.DO=Ch(function(){return new thp(t.qv,t.Uf,t.Gh,I,t.YI,f,t.Ef,t.i_)}); g.d(this,this.DO);this.Wj={Rj:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.d3],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.JU],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.DM],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.EW],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.ZX]]),pO:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.So],["SLOT_TYPE_FORECASTING",this.zw],["SLOT_TYPE_IN_PLAYER",this.zw],["SLOT_TYPE_PLAYER_BYTES",this.zw]]),M2:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.lI],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Qh],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Qh],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Qh],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Qh],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Qh],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Qh],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Qh],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Qh],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Qh],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Bj],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.sS],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.sS],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Mq],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Mq],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.jt],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Bj],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Fg],["TRIGGER_TYPE_AD_BREAK_STARTED",this.h9],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Qn],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.Qn],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Qn],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Qn],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Qn]]),uv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Tw],["SLOT_TYPE_FORECASTING",this.Tw],["SLOT_TYPE_IN_PLAYER",this.Tw],["SLOT_TYPE_PLAYER_BYTES",this.us]]),LO:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.yf],["SLOT_TYPE_FORECASTING",this.n7],["SLOT_TYPE_PLAYER_BYTES",this.Xg],["SLOT_TYPE_IN_PLAYER",this.DO]])};this.listeners=[I.get()]; this.xo={d3:this.d3,Ep:this.Ef.get(),Zq:this.v1.get(),Sh:this.Uf.get(),EW:this.EW,Ux:B.get(),CT:null,yJ:this.lI,CJ:I.get(),Sv:this.i_.get()}}; P0W=function(z,K,f,M){function p(){return t.Y} g.J.call(this);var t=this;z.Z().experiments.sf("html5_dispose_of_manager_before_dependency")?(this.S=EGv(p,z,K,f,M),this.Y=(new Tn(this.S)).T(),g.d(this,this.Y),g.d(this,this.S)):(this.S=EGv(p,z,K,f,M),g.d(this,this.S),this.Y=(new Tn(this.S)).T(),g.d(this,this.Y))}; L7=function(z){return z.S.xo}; EGv=function(z,K,f,M,p){try{var t=K.Z();if(g.$t(t))var B=new ama(z,K,f,M,p);else if(g.MR(t))B=new RJv(z,K,f,M,p);else if(r7(t))B=new SkW(z,K,f,M,p);else if(g.O$(t))B=new uhg(z,K,f,M,p);else if(g.jo(t))B=new LCu(z,K,f,M,p);else throw new TypeError("Unknown web interface");return B}catch(v){return B=K.Z(),R3("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:B.S.cplatform,interface:B.S.c,bDa:B.S.cver,kYE:B.S.ctheme,Mqd:B.S.cplayer,FDh:B.playerStyle}),new vGq(z,K,f,M,p)}}; HBu=function(z){Ua.call(this,z)}; QLd=function(z,K,f,M,p){BP.call(this,z,{j:"div",K:"ytp-ad-timed-pie-countdown-container",L:[{j:"svg",K:"ytp-ad-timed-pie-countdown",V:{viewBox:"0 0 20 20"},L:[{j:"circle",K:"ytp-ad-timed-pie-countdown-background",V:{r:"10",cx:"10",cy:"10"}},{j:"circle",K:"ytp-ad-timed-pie-countdown-inner",V:{r:"5",cx:"10",cy:"10"}},{j:"circle",K:"ytp-ad-timed-pie-countdown-outer",V:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",K,f,M,p);this.J=this.dE("ytp-ad-timed-pie-countdown-container");this.T=this.dE("ytp-ad-timed-pie-countdown-inner"); this.W=this.dE("ytp-ad-timed-pie-countdown-outer");this.Y=Math.ceil(2*Math.PI*5);this.hide()}; qka=function(z,K,f,M,p,t){Sj.call(this,z,{j:"div",K:"ytp-ad-action-interstitial",V:{tabindex:"0"},L:[{j:"div",K:"ytp-ad-action-interstitial-background-container"},{j:"div",K:"ytp-ad-action-interstitial-slot",L:[{j:"div",K:"ytp-ad-action-interstitial-instream-info"},{j:"div",K:"ytp-ad-action-interstitial-card",L:[{j:"div",K:"ytp-ad-action-interstitial-image-container"},{j:"div",K:"ytp-ad-action-interstitial-headline-container"},{j:"div",K:"ytp-ad-action-interstitial-description-container"},{j:"div", K:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",K,f,M);this.YL=p;this.v_=t;this.navigationEndpoint=this.S=this.skipButton=this.Y=this.actionButton=null;this.Px=this.dE("ytp-ad-action-interstitial-instream-info");this.vx=this.dE("ytp-ad-action-interstitial-image-container");this.N=new Zv(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,"ytp-ad-action-interstitial-image");g.d(this,this.N);this.N.hL(this.vx);this.eV=this.dE("ytp-ad-action-interstitial-headline-container"); this.W=new pd(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,"ytp-ad-action-interstitial-headline");g.d(this,this.W);this.W.hL(this.eV);this.l_=this.dE("ytp-ad-action-interstitial-description-container");this.T=new pd(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,"ytp-ad-action-interstitial-description");g.d(this,this.T);this.T.hL(this.l_);this.rE=this.dE("ytp-ad-action-interstitial-background-container");this.Xc=new Zv(this.api,this.layoutId,this.interactionLoggingClientData, this.Zq,"ytp-ad-action-interstitial-background",!0);g.d(this,this.Xc);this.Xc.hL(this.rE);this.VE=this.dE("ytp-ad-action-interstitial-action-button-container");this.slot=this.dE("ytp-ad-action-interstitial-slot");this.Df=this.dE("ytp-ad-action-interstitial-card");this.J=new WK;g.d(this,this.J);this.hide()}; mFa=function(z){var K=g.rT("html5-video-player");K&&g.k4(K,"ytp-ad-display-override",z)}; WCT=function(z,K,f,M){Sj.call(this,z,{j:"div",K:"ytp-ad-overlay-slot",L:[{j:"div",K:"ytp-ad-overlay-container"}]},"invideo-overlay",K,f,M);this.N=[];this.rE=this.eV=this.J=this.VE=this.Px=null;this.Xc=!1;this.W=null;this.l_=0;z=this.dE("ytp-ad-overlay-container");this.vx=new DW(z,45E3,6E3,.3,.4);g.d(this,this.vx);this.T=lmq(this);g.d(this,this.T);this.T.hL(z);this.Y=VDp(this);g.d(this,this.Y);this.Y.hL(z);this.S=nGS(this);g.d(this,this.S);this.S.hL(z);this.hide()}; lmq=function(z){var K=new g.RT({j:"div",K:"ytp-ad-text-overlay",L:[{j:"div",K:"ytp-ad-overlay-ad-info-button-container"},{j:"div",K:"ytp-ad-overlay-close-container",L:[{j:"button",K:"ytp-ad-overlay-close-button",L:[At(J78)]}]},{j:"div",K:"ytp-ad-overlay-title",qc:"{{title}}"},{j:"div",K:"ytp-ad-overlay-desc",qc:"{{description}}"},{j:"div",Wx:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],qc:"{{displayUrl}}"}]});z.X(K.dE("ytp-ad-overlay-title"),"click",function(f){Eb(z,K.element,f)}); z.X(K.dE("ytp-ad-overlay-link"),"click",function(f){Eb(z,K.element,f)}); z.X(K.dE("ytp-ad-overlay-close-container"),"click",z.nw);K.hide();return K}; VDp=function(z){var K=new g.RT({j:"div",Wx:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],L:[{j:"div",K:"ytp-ad-overlay-ad-info-button-container"},{j:"div",K:"ytp-ad-overlay-close-container",L:[{j:"button",K:"ytp-ad-overlay-close-button",L:[At(J78)]}]},{j:"div",K:"ytp-ad-overlay-text-image",L:[{j:"img",V:{src:"{{imageUrl}}"}}]},{j:"div",K:"ytp-ad-overlay-title",qc:"{{title}}"},{j:"div",K:"ytp-ad-overlay-desc",qc:"{{description}}"},{j:"div",Wx:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], qc:"{{displayUrl}}"}]});z.X(K.dE("ytp-ad-overlay-title"),"click",function(f){Eb(z,K.element,f)}); z.X(K.dE("ytp-ad-overlay-link"),"click",function(f){Eb(z,K.element,f)}); z.X(K.dE("ytp-ad-overlay-close-container"),"click",z.nw);z.X(K.dE("ytp-ad-overlay-text-image"),"click",z.h6_);K.hide();return K}; nGS=function(z){var K=new g.RT({j:"div",K:"ytp-ad-image-overlay",L:[{j:"div",K:"ytp-ad-overlay-ad-info-button-container"},{j:"div",K:"ytp-ad-overlay-close-container",L:[{j:"button",K:"ytp-ad-overlay-close-button",L:[At(J78)]}]},{j:"div",K:"ytp-ad-overlay-image",L:[{j:"img",V:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});z.X(K.dE("ytp-ad-overlay-image"),"click",function(f){Eb(z,K.element,f)}); z.X(K.dE("ytp-ad-overlay-close-container"),"click",z.nw);K.hide();return K}; gGa=function(z,K){if(K){var f=g.A(K,Xd)||null;f==null?g.sm(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(K=g.rT("video-ads ytp-ad-module")||null,K==null?g.sm(Error("Could not locate the root ads container element to attach the ad info dialog.")):(z.eV=new g.RT({j:"div",K:"ytp-ad-overlay-ad-info-dialog-container"}),g.d(z,z.eV),z.eV.hL(K),K=new MS(z.api,z.layoutId,z.interactionLoggingClientData,z.Zq,z.eV.element,!1),g.d(z,K),K.init(ej("ad-info-hover-text-button"),f,z.macros), z.W?(K.hL(z.W,0),K.subscribe("f",z.iHL,z),K.subscribe("e",z.ew,z),z.X(z.W,"click",z.Fe_),z.X(g.rT("ytp-ad-button",K.element),"click",function(){var M;if(g.A((M=g.A(f.button,g.Fd))==null?void 0:M.serviceEndpoint,KWq))z.Xc=z.api.getPlayerState(1)===2,z.api.pauseVideo();else z.api.onAdUxClicked("ad-info-hover-text-button",z.layoutId)}),z.rE=K):g.sm(Error("Ad info button container within overlay ad was not present."))))}else g.Al(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; dFI=function(z,K){if(iBS(z,P$)||z.api.isMinimized())return!1;var f=un(K.title),M=un(K.description);if(g.h6(f)||g.h6(M))return!1;z.createServerVe(z.T.element,K.trackingParams||null);z.T.updateValue("title",un(K.title));z.T.updateValue("description",un(K.description));z.T.updateValue("displayUrl",un(K.displayUrl));K.navigationEndpoint&&g.Po(z.N,K.navigationEndpoint);z.T.show();z.vx.start();z.logVisibility(z.T.element,!0);z.X(z.T.element,"mouseover",function(){z.l_++}); return!0}; c7a=function(z,K){if(iBS(z,P$)||z.api.isMinimized())return!1;var f=un(K.title),M=un(K.description);if(g.h6(f)||g.h6(M))return!1;z.createServerVe(z.Y.element,K.trackingParams||null);z.Y.updateValue("title",un(K.title));z.Y.updateValue("description",un(K.description));z.Y.updateValue("displayUrl",un(K.displayUrl));z.Y.updateValue("imageUrl",b8o(K.image));K.navigationEndpoint&&g.Po(z.N,K.navigationEndpoint);z.VE=K.imageNavigationEndpoint||null;z.Y.show();z.vx.start();z.logVisibility(z.Y.element,!0); z.X(z.Y.element,"mouseover",function(){z.l_++}); return!0}; sLo=function(z,K){if(z.api.isMinimized())return!1;var f=eWu(K.image),M=f;f.width0?(K=new xk(z.api,z.S), K.hL(z.playerOverlay),g.d(z,K)):(z=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(K)),g.sm(z))}}else g.sm(Error("addCommonComponents() needs to be called before starting countdown."))}; C08=function(z){function K(f){return{toString:function(){return f()}}} z.macros.SURVEY_LOCAL_TIME_EPOCH_S=K(function(){var f=new Date;return(Math.round(f.valueOf()/1E3)+-1*f.getTimezoneOffset()*60).toString()}); z.macros.SURVEY_ELAPSED_MS=K(function(){return(Date.now()-z.T).toString()})}; TOu=function(z,K,f,M,p){mP.call(this,z,K,f,M,"survey-question-multi-select");this.l_=p;this.noneOfTheAbove=null;this.submitEndpoints=[];this.W=null;this.hide()}; UFg=function(z,K,f){z.noneOfTheAbove=new FC8(z.api,z.layoutId,z.interactionLoggingClientData,z.Zq);z.noneOfTheAbove.hL(z.answers);z.noneOfTheAbove.init(ej("survey-none-of-the-above"),K,f)}; KS4=function(z){z.Y.forEach(function(K){K.S.toggleButton(!1)}); zp2(z,!0)}; zp2=function(z,K){var f=z.J;z=$8_(z);K=K===void 0?!1:K;f.S&&(z?f.S.hide():f.S.show(),K&&f.S instanceof HP&&!f.S.J&&IhS(f.S,!1));f.Y&&(z?f.Y.show():f.Y.hide())}; $8_=function(z){return z.Y.some(function(K){return K.S.isToggled()})||z.noneOfTheAbove.button.isToggled()}; ly=function(z,K,f,M,p){mP.call(this,z,K,f,M,"survey-question-single-select",function(B){t.api.Z().B("supports_multi_step_on_desktop")&&p([B])}); var t=this;this.hide()}; VH=function(z,K,f,M){Sj.call(this,z,{j:"div",K:"ytp-ad-survey",L:[{j:"div",K:"ytp-ad-survey-questions"}]},"survey",K,f,M);this.questions=[];this.Y=[];this.conditioningRules=[];this.S=0;this.W=this.dE("ytp-ad-survey-questions");this.api.Z().B("fix_survey_color_contrast_on_destop")&&this.dE("ytp-ad-survey").classList.add("color-contrast-fix");this.api.Z().B("web_enable_speedmaster")&&this.dE("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; p59=function(z,K){var f=z.Y[K],M;(M=z.T)==null||M.dispose();g.A(f,je)?fT1(z,g.A(f,je),z.macros):g.A(f,Av)&&Mq7(z,g.A(f,Av),z.macros);z.S=K}; fT1=function(z,K,f){var M=new ly(z.api,z.layoutId,z.interactionLoggingClientData,z.Zq,z.J.bind(z));M.hL(z.W);M.init(ej("survey-question-single-select"),K,f);z.api.Z().B("supports_multi_step_on_desktop")?z.T=M:z.questions.push(M);g.d(z,M)}; Mq7=function(z,K,f){var M=new TOu(z.api,z.layoutId,z.interactionLoggingClientData,z.Zq,z.J.bind(z));M.hL(z.W);M.init(ej("survey-question-multi-select"),K,f);z.api.Z().B("supports_multi_step_on_desktop")?z.T=M:z.questions.push(M);g.d(z,M)}; n7=function(z,K,f,M){Sj.call(this,z,{j:"div",K:"ytp-ad-survey-interstitial",L:[{j:"div",K:"ytp-ad-survey-interstitial-contents",L:[{j:"div",K:"ytp-ad-survey-interstitial-logo",L:[{j:"div",K:"ytp-ad-survey-interstitial-logo-image"}]},{j:"div",K:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",K,f,M);this.S=this.actionButton=null;this.interstitial=this.dE("ytp-ad-survey-interstitial");this.Y=this.dE("ytp-ad-survey-interstitial-contents");this.text=this.dE("ytp-ad-survey-interstitial-text"); this.logoImage=this.dE("ytp-ad-survey-interstitial-logo-image");this.transition=new g.I3(this,500,!1,300);g.d(this,this.transition)}; tq1=function(z,K){K=K&&rM(K)||"";if(g.h6(K))g.Al(Error("Found ThumbnailDetails without valid image URL"));else{var f=z.style;z=z.style.cssText;var M=document.implementation.createHTMLDocument("").createElement("DIV");M.style.cssText=z;z=c8S(M.style);f.cssText=[z,'background-image:url("'+K+'");'].join("")}}; Ba5=function(z){var K=g.rT("html5-video-player");K&&g.k4(K,"ytp-ad-display-override",z)}; W$=function(z,K,f,M,p,t){t=t===void 0?0:t;BP.call(this,z,{j:"div",K:"ytp-preview-ad",L:[{j:"div",K:"ytp-preview-ad__text"}]},"preview-ad",K,f,M,p);var B=this;this.l_=t;this.Y=0;this.J=-1;this.T=this.dE("ytp-preview-ad__text");switch(this.l_){case 1:this.T.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.I3(this,400,!1,100,function(){B.hide()}); g.d(this,this.transition);this.hide()}; JZ=function(z,K,f,M){Sj.call(this,z,{j:"img",K:"ytp-ad-avatar"},"ad-avatar",K,f,M);this.hide()}; NaH=function(z){switch(z.size){case "AD_AVATAR_SIZE_XXS":return 16;case "AD_AVATAR_SIZE_XS":return 24;case "AD_AVATAR_SIZE_S":return 32;case "AD_AVATAR_SIZE_M":return 36;case "AD_AVATAR_SIZE_L":return 56;case "AD_AVATAR_SIZE_XL":return 72;default:return 36}}; gL=function(z,K,f,M,p,t){p=p===void 0?!1:p;t=t===void 0?!1:t;Sj.call(this,z,{j:"button",K:"ytp-ad-button-vm"},"ad-button",K,f,M);this.buttonText=this.buttonIcon=null;this.hide();this.S=p;this.Y=t}; vS1=function(z,K,f,M,p){BP.call(this,z,{j:"div",Wx:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],L:[{j:"div",K:"ytp-ad-avatar-lockup-card__avatar_and_text_container",L:[{j:"div",K:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",K,f,M,p);this.startMilliseconds=0;this.adAvatar=new JZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq);g.d(this,this.adAvatar);M0(this.element,this.adAvatar.element,0);this.headline=new cP(this.api,this.layoutId, this.interactionLoggingClientData,this.Zq);g.d(this,this.headline);this.headline.hL(this.dE("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new cP(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq);g.d(this,this.description);this.description.hL(this.dE("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new gL(this.api, this.layoutId,this.interactionLoggingClientData,this.Zq);g.d(this,this.adButton);this.adButton.hL(this.element);this.hide()}; iy=function(z,K,f,M){Sj.call(this,z,{j:"button",K:"ytp-skip-ad-button",L:[{j:"div",K:"ytp-skip-ad-button__text"}]},"skip-button",K,f,M);var p=this;this.Y=!1;this.J=this.dE("ytp-skip-ad-button__text");this.transition=new g.I3(this,500,!1,100,function(){p.hide()}); g.d(this,this.transition);this.S=new DW(this.element,15E3,5E3,.5,.5,!0);g.d(this,this.S);this.hide()}; IT1=function(z,K,f,M,p){BP.call(this,z,{j:"div",K:"ytp-skip-ad"},"skip-ad",K,f,M,p);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.T=new iy(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq);g.d(this,this.T);this.T.hL(this.element);this.hide()}; dL=function(z,K,f,M){Sj.call(this,z,{j:"div",K:"ytp-visit-advertiser-link"},"visit-advertiser-link",K,f,M);this.hide()}; c$=function(z,K,f,M,p){Sj.call(this,z,{j:"div",K:"ytp-ad-player-overlay-layout",L:[{j:"div",K:"ytp-ad-player-overlay-layout__player-card-container"},{j:"div",K:"ytp-ad-player-overlay-layout__ad-info-container"},{j:"div",K:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{j:"div",K:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",K,f,M);this.Y=p;this.eV=this.dE("ytp-ad-player-overlay-layout__player-card-container");this.S=this.dE("ytp-ad-player-overlay-layout__ad-info-container"); this.N=this.dE("ytp-ad-player-overlay-layout__skip-or-preview-container");this.l_=this.dE("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; Go7=function(z,K,f,M){Sj.call(this,z,{j:"div",K:"ytp-ad-grid-card-text",L:[{j:"div",K:"ytp-ad-grid-card-text__metadata",L:[{j:"div",K:"ytp-ad-grid-card-text__metadata__headline"},{j:"div",K:"ytp-ad-grid-card-text__metadata__description",L:[{j:"div",K:"ytp-ad-grid-card-text__metadata__description__line"},{j:"div",K:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{j:"div",K:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",K,f,M);this.headline=new cP(this.api,this.layoutId,this.interactionLoggingClientData, this.Zq);g.d(this,this.headline);this.headline.hL(this.dE("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new gL(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,!0);g.d(this,this.moreInfoButton);this.moreInfoButton.hL(this.dE("ytp-ad-grid-card-text__button"))}; sb=function(z,K,f,M){Sj.call(this,z,{j:"div",K:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",K,f,M);this.S=[]}; AZ=function(z,K,f,M,p,t,B){BP.call(this,z,t,B,K,f,M,p);this.playerProgressOffsetMs=0;this.Y=!1}; bWo=function(z){var K=g.rT("html5-video-player");K&&g.k4(K,"ytp-ad-display-override",z)}; epo=function(z,K,f,M,p){AZ.call(this,z,K,f,M,p,{j:"div",K:"ytp-display-underlay-text-grid-cards",L:[{j:"div",K:"ytp-display-underlay-text-grid-cards__content_container",L:[{j:"div",K:"ytp-display-underlay-text-grid-cards__content_container__header",L:[{j:"div",K:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{j:"div",K:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{j:"div",K:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {j:"div",K:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new sb(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq);g.d(this,this.adGridCardCollection);this.adGridCardCollection.hL(this.dE("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new gL(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq);g.d(this,this.adButton);this.adButton.hL(this.dE("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.T=this.dE("ytp-display-underlay-text-grid-cards__content_container");this.J=this.dE("ytp-display-underlay-text-grid-cards__content_container__header")}; jH=function(z,K,f,M){Sj.call(this,z,{j:"div",K:"ytp-ad-details-line"},"ad-details-line",K,f,M);this.S=[];this.hide()}; YX=function(z,K,f,M){Sj.call(this,z,{j:"div",K:"ytp-image-background",L:[{j:"img",K:"ytp-image-background-image"}]},"image-background",K,f,M);this.hide()}; w5p=function(z,K,f,M,p){BP.call(this,z,{j:"svg",K:"ytp-timed-pie-countdown",V:{viewBox:"0 0 20 20"},L:[{j:"circle",K:"ytp-timed-pie-countdown__background",V:{r:"10",cx:"10",cy:"10"}},{j:"circle",K:"ytp-timed-pie-countdown__inner",V:{r:"5",cx:"10",cy:"10"}},{j:"circle",K:"ytp-timed-pie-countdown__outer",V:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",K,f,M,p);this.T=this.dE("ytp-timed-pie-countdown__inner");this.Y=Math.ceil(2*Math.PI*5);this.hide()}; XL=function(z,K,f,M){Sj.call(this,z,{j:"div",K:"ytp-video-interstitial-buttoned-centered-layout",V:{tabindex:"0"},L:[{j:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content",L:[{j:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{j:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",L:[{j:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{j:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {j:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{j:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{j:"div",K:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",K,f,M);this.Y=null;this.J=this.dE("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.T=new WK;g.d(this,this.T);this.hide()}; D8f=function(z){var K=g.rT("html5-video-player");K&&g.k4(K,"ytp-ad-display-override",z)}; ydH=function(z){if(!z.adAvatar||!g.A(z.adAvatar,xX))return g.sm(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!z.headline)return g.sm(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!z.adBadge||!g.A(z.adBadge,FL))return g.sm(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!z.adButton||!g.A(z.adButton,Ob))return g.sm(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!z.adInfoRenderer|| !g.A(z.adInfoRenderer,Xd))return g.sm(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;z=z.durationMilliseconds||0;return typeof z!=="number"||z<=0?(g.sm(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+z)),!1):!0}; rL=function(z,K){K=K===void 0?2:K;g.Dv.call(this);this.api=z;this.S=null;this.Nv=new WK(this);g.d(this,this.Nv);this.Y=G4S;this.Nv.X(this.api,"presentingplayerstatechange",this.AX);this.S=this.Nv.X(this.api,"progresssync",this.C6);this.mJ=K;this.mJ===1&&this.C6()}; Zk=function(z,K,f){Ua.call(this,z);this.api=z;this.Zq=K;this.Y={};z=new g.F({j:"div",Wx:["video-ads","ytp-ad-module"]});g.d(this,z);VT&&g.ey(z.element,"ytp-ads-tiny-mode");this.C=new E2(z.element);g.d(this,this.C);g.dq(this.api,z.element,4);Id(f)&&(f=new g.F({j:"div",Wx:["ytp-ad-underlay"]}),g.d(this,f),this.T=new E2(f.element),g.d(this,this.T),g.dq(this.api,f.element,0));g.d(this,sYq())}; koZ=function(z,K){z=g.zl(z.Y,K.id,null);z==null&&g.Al(Error("Component not found for element id: "+K.id));return z||null}; hpp=function(z){g.R5.call(this,z);var K=this;this.Y=null;this.created=!1;this.T=z.Z().B("h5_use_refactored_get_ad_break")?new IaS(this.player):new xU(this.player);this.J=function(){if(K.Y!=null)return K.Y;var M=new kRS({yJ:L7(K.S).yJ,Sv:L7(K.S).Sv,U:K.player,Ep:L7(K.S).Ep,Gh:K.S.S.Gh,CJ:L7(K.S).CJ,VW:K.S.S.VW});K.Y=M.c6;return K.Y}; this.S=new P0W(this.player,this,this.T,this.J);g.d(this,this.S);var f=z.Z();!g3(f)||g.jo(f)||r7(f)||(g.d(this,new Zk(z,L7(this.S).Zq,L7(this.S).Ep)),g.d(this,new HBu(z)))}; aTf=function(z){z.created!==z.loaded&&R3("Created and loaded are out of sync")}; ug7=function(z){g.R5.prototype.load.call(z);var K=L7(z.S).Ep;try{z.player.getRootNode().classList.add("ad-created")}catch(I){R3(I instanceof Error?I:String(I))}var f=z.player.getVideoData(1),M=f&&f.videoId||"",p=f&&f.getPlayerResponse()||{},t=(!z.player.Z().experiments.sf("debug_ignore_ad_placements")&&p&&p.adPlacements||[]).map(function(I){return I.adPlacementRenderer}),B=((p==null?void 0:p.adSlots)||[]).map(function(I){return g.A(I,ZI)}); p=p.playerConfig&&p.playerConfig.daiConfig&&p.playerConfig.daiConfig.enableDai||!1;f&&f.CI();t=RpS(t,B,K,L7(z.S).Ux);B=f&&f.clientPlaybackNonce||"";f=f&&f.gU||!1;if(VR(K,!0)&&f){var v;K={};(v=z.player.getVideoData())==null||v.Th("p_cpb",(K.cc=B,K))}v=1E3*z.player.getDuration(1);Su_(z);z.S.S.eN.BW(B,v,f,t.eb,t.Ky,t.eb,p,M)}; Su_=function(z){var K,f;if(f=(K=z.player.getVideoData(1))==null||!K.gU)K=z.player.Z(),f=g3(K)&&!g.JK(K)&&K.playerStyle==="desktop-polymer";f&&(z=z.player.getInternalApi(),z.addEventListener("updateKevlarOrC3Companion",hxu),z.addEventListener("updateEngagementPanelAction",ahS),z.addEventListener("changeEngagementPanelVisibility",RxI),window.addEventListener("yt-navigate-start",u$a))}; oh=function(z,K){K===z.kQ&&(z.kQ=void 0)}; LS4=function(z){var K=L7(z.S).EW,f=K.J().JI("SLOT_TYPE_PLAYER_BYTES",1);K=QW(K.i_.get(),1).clientPlaybackNonce;var M=!1;f=g.a(f);for(var p=f.next();!p.done;p=f.next()){p=p.value;var t=p.slotType==="SLOT_TYPE_PLAYER_BYTES"&&p.slotEntryTrigger instanceof JQ?p.slotEntryTrigger.bv:void 0;t&&t===K&&(M&&R3("More than 1 preroll playerBytes slot detected",p),M=!0)}M||v$(L7(z.S).Sh)}; ESQ=function(z){if(Ur(L7(z.S).Ep))return!0;var K="";z=g.a(L7(z.S).CJ.Sk.keys());for(var f=z.next();!f.done;f=z.next()){f=f.value;if(f.slotType==="SLOT_TYPE_PLAYER_BYTES"&&f.fH==="core")return!0;K+=f.slotType+" "}Math.random()<.01&&R3("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:K});return!1}; P89=function(z){z=g.a(L7(z.S).CJ.Sk.values());for(var K=z.next();!K.done;K=z.next())if(K.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; sUS=function(z,K,f,M,p,t){f=f===void 0?[]:f;M=M===void 0?"":M;p=p===void 0?"":p;var B=L7(z.S).Ep,v=z.player.getVideoData(1);v&&v.getPlayerResponse();v&&v.CI();f=RpS(K,f,B,L7(z.S).Ux);xdg(L7(z.S).d3,M,f.eb,f.Ky,K,p,t)}; RpS=function(z,K,f,M){K={eb:[],Ky:K};z=g.a(z);for(var p=z.next();!p.done;p=z.next())if((p=p.value)&&p.renderer!=null){var t=p.renderer;if(!f.U.Z().B("html5_enable_vod_lasr_with_notify_pacf")){var B=void 0,v=void 0,I=void 0,G=void 0,b=M;g.A((G=t.sandwichedLinearAdRenderer)==null?void 0:G.adVideoStart,Ha)?(B=g.A((I=t.sandwichedLinearAdRenderer)==null?void 0:I.adVideoStart,Ha),B=tiS(B,b),g.Om(t.sandwichedLinearAdRenderer.adVideoStart,Ha,B)):g.A((v=t.linearAdSequenceRenderer)==null?void 0:v.adStart,Ha)&& (I=g.A((B=t.linearAdSequenceRenderer)==null?void 0:B.adStart,Ha),B=tiS(I,b),g.Om(t.linearAdSequenceRenderer.adStart,Ha,B))}K.eb.push(p)}return K}; g.C7=function(z){if(typeof DOMParser!="undefined")return wT(new DOMParser,WVa(z),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.TZ=function(z){g.J.call(this);this.callback=z;this.S=new qi(0,0,.4,0,.2,1,1,1);this.delay=new g.zJ(this.next,window,this);g.d(this,this.delay)}; g.HW1=function(z){var K=z.Z();return K.QW&&!K.T&&g.Jw(K)?z.isEmbedsShortsMode()?(z=z.hD(),Math.min(z.width,z.height)>=315):!z.wI():!1}; g.Ub=function(z){g.F.call(this,{j:"div",K:"ytp-more-videos-view",V:{tabIndex:"-1"}});var K=this;this.api=z;this.Y=!0;this.T=new g.xI(this);this.S=[];this.suggestionData=[];this.columns=this.containerWidth=this.D=this.J=this.scrollPosition=0;this.title=new g.F({j:"h2",K:"ytp-related-title",qc:"{{title}}"});this.previous=new g.F({j:"button",Wx:["ytp-button","ytp-previous"],V:{"aria-label":"Hi\u1ec3n th\u1ecb c\u00e1c video \u0111\u1ec1 xu\u1ea5t tr\u01b0\u1edbc \u0111\u00f3"},L:[g.HW()]});this.G=new g.TZ(function(f){K.suggestions.element.scrollLeft= -f}); this.next=new g.F({j:"button",Wx:["ytp-button","ytp-next"],V:{"aria-label":"Hi\u1ec7n th\u00eam video \u0111\u1ec1 xu\u1ea5t"},L:[g.Qb()]});g.d(this,this.T);this.W=z.Z().J;g.d(this,this.title);this.title.hL(this.element);this.suggestions=new g.F({j:"div",K:"ytp-suggestions"});g.d(this,this.suggestions);this.suggestions.hL(this.element);g.d(this,this.previous);this.previous.hL(this.element);this.previous.listen("click",this.lf,this);g.d(this,this.G);Qv2(this);g.d(this,this.next);this.next.hL(this.element); this.next.listen("click",this.YE,this);this.T.X(this.api,"appresize",this.NB);this.T.X(this.api,"fullscreentoggled",this.xT);this.T.X(this.api,"videodatachange",this.onVideoDataChange);this.NB(this.api.wE().getPlayerSize());this.onVideoDataChange()}; Qv2=function(z){for(var K={kc:0};K.kc<16;K={kc:K.kc},++K.kc){var f=new g.F({j:"a",K:"ytp-suggestion-link",V:{href:"{{link}}",target:z.api.Z().N,"aria-label":"{{aria_label}}"},L:[{j:"div",K:"ytp-suggestion-image"},{j:"div",K:"ytp-suggestion-overlay",V:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},L:[{j:"div",K:"ytp-suggestion-title",qc:"{{title}}"},{j:"div",K:"ytp-suggestion-author",qc:"{{author_and_views}}"},{j:"div",V:{"data-is-live":"{{is_live}}"},K:"ytp-suggestion-duration", qc:"{{duration}}"}]}]});g.d(z,f);var M=f.dE("ytp-suggestion-link");g.H6(M,"transitionDelay",K.kc/20+"s");z.T.X(M,"click",function(p){return function(t){var B=p.kc;if(z.Y){var v=z.suggestionData[B],I=v.sessionData;z.W&&z.api.B("web_player_log_click_before_generating_ve_conversion_params")?(z.api.logClick(z.S[B].element),B=v.xv(),v={},g.JT(z.api,v),B=g.V8(B,v),g.I0(B,z.api,t)):g.v1(t,z.api,z.W,I||void 0)&&z.api.by(v.videoId,I,v.playlistId)}else t.preventDefault(),document.activeElement.blur()}}(K)); f.hL(z.suggestions.element);z.S.push(f);z.api.createServerVe(f.element,f)}}; quQ=function(z){if(z.api.Z().B("web_player_log_click_before_generating_ve_conversion_params"))for(var K=Math.floor(-z.scrollPosition/(z.J+8)),f=Math.min(K+z.columns,z.suggestionData.length)-1;K<=f;K++)z.api.logVisibility(z.S[K].element,!0)}; g.zX=function(z){var K=z.api.po()?32:16;K=z.D/2+K;z.next.element.style.bottom=K+"px";z.previous.element.style.bottom=K+"px";K=z.scrollPosition;var f=z.containerWidth-z.suggestionData.length*(z.J+8);g.k4(z.element,"ytp-scroll-min",K>=0);g.k4(z.element,"ytp-scroll-max",K<=f)}; lTQ=function(z){for(var K=z.suggestionData.length,f=0;f>>0)+"_",p=0;return K}); Iv("Symbol.iterator",function(z){if(z)return z;z=Symbol("Symbol.iterator");for(var K="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),f=0;f0&&f>0;)if(M[--f]!=K[--p])return!1;return p<=0}}); Iv("Array.prototype.find",function(z){return z?z:function(K,f){return bW5(this,K,f).YC}}); Iv("Array.prototype.entries",function(z){return z?z:function(){return Ad(this,function(K,f){return[K,f]})}}); Iv("Array.prototype.keys",function(z){return z?z:function(){return Ad(this,function(K){return K})}}); Iv("String.prototype.startsWith",function(z){return z?z:function(K,f){var M=c5(this,K,"startsWith");K+="";var p=M.length,t=K.length;f=Math.max(0,Math.min(f|0,M.length));for(var B=0;B=t}}); Iv("Number.isFinite",function(z){return z?z:function(K){return typeof K!=="number"?!1:!isNaN(K)&&K!==Infinity&&K!==-Infinity}}); Iv("String.prototype.repeat",function(z){return z?z:function(K){var f=c5(this,null,"repeat");if(K<0||K>1342177279)throw new RangeError("Invalid count value");K|=0;for(var M="";K;)if(K&1&&(M+=f),K>>>=1)f+=f;return M}}); Iv("Object.entries",function(z){return z?z:function(K){var f=[],M;for(M in K)eq(K,M)&&f.push([M,K[M]]);return f}}); Iv("Array.from",function(z){return z?z:function(K,f,M){f=f!=null?f:function(v){return v}; var p=[],t=typeof Symbol!="undefined"&&Symbol.iterator&&K[Symbol.iterator];if(typeof t=="function"){K=t.call(K);for(var B=0;!(t=K.next()).done;)p.push(f.call(M,t.value,B++))}else for(t=K.length,B=0;B>>16&65535)*p+M*(f>>>16&65535)<<16>>>0)|0}}); Iv("Math.trunc",function(z){return z?z:function(K){K=Number(K);if(isNaN(K)||K===Infinity||K===-Infinity||K===0)return K;var f=Math.floor(Math.abs(K));return K<0?-f:f}}); Iv("Math.clz32",function(z){return z?z:function(K){K=Number(K)>>>0;if(K===0)return 32;var f=0;(K&4294901760)===0&&(K<<=16,f+=16);(K&4278190080)===0&&(K<<=8,f+=8);(K&4026531840)===0&&(K<<=4,f+=4);(K&3221225472)===0&&(K<<=2,f+=2);(K&2147483648)===0&&f++;return f}}); Iv("Number.isNaN",function(z){return z?z:function(K){return typeof K==="number"&&isNaN(K)}}); Iv("Array.prototype.values",function(z){return z?z:function(){return Ad(this,function(K,f){return f})}}); Iv("Array.prototype.fill",function(z){return z?z:function(K,f,M){var p=this.length||0;f<0&&(f=Math.max(0,p+f));if(M==null||M>p)M=p;M=Number(M);M<0&&(M=Math.max(0,p+M));for(f=Number(f||0);f0&&f?f.repeat(Math.ceil(K/f.length)).substring(0,K):"")+M}}); Iv("Array.prototype.findIndex",function(z){return z?z:function(K,f){return bW5(this,K,f).VT}}); Iv("Promise.prototype.finally",function(z){return z?z:function(K){return this.then(function(f){return Promise.resolve(K()).then(function(){return f})},function(f){return Promise.resolve(K()).then(function(){throw f; })})}}); Iv("Math.sign",function(z){return z?z:function(K){K=Number(K);return K===0||isNaN(K)?K:K>0?1:-1}}); Iv("WeakSet",function(z){function K(f){this.S=new WeakMap;if(f){f=g.a(f);for(var M;!(M=f.next()).done;)this.add(M.value)}} if(function(){if(!z||!Object.seal)return!1;try{var f=Object.seal({}),M=Object.seal({}),p=new z([f]);if(!p.has(f)||p.has(M))return!1;p.delete(f);p.add(M);return!p.has(f)&&p.has(M)}catch(t){return!1}}())return z; K.prototype.add=function(f){this.S.set(f,!0);return this}; K.prototype.has=function(f){return this.S.has(f)}; K.prototype.delete=function(f){return this.S.delete(f)}; return K}); Iv("AggregateError",function(z){function K(f,M){M=Error(M);"stack"in M&&(this.stack=M.stack);this.errors=f;this.message=M.message} if(z)return z;g.h(K,Error);K.prototype.name="AggregateError";return K}); Iv("Array.prototype.copyWithin",function(z){function K(f){f=Number(f);return f===Infinity||f===-Infinity?f:f|0} return z?z:function(f,M,p){var t=this.length;f=K(f);M=K(M);p=p===void 0?t:K(p);f=f<0?Math.max(t+f,0):Math.min(f,t);M=M<0?Math.max(t+M,0):Math.min(M,t);p=p<0?Math.max(t+p,0):Math.min(p,t);if(fM;)--p in this?this[--f]=this[p]:delete this[--f];return this}}); Iv("Int8Array.prototype.copyWithin",Xg);Iv("Uint8Array.prototype.copyWithin",Xg);Iv("Uint8ClampedArray.prototype.copyWithin",Xg);Iv("Int16Array.prototype.copyWithin",Xg);Iv("Uint16Array.prototype.copyWithin",Xg);Iv("Int32Array.prototype.copyWithin",Xg);Iv("Uint32Array.prototype.copyWithin",Xg);Iv("Float32Array.prototype.copyWithin",Xg);Iv("Float64Array.prototype.copyWithin",Xg);Iv("Array.prototype.at",function(z){return z?z:xS}); Iv("Int8Array.prototype.at",Fg);Iv("Uint8Array.prototype.at",Fg);Iv("Uint8ClampedArray.prototype.at",Fg);Iv("Int16Array.prototype.at",Fg);Iv("Uint16Array.prototype.at",Fg);Iv("Int32Array.prototype.at",Fg);Iv("Uint32Array.prototype.at",Fg);Iv("Float32Array.prototype.at",Fg);Iv("Float64Array.prototype.at",Fg);Iv("String.prototype.at",function(z){return z?z:xS}); Iv("Array.prototype.findLastIndex",function(z){return z?z:function(K,f){return ep5(this,K,f).VT}}); Iv("Int8Array.prototype.findLastIndex",Ou);Iv("Uint8Array.prototype.findLastIndex",Ou);Iv("Uint8ClampedArray.prototype.findLastIndex",Ou);Iv("Int16Array.prototype.findLastIndex",Ou);Iv("Uint16Array.prototype.findLastIndex",Ou);Iv("Int32Array.prototype.findLastIndex",Ou);Iv("Uint32Array.prototype.findLastIndex",Ou);Iv("Float32Array.prototype.findLastIndex",Ou);Iv("Float64Array.prototype.findLastIndex",Ou);Iv("Number.parseInt",function(z){return z||parseInt});var UA,f1,w5S;UA=UA||{};g.ZT=this||self;f1="closure_uid_"+(Math.random()*1E9>>>0);w5S=0;g.GH(b_,Error);b_.prototype.name="CustomError";var VSg;var Su8,KC,$E;Su8=Array.prototype.indexOf?function(z,K){return Array.prototype.indexOf.call(z,K,void 0)}:function(z,K){if(typeof z==="string")return typeof K!=="string"||K.length!=1?-1:z.indexOf(K,0); for(var f=0;f=0;f--)if(f in z&&z[f]===K)return f;return-1}; g.co=Array.prototype.forEach?function(z,K,f){Array.prototype.forEach.call(z,K,f)}:function(z,K,f){for(var M=z.length,p=typeof z==="string"?z.split(""):z,t=0;t=.3:this.il>=.5};var DK={roE:0,Drx:1},Qop={NONE:0,UD1:1,Vkf:2};var gSu="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");pL.prototype.getValue=function(){return this.Y}; g.h(t6,pL);t6.prototype.T=function(z){this.Y===null&&g.C1(this.J,z)&&(this.Y=z)}; g.h(B4,pL);B4.prototype.T=function(z){this.Y===null&&typeof z==="number"&&(this.Y=z)}; g.h(v4,pL);v4.prototype.T=function(z){this.Y===null&&typeof z==="string"&&(this.Y=z)};I9.prototype.disable=function(){this.Y=!1}; I9.prototype.enable=function(){this.Y=!0}; I9.prototype.isEnabled=function(){return this.Y}; I9.prototype.reset=function(){this.S={};this.Y=!0;this.T={}};var MD=document,eT=window;var cd_=Uu(1,!0),QA=Uu(610401301,!1);Uu(899588437,!1);Uu(725719775,!1);var svf=Uu(513659523,!1),AdS=Uu(568333945,!1),ndp=Uu(1331761403,!1);Uu(651175828,!1);Uu(722764542,!1);Uu(748402145,!1);Uu(748402146,!1);Uu(103340015,!1);Uu(555019702,!1);Uu(2147483644,!1);Uu(2147483645,!1);Uu(2147483646,cd_);Uu(2147483647,!0);var qn=!!g.CW("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var Sm=String.prototype.trim?function(z){return z.trim()}:function(z){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(z)[1]},tSS=/&/g,BZg=//g,vfW=/"/g,I4S=/'/g,GHW=/\x00/g,po8=/[\x00&<>"']/;var my,jv7=g.ZT.navigator;my=jv7?jv7.userAgentData||null:null;var rda=globalThis.trustedTypes,c4;A6.prototype.toString=function(){return this.S+""};XV.prototype.toString=function(){return this.S}; var C8o=new XV("about:invalid#zClosurez");var xHp=OP("tel"),YbS=OP("sms"),oSg=[OP("data"),OP("http"),OP("https"),OP("mailto"),OP("ftp"),new FV(function(z){return/^[^:]*([/?#]|$)/.test(z)})],Ta8=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;UP.prototype.toString=function(){return this.S+""};Mt.prototype.toString=function(){return this.S+""};Iz.prototype.toString=function(){return this.S};var be={};g.YuT=String.prototype.repeat?function(z,K){return z.repeat(K)}:function(z,K){return Array(K+1).join(z)};H9[" "]=function(){};var Qe,UK,i$S,X5T,x8Q,FSf,lI,VT,OW1;g.nO=W4();g.Sy=jvp();g.Ux=VA("Edge");g.pa=g.Ux||g.Sy;Qe=VA("Gecko")&&!(R9(g.H4(),"WebKit")&&!VA("Edge"))&&!(VA("Trident")||VA("MSIE"))&&!VA("Edge");g.oz=R9(g.H4(),"WebKit")&&!VA("Edge");UK=P9();i$S=kHa();g.p3=y2o();X5T=Lm();x8Q=VA("iPad");FSf=VA("iPod");lI=Es();VT=R9(g.H4(),"KaiOS"); a:{var rdZ="",ZWp=function(){var z=g.H4();if(Qe)return/rv:([^\);]+)(\)|;)/.exec(z);if(g.Ux)return/Edge\/([\d\.]+)/.exec(z);if(g.Sy)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(z);if(g.oz)return/WebKit\/(\S+)/.exec(z);if(g.nO)return/(?:Version)[ \/]?(\S+)/.exec(z)}(); ZWp&&(rdZ=ZWp?ZWp[1]:"");if(g.Sy){var Ki,oST=g.ZT.document;Ki=oST?oST.documentMode:void 0;if(Ki!=null&&Ki>parseFloat(rdZ)){OW1=String(Ki);break a}}OW1=rdZ}var S9o=OW1,a4I={};var $a,f3;g.z0=J6();$a=Lm()||VA("iPod");f3=VA("iPad");g.WZ=X5g();g.sq=iE();g.PJ=dr()&&!Es();var Wu5=!g.Sy&&!dr();g.k=g.Vw.prototype;g.k.clone=function(){return new g.Vw(this.x,this.y)}; g.k.equals=function(z){return z instanceof g.Vw&&nm(this,z)}; g.k.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.k.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.k.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.k.scale=function(z,K){this.x*=z;this.y*=typeof K==="number"?K:z;return this};g.k=g.W9.prototype;g.k.clone=function(){return new g.W9(this.width,this.height)}; g.k.aspectRatio=function(){return this.width/this.height}; g.k.isEmpty=function(){return!gT(this)}; g.k.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.k.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.k.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.k.scale=function(z,K){this.width*=z;this.height*=typeof K==="number"?K:z;return this};dT.prototype.toString=function(){return this.S}; var ie={};new dT(ie,"");var Efu=/^[a-z][a-z\d-]*$/i,P_d="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),Q88="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),m5I=["action","formaction","href"];var nf8={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.k=AR.prototype;g.k.H1=function(z){return X3(this.S,z)}; g.k.getElementsByTagName=function(z,K){return(K||this.S).getElementsByTagName(String(z))}; g.k.dE=function(z){return g.rT(z,this.S)}; g.k.setProperties=Zy;g.k.createElement=function(z){return Tm(this.S,z)}; g.k.appendChild=g.$0;g.k.append=function(z,K){i1d(j8(z),z,arguments,1)}; g.k.canHaveChildren=function(z){if(z.nodeType!=1)return!1;switch(z.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}; g.k.removeNode=g.ps;g.k.getChildren=function(z){return z.children!=void 0?z.children:Array.prototype.filter.call(z.childNodes,function(K){return K.nodeType==1})}; g.k.contains=g.t$;Io.prototype.now=function(){return 0}; Io.prototype.Y=function(){return 0}; Io.prototype.T=function(){return 0}; Io.prototype.S=function(){return 0};g.h(bp,Io);bp.prototype.now=function(){return Gi()&&eT.performance.now?eT.performance.now():Io.prototype.now.call(this)}; bp.prototype.Y=function(){return Gi()&&eT.performance.memory?eT.performance.memory.totalJSHeapSize||0:Io.prototype.Y.call(this)}; bp.prototype.T=function(){return Gi()&&eT.performance.memory?eT.performance.memory.usedJSHeapSize||0:Io.prototype.T.call(this)}; bp.prototype.S=function(){return Gi()&&eT.performance.memory?eT.performance.memory.jsHeapSizeLimit||0:Io.prototype.S.call(this)};var nEu=function(){if(!g.ZT.addEventListener||!Object.defineProperty)return!1;var z=!1,K=Object.defineProperty({},"passive",{get:function(){z=!0}}); try{var f=function(){}; g.ZT.addEventListener("test",f,K);g.ZT.removeEventListener("test",f,K)}catch(M){}return z}();var b78=A2a("AnimationEnd"),wK=A2a("TransitionEnd");g.k=ao.prototype;g.k.getHeight=function(){return this.bottom-this.top}; g.k.clone=function(){return new ao(this.top,this.right,this.bottom,this.left)}; g.k.contains=function(z){return this&&z?z instanceof ao?z.left>=this.left&&z.right<=this.right&&z.top>=this.top&&z.bottom<=this.bottom:z.x>=this.left&&z.x<=this.right&&z.y>=this.top&&z.y<=this.bottom:!1}; g.k.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this}; g.k.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this}; g.k.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this}; g.k.scale=function(z,K){K=typeof K==="number"?K:z;this.left*=z;this.right*=z;this.top*=K;this.bottom*=K;return this};g.k=g.Ls.prototype;g.k.clone=function(){return new g.Ls(this.left,this.top,this.width,this.height)}; g.k.contains=function(z){return z instanceof g.Vw?z.x>=this.left&&z.x<=this.left+this.width&&z.y>=this.top&&z.y<=this.top+this.height:this.left<=z.left&&this.left+this.width>=z.left+z.width&&this.top<=z.top&&this.top+this.height>=z.top+z.height}; g.k.getSize=function(){return new g.W9(this.width,this.height)}; g.k.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.k.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.k.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.k.scale=function(z,K){K=typeof K==="number"?K:z;this.left*=z;this.width*=z;this.top*=K;this.height*=K;return this};var Y9S={};var Z1I=ye(function(){var z=!1;try{var K=Object.defineProperty({},"passive",{get:function(){z=!0}}); g.ZT.addEventListener("test",null,K)}catch(f){}return z});ofS.prototype.isVisible=function(){return Y0(MD)===1};var xnI=Xj(function(z){return typeof z==="number"}),X45=Xj(function(z){return typeof z==="string"}),Fyg=Xj(function(z){return typeof z==="boolean"}),k$=Xj(function(z){return z!=null&&typeof z==="object"&&typeof z.then==="function"}),RHd=Xj(function(z){return typeof z==="function"}),C8H=Xj(function(z){return!!z&&(typeof z==="object"||typeof z==="function")});var TZI={FMf:"allow-forms",Xj_:"allow-modals",DZa:"allow-orientation-lock",uSH:"allow-pointer-lock",g3V:"allow-popups",fUh:"allow-popups-to-escape-sandbox",Zoc:"allow-presentation",Ooa:"allow-same-origin",Qxd:"allow-scripts",VFe:"allow-top-navigation",MF_:"allow-top-navigation-by-user-activation"},$no=ye(function(){return U55()});var tmp=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");ZZ.prototype.Ic=function(z,K,f){z=z+"//"+K+f;var M=IKS(this)-f.length;if(M<0)return"";this.S.sort(function(G,b){return G-b}); f=null;K="";for(var p=0;p=I.length){M-=I.length;z+=I;K=this.T;break}f=f==null?t:f}}M="";f!=null&&(M=""+K+"trn="+f);return z+M};fC.prototype.setInterval=function(z,K){return eT.setInterval(z,K)}; fC.prototype.clearInterval=function(z){eT.clearInterval(z)}; fC.prototype.setTimeout=function(z,K){return eT.setTimeout(z,K)}; fC.prototype.clearTimeout=function(z){eT.clearTimeout(z)};var qM=void 0,Qq,X9q=typeof TextDecoder!=="undefined",SPp,Rw8=typeof String.prototype.isWellFormed==="function",aKq=typeof TextEncoder!=="undefined";var HLu={},Gd=null,Q9o=Qe||g.oz||typeof g.ZT.btoa=="function";var dnS=typeof Uint8Array!=="undefined",noa=!g.Sy&&typeof btoa==="function",WyI=/[-_.]/g,lKa={"-":"+",_:"/",".":"="},eG={};bg.prototype.isEmpty=function(){return this.S==null}; bg.prototype.sizeBytes=function(){var z=Dj(this);return z?z.length:0}; var iL8;var c65=void 0;var Rj=typeof Symbol==="function"&&typeof Symbol()==="symbol",Ta_=aj("jas",void 0,!0),Fp=aj(void 0,"1oa"),NQ=aj(void 0,Symbol()),U8o=aj(void 0,"0ub"),w9I=aj(void 0,"0ubs"),w6W=aj(void 0,"0ubsb"),LMu=aj(void 0,"0actk"),pP=aj("m_m","zBH",!0),kmI=aj(void 0,"vps"),z7S=aj();Math.max.apply(Math,g.P(Object.values({Voe:1,QLL:2,O7q:4,DCc:8,BKa:16,Cnc:32,bbx:64,ah1:128,ZWe:256,axE:512,Qfq:1024,ovH:2048,BLx:4096})));var A6I={vl:{value:0,configurable:!0,writable:!0,enumerable:!1}},s9v=Object.defineProperties,SG=Rj?Ta_:"vl",VV,Kp2=[];LC(Kp2,7);VV=Object.freeze(Kp2);var tG={},Pi={},V8S=Object.freeze({}),qW={};var lg=typeof g.ZT.BigInt==="function"&&typeof g.ZT.BigInt(0)==="bigint";var wj=Xj(function(z){return lg?z>=$5Z&&z<=f4f:z[0]==="-"?OLW(z,MS7):OLW(z,po5)}),MS7=Number.MIN_SAFE_INTEGER.toString(),$5Z=lg?BigInt(Number.MIN_SAFE_INTEGER):void 0,po5=Number.MAX_SAFE_INTEGER.toString(),f4f=lg?BigInt(Number.MAX_SAFE_INTEGER):void 0;var cRo=typeof Uint8Array.prototype.slice==="function",nC=0,Wi=0,D0a;var oj=typeof BigInt==="function"?BigInt.asIntN:void 0,NTW=typeof BigInt==="function"?BigInt.asUintN:void 0,zg=Number.isSafeInteger,XY=Number.isFinite,KP=Math.trunc,Tru=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var hFI={};var tSf={i3x:!0};var bF;var ay5,RFp;var WM5=Vd(0),MM={};e5.prototype.init=function(z,K,f,M){var p=M===void 0?{}:M;M=p.Vl===void 0?!1:p.Vl;p=p.VI===void 0?!1:p.VI;this.Vl=M;this.VI=p;z&&(z=bM(z,this.VI),this.Y=z.buffer,this.C=z.S,this.J=K||0,this.T=f!==void 0?this.J+f:this.Y.length,this.S=this.J)}; e5.prototype.free=function(){this.clear();S5.length<100&&S5.push(this)}; e5.prototype.clear=function(){this.Y=null;this.C=!1;this.S=this.T=this.J=0;this.Vl=!1}; e5.prototype.reset=function(){this.S=this.J}; var S5=[];uM.prototype.free=function(){this.S.clear();this.Y=this.J=-1;LF.length<100&&LF.push(this)}; uM.prototype.reset=function(){this.S.reset();this.T=this.S.S;this.Y=this.J=-1}; var LF=[];var FMu,rRd;nF.prototype.length=function(){return this.S.length}; nF.prototype.end=function(){var z=this.S;this.S=[];return z};var j5=sU(),BZT=sU(),NZ2=sU(),vf1=sU(),I4p=sU(),GH1=sU(),b1H=sU(),e7H=sU(),woZ=sU(),D5S=sU();g.AC.prototype.toJSON=function(){return kg(this)}; g.AC.prototype.yv=function(z){return JSON.stringify(kg(this,z))}; g.AC.prototype.clone=function(){var z=this.Yi,K=z[SG]|0;return S2(this,z,K)?uF(this,z,!0):new this.constructor(Rr(z,K,!1))}; g.AC.prototype[pP]=tG;g.AC.prototype.toString=function(){return this.Yi.toString()};var MT8=XC(function(z,K,f,M,p){if(z.Y!==2)return!1;HX(z,Oc(K,M,f),p);return!0},fZo),p6p=XC(function(z,K,f,M,p){if(z.Y!==2)return!1; HX(z,Oc(K,M,f),p);return!0},fZo),fe=Symbol(),Zi=Symbol(),TA=Symbol(),Gip=Symbol(),NWg=Symbol(),xD,FC;var y2H=to(function(z,K,f){if(z.Y!==1)return!1;Nr(K,f,an(z.S));return!0},vv,e7H),kHZ=to(function(z,K,f){if(z.Y!==1)return!1; z=an(z.S);Nr(K,f,z===0?void 0:z);return!0},vv,e7H),h7f=to(function(z,K,f,M){if(z.Y!==1)return!1; Xp(K,f,M,an(z.S));return!0},vv,e7H),a4Q=to(function(z,K,f){if(z.Y!==0)return!1; Nr(K,f,Di(z.S));return!0},Gz,GH1),R7S=to(function(z,K,f){if(z.Y!==0)return!1; z=Di(z.S);Nr(K,f,z===0?void 0:z);return!0},Gz,GH1),S9H=to(function(z,K,f,M){if(z.Y!==0)return!1; Xp(K,f,M,Di(z.S));return!0},Gz,GH1),uT2=to(function(z,K,f){if(z.Y!==0)return!1; Nr(K,f,yq(z.S));return!0},b6,vf1),LpQ=to(function(z,K,f){if(z.Y!==0)return!1; z=yq(z.S);Nr(K,f,z===0?void 0:z);return!0},b6,vf1),Ef9=to(function(z,K,f,M){if(z.Y!==0)return!1; Xp(K,f,M,yq(z.S));return!0},b6,vf1),P_2=to(function(z,K,f){if(z.Y!==1)return!1; Nr(K,f,hC(z.S));return!0},function(z,K,f){zTI(z,f,v7q(K))},b1H),H18=Bv(function(z,K,f){if(z.Y!==1&&z.Y!==2)return!1; K=c7(K,K[SG]|0,f);if(z.Y==2)for(f=yq(z.S)>>>0,f=z.S.S+f;z.S.S>>0);return!0},function(z,K,f){K=rk(K); K!=null&&K!=null&&(d5(z,f,0),JC(z.S,K))},I4p),Wp_=to(function(z,K,f){if(z.Y!==0)return!1; Nr(K,f,yq(z.S));return!0},function(z,K,f){K=OH(K); K!=null&&(K=parseInt(K,10),d5(z,f,0),o7g(z.S,K))},D5S);RTg.prototype.register=function(){H9(this)};g.h(DD,g.AC);DD.prototype.T=SZu([0,kHZ,R7S,-2,LpQ]);var qZW={omd:1,sj:2,hJH:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};lZd.prototype.yA=function(z){if(typeof z==="string"&&z.length!=0){var K=this.U0;if(K.Y){z=z.split("&");for(var f=z.length-1;f>=0;f--){var M=z[f].split("="),p=decodeURIComponent(M[0]);M.length>1?(M=decodeURIComponent(M[1]),M=/^[0-9]+$/g.exec(M)?parseInt(M,10):M):M=1;(p=K.S[p])&&p.T(M)}}}};var BQ=null;var SU=g.ZT.performance,J29=!!(SU&&SU.mark&&SU.measure&&SU.clearMarks),aW=ye(function(){var z;if(z=J29){var K=K===void 0?window:K;if(BQ===null){BQ="";try{z="";try{z=K.top.location.hash}catch(M){z=K.location.hash}if(z){var f=z.match(/\bdeid=([\d,]+)/);BQ=f?f[1]:""}}catch(M){}}K=BQ;z=!!K.indexOf&&K.indexOf("1337")>=0}return z}); RW.prototype.disable=function(){this.S=!1;this.events!==this.Y.google_js_reporting_queue&&(aW()&&g.co(this.events,is5),this.events.length=0)}; RW.prototype.start=function(z,K){if(!this.S)return null;var f=J$q()||WNq();z=new g0g(z,K,f);K="goog_"+z.label+"_"+z.uniqueId+"_start";SU&&aW()&&SU.mark(K);return z}; RW.prototype.end=function(z){if(this.S&&typeof z.value==="number"){var K=J$q()||WNq();z.duration=K-z.value;K="goog_"+z.label+"_"+z.uniqueId+"_end";SU&&aW()&&SU.mark(K);!this.S||this.events.length>2048||this.events.push(z)}};var d0o=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),x0v=/#|$/,FN8=/[?&]($|#)/;r$8.prototype.Gy=function(z,K,f,M,p){p=p||this.wk;try{var t=new ZZ;t.S.push(1);t.Y[1]=oo("context",z);K.error&&K.meta&&K.id||(K=new Ao(jU(K)));if(K.msg){var B=K.msg.substring(0,512);t.S.push(2);t.Y[2]=oo("msg",B)}var v=K.meta||{};if(this.Es)try{this.Es(v)}catch(D){}if(M)try{M(v)}catch(D){}M=[v];t.S.push(3);t.Y[3]=M;var I=Nrg();if(I.Y){var G=I.Y.url||"";t.S.push(4);t.Y[4]=oo("top",G)}var b={url:I.S.url||""};if(I.S.url){var e=g.Le(I.S.url);var w=u6(e[1],null,e[3],e[4])}else w="";G=[b,{url:w}];t.S.push(5); t.Y[5]=G;VTv(this.S,p,t,f)}catch(D){try{VTv(this.S,p,{context:"ecmserr",rctx:z,msg:jU(D),url:I&&I.S.url},f)}catch(y){}}return this.qk}; g.h(Ao,n08);var cv,sW,g4=new RW;cv=new function(){var z="https:";eT&&eT.location&&eT.location.protocol==="http:"&&(z="http:");this.Y=z;this.S=.01}; sW=new r$8;eT&&eT.document&&(eT.document.readyState=="complete"?o0d():g4.S&&A$(eT,"load",function(){o0d()}));var U05=Date.now(),ZD=-1,OW=-1,N5v,oW=-1,r4=!1;Ce.prototype.equals=function(z,K){return!!z&&(!(K===void 0?0:K)||this.volume==z.volume)&&this.T==z.T&&ST(this.S,z.S)&&!0};Tz.prototype.H1=function(){return this.G}; Tz.prototype.equals=function(z,K){return this.J.equals(z.J,K===void 0?!1:K)&&this.G==z.G&&ST(this.T,z.T)&&ST(this.W,z.W)&&this.S==z.S&&this.C==z.C&&this.Y==z.Y&&this.D==z.D};var gfo={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},$F={Zk:"start",yK:"firstquartile",I8:"midpoint",Oj:"thirdquartile",COMPLETE:"complete",ERROR:"error",v6:"metric",PAUSE:"pause",Dk:"resume",uh:"skip",kS:"viewable_impression",B6:"mute",Vm:"unmute",aE:"fullscreen",Ne:"exitfullscreen",kh:"bufferstart",Me:"bufferfinish",oE:"fully_viewable_audible_half_duration_impression",mE:"measurable_impression",Xu:"abandon",RE:"engagedview",Si:"impression",rp:"creativeview",Uj:"loaded", lxE:"progress",CLOSE:"close",MYd:"collapse",QHc:"overlay_resize",V_1:"overlay_unmeasurable_impression",M_f:"overlay_unviewable_impression",bJE:"overlay_viewable_immediate_impression",kDc:"overlay_viewable_end_of_session_impression",tb:"custom_metric_viewable",fv:"audio_audible",Ok:"audio_measurable",Z_:"audio_impression"},aDq="start firstquartile midpoint thirdquartile resume loaded".split(" "),RXa=["start","firstquartile","midpoint","thirdquartile"],Iio=["abandon"],uK={UNKNOWN:-1,Zk:0,yK:1,I8:2, Oj:3,COMPLETE:4,v6:5,PAUSE:6,Dk:7,uh:8,kS:9,B6:10,Vm:11,aE:12,Ne:13,oE:14,mE:15,Xu:16,RE:17,Si:18,rp:19,Uj:20,tb:21,kh:22,Me:23,Z_:27,Ok:28,fv:29};var KdS={mZh:"addEventListener",kNE:"getMaxSize",bWx:"getScreenSize",sf1:"getState",LY1:"getVersion",jiV:"removeEventListener",Mod:"isViewable"};NkS.prototype.update=function(z){z&&z.document&&(this.G=UW(!1,z,this.isMobileDevice),this.S=UW(!0,z,this.isMobileDevice),Ijd(this,z),vNW(this,z))};tu.prototype.cancel=function(){MW().clearTimeout(this.S);this.S=null}; tu.prototype.schedule=function(){var z=this,K=MW(),f=kp().S.S;this.S=K.setTimeout(y8(f,XO(143,function(){z.Y++;z.T.sample()})),zYd())};g.k=B2.prototype;g.k.kW=function(){return!1}; g.k.initialize=function(){return this.isInitialized=!0}; g.k.Iy=function(){return this.S.eV}; g.k.RR=function(){return this.S.Y1}; g.k.Qa=function(z,K){if(!this.Y1||(K===void 0?0:K))this.Y1=!0,this.eV=z,this.D=0,this.S!=this||v2(this)}; g.k.getName=function(){return this.S.Px}; g.k.eQ=function(){return this.S.Ui()}; g.k.Ui=function(){return{}}; g.k.KD=function(){return this.S.D}; g.k.qQ=function(){var z=fj();z.S=UW(!0,this.T,z.isMobileDevice)}; g.k.Jy=function(){vNW(fj(),this.T)}; g.k.Oi=function(){return this.J.S}; g.k.sample=function(){}; g.k.isActive=function(){return this.S.W}; g.k.g5=function(z){var K=this.S;this.S=z.KD()>=this.D?z:this;K!==this.S?(this.W=this.S.W,v2(this)):this.W!==this.S.W&&(this.W=this.S.W,v2(this))}; g.k.Gb=function(z){if(z.Y===this.S){var K=!this.J.equals(z,this.N);this.J=z;K&&eY8(this)}}; g.k.F9=function(){return this.N}; g.k.dispose=function(){this.Hx=!0}; g.k.CH=function(){return this.Hx};g.k=It.prototype;g.k.observe=function(){return!0}; g.k.unobserve=function(){}; g.k.r6=function(z){this.C=z}; g.k.dispose=function(){if(!this.CH()){var z=this.Y;g.R8(z.C,this);z.N&&this.F9()&&bC8(z);this.unobserve();this.nH=!0}}; g.k.CH=function(){return this.nH}; g.k.eQ=function(){return this.Y.eQ()}; g.k.KD=function(){return this.Y.KD()}; g.k.Iy=function(){return this.Y.Iy()}; g.k.RR=function(){return this.Y.RR()}; g.k.g5=function(){}; g.k.Gb=function(){this.yH()}; g.k.F9=function(){return this.Hx};g.k=GQ.prototype;g.k.KD=function(){return this.S.KD()}; g.k.Iy=function(){return this.S.Iy()}; g.k.RR=function(){return this.S.RR()}; g.k.create=function(z,K,f){var M=null;this.S&&(M=this.EN(z,K,f),ND(this.S,M));return M}; g.k.Ev=function(){return this.bC()}; g.k.bC=function(){return!1}; g.k.init=function(z){return this.S.initialize()?(ND(this.S,this),this.J=z,!0):!1}; g.k.g5=function(z){z.KD()==0&&this.J(z.Iy(),this)}; g.k.Gb=function(){}; g.k.F9=function(){return!1}; g.k.dispose=function(){this.C=!0}; g.k.CH=function(){return this.C}; g.k.eQ=function(){return{}};bd.prototype.add=function(z,K,f){++this.T;z=new DWo(z,K,f);this.S.push(new DWo(z.Y,z.S,z.T+this.T/4096));this.Y=!0;return this};hrS.prototype.toString=function(){var z="//pagead2.googlesyndication.com//pagead/gen_204",K=ws(this.S);K.length>0&&(z+="?"+K);return z};g.J.prototype.MP=!1;g.J.prototype.CH=function(){return this.MP}; g.J.prototype.dispose=function(){this.MP||(this.MP=!0,this.JL())}; g.J.prototype[Symbol.dispose]=function(){this.dispose()}; g.J.prototype.addOnDisposeCallback=function(z,K){this.MP?K!==void 0?z.call(K):z():(this.QJ||(this.QJ=[]),K&&(z=z.bind(K)),this.QJ.push(z))}; g.J.prototype.JL=function(){if(this.QJ)for(;this.QJ.length;)this.QJ.shift()()};kE.prototype.update=function(z,K,f){z&&(this.S+=K,this.Y+=K,this.J+=K,this.T=Math.max(this.T,this.J));if(f===void 0?!z:f)this.J=0};var LuT=[1,.75,.5,.3,0];hu.prototype.update=function(z,K,f,M,p,t){t=t===void 0?!0:t;K=p?Math.min(z,K):K;for(p=0;p0&&K>=B;B=!(z>0&&z>=B)||f;this.S[p].update(t&&v,M,!t||B)}};Ef.prototype.update=function(z,K,f,M){this.G=this.G!=-1?Math.min(this.G,K.il):K.il;this.l_=Math.max(this.l_,K.il);this.nH=this.nH!=-1?Math.min(this.nH,K.QL):K.QL;this.eV=Math.max(this.eV,K.QL);this.oa.update(K.QL,f.QL,K.S,z,M);this.vx+=z;K.il===0&&(this.Px+=z);this.Y.update(K.il,f.il,K.S,z,M);f=M||f.Br!=K.Br?f.isVisible()&&K.isVisible():f.isVisible();K=!K.isVisible()||K.S;this.QE.update(f,z,K)}; Ef.prototype.kX=function(){return this.QE.T>=this.rE};if(MD&&MD.URL){var i12=MD.URL,d59;if(d59=!!i12){var c2S;a:{if(i12){var s8Z=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var N2=s8Z.exec(decodeURIComponent(i12));if(N2){c2S=N2[1]&&N2[1].length>1?N2[1].substring(1):"true";break a}}catch(z){}}c2S=""}d59=c2S.length>0}sW.qk=!d59};var A2Z=new ao(0,0,0,0);var V28=new ao(0,0,0,0);g.h(mH,g.J);g.k=mH.prototype; g.k.JL=function(){if(this.qD.S){if(this.Lk.OQ){var z=this.qD.S;typeof z.removeEventListener==="function"&&z.removeEventListener("mouseover",this.Lk.OQ,sZ());this.Lk.OQ=null}this.Lk.ZA&&(z=this.qD.S,typeof z.removeEventListener==="function"&&z.removeEventListener("mouseout",this.Lk.ZA,sZ()),this.Lk.ZA=null)}this.xA&&this.xA.dispose();this.ul&&this.ul.dispose();delete this.jB;delete this.Pp;delete this.y9;delete this.qD.wZ;delete this.qD.S;delete this.Lk;delete this.xA;delete this.ul;delete this.U0; g.J.prototype.JL.call(this)}; g.k.hV=function(){return this.ul?this.ul.S:this.position}; g.k.yA=function(z){kp().yA(z)}; g.k.F9=function(){return!1}; g.k.Yl=function(){return new Ef}; g.k.ek=function(){return this.jB}; g.k.I$=function(z){return ggT(this,z,1E4)}; g.k.Dq=function(z,K,f,M,p,t,B){this.u0||(this.JT&&(z=this.Us(z,f,p,B),M=M&&this.lj.il>=(this.Br()?.3:.5),this.Og(t,z,M),this.pN=K,z.il>0&&-1===this.I4&&(this.I4=K),this.iV==-1&&this.kX()&&(this.iV=K),this.IS==-2&&(this.IS=Qj(this.hV())?z.il:-1),this.lj=z),this.Pp(this))}; g.k.Og=function(z,K,f){this.ek().update(z,K,this.lj,f)}; g.k.SJ=function(){return new A2}; g.k.Us=function(z,K,f,M){f=this.SJ();f.S=K;K=MW().Y;K=Y0(MD)===0?-1:K.isVisible()?0:1;f.Y=K;f.il=this.VV(z);f.Br=this.Br();f.QL=M;return f}; g.k.VV=function(z){return this.opacity===0&&em(this.U0,"opac")===1?0:z}; g.k.Br=function(){return!1}; g.k.CB=function(){return this.Fy||this.uG}; g.k.Aw=function(){FO()}; g.k.Fw=function(){FO()}; g.k.N8=function(){return 0}; g.k.kX=function(){return this.jB.kX()}; g.k.M6=function(){var z=this.JT;z=(this.hasCompleted||this.CH())&&!z;var K=kp().Y!==2||this.Q5E;return this.u0||K&&z?2:this.kX()?4:3}; g.k.k0=function(){return 0};g.nj.prototype.next=function(){return g.vQ}; g.vQ={done:!0,value:void 0};g.nj.prototype.Yq=function(){return this};g.h(jrS,A2);var Ib=X7S([void 0,1,2,3,4,8,16]),GX=X7S([void 0,4,8,16]),j8f={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:id("p0",GX),p1:id("p1",GX),p2:id("p2",GX),p3:id("p3",GX),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:gs("mtos1",[0,2,4],!1,GX),mtos2:gs("mtos2",[0,2,4],!1,GX),mtos3:gs("mtos3",[0,2,4],!1,GX),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:id("a0",GX),a1:id("a1",GX),a2:id("a2",GX),a3:id("a3",GX),ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as", vpt:"vpt",gmm:"gmm",std:"std",efpf:"efpf",swf:"swf",nio:"nio",px:"px",nnut:"nnut",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",tcm:"tcm",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",dtos:"dtos",dtoss:"dtoss",dvs:"dvs",dfvs:"dfvs",dvpt:"dvpt",fmf:"fmf",vds:"vds",is:"is",i0:"i0",i1:"i1",i2:"i2",i3:"i3",ic:"ic",cs:"cs",c:"c",c0:id("c0",GX),c1:id("c1",GX),c2:id("c2",GX),c3:id("c3",GX),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:id("qmtos",Ib),qnc:id("qnc",Ib),qmv:id("qmv",Ib),qnv:id("qnv",Ib), raf:"raf",rafc:"rafc",lte:"lte",ces:"ces",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb",avms:"avms",nvat:"nvat",qi:"qi",psm:"psm",psv:"psv",psfv:"psfv",psa:"psa",pnk:"pnk",pnc:"pnc",pnmm:"pnmm",pns:"pns",ptlt:"ptlt",pngs:"pings",veid:"veid",ssb:"ssb",ss0:id("ss0",GX),ss1:id("ss1",GX),ss2:id("ss2",GX),ss3:id("ss3",GX),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia", omiddc:"omiddc",omidlat:"omidlat",omiddit:"omiddit",nopd:"nopd",co:"co",tm:"tm",tu:"tu"},Y9p=Object.assign({},j8f,{avid:wW("audio"),avas:"avas",vs:"vs"}),XoH={atos:"atos",avt:gs("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(z,K){return function(f){return f[z]===void 0&&K!==void 0?K:f[z]}}("ss",0), t:"t"};Au.prototype.getValue=function(){return this.Y}; Au.prototype.update=function(z,K){z>=32||(this.S&1<=.5;Kj(K.volume)&&(this.J=this.J!=-1?Math.min(this.J,K.volume):K.volume,this.W=Math.max(this.W,K.volume));t&&(this.Hx+=z,this.N+=p?z:0);this.S.update(K.il,f.il,K.S,z,M,p);this.T.update(!0,z);this.C.update(p,z);this.Y1.update(f.fullscreen,z);this.SE.update(p&&!t,z);z=Math.floor(K.mediaTime/1E3);this.Bx.update(z,K.isVisible());this.VE.update(z,K.il>=1);this.b_.update(z, Ju(K))}};ogS.prototype.Y=function(z){this.T||(this.S(z)?(z=B4q(this.N,this.J,z),this.C|=z,z=z==0):z=!1,this.T=z)};g.h(XA,ogS);XA.prototype.S=function(){return!0}; XA.prototype.W=function(){return!1}; XA.prototype.getId=function(){var z=this,K=TH($F,function(f){return f==z.J}); return uK[K].toString()}; XA.prototype.toString=function(){var z="";this.W()&&(z+="c");this.T&&(z+="s");this.C>0&&(z+=":"+this.C);return this.getId()+z};g.h(xE,XA);xE.prototype.Y=function(z,K){K=K===void 0?null:K;K!=null&&this.G.push(K);XA.prototype.Y.call(this,z)};g.h(FA,CF5);FA.prototype.Y=function(){return null}; FA.prototype.T=function(){return[]};g.h(Of,It);g.k=Of.prototype;g.k.vS=function(){if(this.element){var z=this.element,K=this.Y.S.T;try{try{var f=pi5(z.getBoundingClientRect())}catch(G){f=new ao(0,0,0,0)}var M=f.right-f.left,p=f.bottom-f.top,t=Fpg(z,K),B=t.x,v=t.y;var I=new ao(Math.round(v),Math.round(B+M),Math.round(v+p),Math.round(B))}catch(G){I=A2Z.clone()}this.T=I;this.S=wiS(this,this.T)}}; g.k.yx=function(){this.W=this.Y.J.S}; g.k.fF=function(z){var K=em(this.U0,"od")==1;return leS(z,this.W,this.element,K)}; g.k.ow=function(){this.timestamp=FO()}; g.k.yH=function(){this.ow();this.vS();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var z=this.element;var K=new g.W9(z.videoWidth,z.videoHeight);z=this.S;var f=Ro(z),M=z.getHeight(),p=K.width;K=K.height;p<=0||K<=0||f<=0||M<=0||(p/=K,K=f/M,z=z.clone(),p>K?(f/=p,M=(M-f)/2,M>0&&(M=z.top+M,z.top=Math.round(M),z.bottom=Math.round(M+f))):(M*=p,f=Math.round((f-M)/2),f>0&&(f=z.left+f,z.left=Math.round(f),z.right=Math.round(f+M))));this.S=z}this.yx(); z=this.S;f=this.W;z=z.left<=f.right&&f.left<=z.right&&z.top<=f.bottom&&f.top<=z.bottom?new ao(Math.max(z.top,f.top),Math.min(z.right,f.right),Math.min(z.bottom,f.bottom),Math.max(z.left,f.left)):new ao(0,0,0,0);f=z.top>=z.bottom||z.left>=z.right?new ao(0,0,0,0):z;z=this.Y.J;K=p=M=0;if((this.S.bottom-this.S.top)*(this.S.right-this.S.left)>0)if(this.fF(f))f=new ao(0,0,0,0);else{M=fj().J;K=new ao(0,M.height,M.width,0);var t;M=qD(f,(t=this.C)!=null?t:this.S);p=qD(f,fj().S);K=qD(f,K)}t=f.top>=f.bottom|| f.left>=f.right?new ao(0,0,0,0):up(f,-this.S.left,-this.S.top);pj()||(p=M=0);this.N=new Tz(z,this.element,this.S,t,M,p,this.timestamp,K)}; g.k.getName=function(){return this.Y.getName()};var x5Z=new ao(0,0,0,0);g.h(ZO,Of);g.k=ZO.prototype;g.k.observe=function(){this.J();return!0}; g.k.Gb=function(){Of.prototype.yH.call(this)}; g.k.ow=function(){}; g.k.vS=function(){}; g.k.yH=function(){this.J();Of.prototype.yH.call(this)}; g.k.g5=function(z){z=z.isActive();z!==this.D&&(z?this.J():(fj().S=new ao(0,0,0,0),this.S=new ao(0,0,0,0),this.W=new ao(0,0,0,0),this.timestamp=-1));this.D=z};var b9={},B5S=(b9.firstquartile=0,b9.midpoint=1,b9.thirdquartile=2,b9.complete=3,b9);g.h(Cj,mH);g.k=Cj.prototype;g.k.F9=function(){return!0}; g.k.Ld=function(){return this.GU==2}; g.k.I$=function(z){return ggT(this,z,Math.max(1E4,this.T/3))}; g.k.Dq=function(z,K,f,M,p,t,B){var v=this,I=this.G(this)||{};g.Mn(I,p);this.T=I.duration||this.T;this.N=I.isVpaid||this.N;this.Px=I.isYouTube||this.Px;MW();this.oa=!1;p=UQ8(this,K);Tjv(this)===1&&(t=p);mH.prototype.Dq.call(this,z,K,f,M,I,t,B);this.LD&&this.LD.T&&g.co(this.W,function(G){G.Y(v)})}; g.k.Og=function(z,K,f){mH.prototype.Og.call(this,z,K,f);z7(this).update(z,K,this.lj,f);this.rE=Ju(this.lj)&&Ju(K);this.eV==-1&&this.VE&&(this.eV=this.ek().T.S);this.Qv.T=0;z=this.kX();K.isVisible()&&sf(this.Qv,"vs");z&&sf(this.Qv,"vw");Kj(K.volume)&&sf(this.Qv,"am");Ju(K)?sf(this.Qv,"a"):sf(this.Qv,"mut");this.r5&&sf(this.Qv,"f");K.Y!=-1&&(sf(this.Qv,"bm"),K.Y==1&&(sf(this.Qv,"b"),Ju(K)&&sf(this.Qv,"umutb")));Ju(K)&&K.isVisible()&&sf(this.Qv,"avs");this.rE&&z&&sf(this.Qv,"avw");K.il>0&&sf(this.Qv, "pv");KD(this,this.ek().T.S,!0)&&sf(this.Qv,"gdr");ud(this.ek().Y,1)>=2E3&&sf(this.Qv,"pmx");this.oa&&sf(this.Qv,"tvoff")}; g.k.Yl=function(){return new jJ}; g.k.ek=function(){return this.jB}; g.k.SJ=function(){return new jrS}; g.k.Us=function(z,K,f,M){z=mH.prototype.Us.call(this,z,K,f,M===void 0?-1:M);z.fullscreen=this.r5;z.paused=this.Ld();z.volume=f.volume;Kj(z.volume)||(this.TP++,K=this.lj,Kj(K.volume)&&(z.volume=K.volume));f=f.currentTime;z.mediaTime=f!==void 0&&f>=0?f:-1;return z}; g.k.VV=function(z){return fj(),this.r5?1:mH.prototype.VV.call(this,z)}; g.k.N8=function(){return 1}; g.k.getDuration=function(){return this.T}; g.k.M6=function(){return this.u0?2:Kt8(this)?5:this.kX()?4:3}; g.k.k0=function(){return this.SE?this.ek().C.T>=2E3?4:3:2}; g.k.r6=function(z){this.ul&&this.ul.r6(z)};var FpT=g.N5();huu.prototype.reset=function(){this.S=[];this.Y=[]}; var Bj=$N(huu);g.h(Iu,GQ);g.k=Iu.prototype;g.k.getName=function(){return(this.Y?this.Y:this.S).getName()}; g.k.eQ=function(){return(this.Y?this.Y:this.S).eQ()}; g.k.KD=function(){return(this.Y?this.Y:this.S).KD()}; g.k.init=function(z){var K=!1;(0,g.co)(this.T,function(f){f.initialize()&&(K=!0)}); K&&(this.J=z,ND(this.S,this));return K}; g.k.dispose=function(){(0,g.co)(this.T,function(z){z.dispose()}); GQ.prototype.dispose.call(this)}; g.k.Ev=function(){return $E(this.T,function(z){return z.kW()})}; g.k.bC=function(){return $E(this.T,function(z){return z.kW()})}; g.k.EN=function(z,K,f){return new Of(z,this.S,K,f)}; g.k.Gb=function(z){this.Y=z.Y};var Qng={threshold:[0,.3,.5,.75,1]};g.h(G7,Of);g.k=G7.prototype;g.k.observe=function(){var z=this;this.l_||(this.l_=FO());if(TWS(298,function(){return qU8(z)}))return!0; this.Y.Qa("msf");return!1}; g.k.unobserve=function(){if(this.J&&this.element)try{this.J.unobserve(this.element),this.D?(this.D.unobserve(this.element),this.D=null):this.G&&(this.G.disconnect(),this.G=null)}catch(z){}}; g.k.yH=function(){var z=bK(this);z.length>0&&er(this,z);Of.prototype.yH.call(this)}; g.k.vS=function(){}; g.k.fF=function(){return!1}; g.k.yx=function(){}; g.k.eQ=function(){var z={};return Object.assign(this.Y.eQ(),(z.niot_obs=this.l_,z.niot_cbk=this.Y1,z))}; g.k.getName=function(){return"nio"};g.h(wF,GQ);wF.prototype.getName=function(){return"nio"}; wF.prototype.bC=function(){return!fj().Y&&this.S.S.T.IntersectionObserver!=null}; wF.prototype.EN=function(z,K,f){return new G7(z,this.S,K,f)};g.h(D9,B2);D9.prototype.Oi=function(){return fj().S}; D9.prototype.kW=function(){var z=li5();this.D!==z&&(this.S!=this&&z>this.S.D&&(this.S=this,v2(this)),this.D=z);return z==2};ya.prototype.sample=function(){au(this,Nx(),!1)}; ya.prototype.J=function(){var z=pj(),K=FO();z?(r4||(ZD=K,g.co(Bj.S,function(f){var M=f.ek();M.Xc=YE(M,K,f.GU!=1)})),r4=!0):(this.G=gD8(this,K),r4=!1,N5v=K,g.co(Bj.S,function(f){f.JT&&(f.ek().D=K)})); au(this,Nx(),!z)}; var kF=$N(ya);var dMW=null,YF="",jr=!1;var ACq=snv().OD,Sr=snv().QB;var XXg={uaV:"visible",nxc:"audible",Arh:"time",YPd:"timetype"},xMq={visible:function(z){return/^(100|[0-9]{1,2})$/.test(z)}, audible:function(z){return z=="0"||z=="1"}, timetype:function(z){return z=="mtos"||z=="tos"}, time:function(z){return/^(100|[0-9]{1,2})%$/.test(z)||/^([0-9])+ms$/.test(z)}}; YUI.prototype.setTime=function(z,K,f){K=="ms"?(this.T=z,this.J=-1):(this.T=-1,this.J=z);this.C=f===void 0?"tos":f;return this};g.h(Pj,XA);Pj.prototype.getId=function(){return this.G}; Pj.prototype.W=function(){return!0}; Pj.prototype.S=function(z){var K=z.ek(),f=z.getDuration();return $E(this.D,function(M){if(M.S!=void 0)var p=OFv(M,K);else b:{switch(M.C){case "mtos":p=M.Y?K.C.T:K.T.S;break b;case "tos":p=M.Y?K.C.S:K.T.S;break b}p=0}p==0?M=!1:(M=M.T!=-1?M.T:f!==void 0&&f>0?M.J*f:-1,M=M!=-1&&p>=M);return M})};g.h(Hj,Fup);Hj.prototype.S=function(z){var K=new xQu;K.S=c2(z,j8f);K.Y=c2(z,XoH);return K};g.h(Qa,XA);Qa.prototype.S=function(z){return Kt8(z)};g.h(qx,CF5);g.h(mT,XA);mT.prototype.S=function(z){return z.ek().kX()};g.h(lK,xE);lK.prototype.S=function(z){var K=g.h2(this.G,em(kp().U0,"ovms"));return!z.u0&&(z.GU!=0||K)};g.h(Va,qx);Va.prototype.Y=function(){return new lK(this.S)}; Va.prototype.T=function(){return[new mT("viewable_impression",this.S),new Qa(this.S)]};g.h(nD,ZO);nD.prototype.J=function(){var z=g.CW("ima.admob.getViewability"),K=em(this.U0,"queryid");typeof z==="function"&&K&&z(K)}; nD.prototype.getName=function(){return"gsv"};g.h(Wj,GQ);Wj.prototype.getName=function(){return"gsv"}; Wj.prototype.bC=function(){var z=fj();kp();return z.Y&&!1}; Wj.prototype.EN=function(z,K,f){return new nD(this.S,K,f)};g.h(Jg,ZO);Jg.prototype.J=function(){var z=this,K=g.CW("ima.bridge.getNativeViewability"),f=em(this.U0,"queryid");typeof K==="function"&&f&&K(f,function(M){g.U9(M)&&z.G++;var p=M.opt_nativeViewVisibleBounds||{},t=M.opt_nativeViewHidden;z.S=tGW(M.opt_nativeViewBounds||{});var B=z.Y.J;B.S=t?x5Z.clone():tGW(p);z.timestamp=M.opt_nativeTime||-1;fj().S=B.S;M=M.opt_nativeVolume;M!==void 0&&(B.volume=M)})}; Jg.prototype.getName=function(){return"nis"};g.h(gF,GQ);gF.prototype.getName=function(){return"nis"}; gF.prototype.bC=function(){var z=fj();kp();return z.Y&&!1}; gF.prototype.EN=function(z,K,f){return new Jg(this.S,K,f)};g.h(iK,B2);g.k=iK.prototype;g.k.kW=function(){return this.Y.Nt!=null}; g.k.Ui=function(){var z={};this.Bx&&(z.mraid=this.Bx);this.nH&&(z.mlc=1);z.mtop=this.Y.zYL;this.G&&(z.mse=this.G);this.vx&&(z.msc=1);z.mcp=this.Y.compatibility;return z}; g.k.CK=function(z){var K=g.i8.apply(1,arguments);try{return this.Y.Nt[z].apply(this.Y.Nt,K)}catch(f){xp(538,f,.01,function(M){M.method=z})}}; g.k.initialize=function(){var z=this;if(this.isInitialized)return!this.RR();this.isInitialized=!0;if(this.Y.compatibility===2)return this.G="ng",this.Qa("w"),!1;if(this.Y.compatibility===1)return this.G="mm",this.Qa("w"),!1;fj().D=!0;this.T.document.readyState&&this.T.document.readyState=="complete"?CM8(this):H2(this.T,"load",function(){MW().setTimeout(XO(292,function(){return CM8(z)}),100)},292); return!0}; g.k.qQ=function(){var z=fj(),K=$rp(this,"getMaxSize");z.S=new ao(0,K.width,K.height,0)}; g.k.Jy=function(){fj().J=$rp(this,"getScreenSize")}; g.k.dispose=function(){UMu(this);B2.prototype.dispose.call(this)};var PpT=new function(z,K){this.key=z;this.defaultValue=K===void 0?!1:K;this.valueType="boolean"}("45378663");g.k=cj.prototype;g.k.Wv=function(z){Vj(z,!1);uCS(z)}; g.k.ej=function(){}; g.k.XO=function(z,K,f,M){var p=this;z=new Cj(eT,z,f?K:-1,7,this.NN(),this.CS());z.R1=M;iWS(z.U0);bE(z.U0,"queryid",z.R1);z.yA("");cGp(z,function(){return p.a$.apply(p,g.P(g.i8.apply(0,arguments)))},function(){return p.Nz.apply(p,g.P(g.i8.apply(0,arguments)))}); (M=$N(vj).S)&&JG8(z,M);this.T&&(z.r6(this.T),this.T=null);z.qD.wZ&&$N(V5g);return z}; g.k.g5=function(z){switch(z.KD()){case 0:if(z=$N(vj).S)z=z.S,g.R8(z.C,this),z.N&&this.F9()&&bC8(z);Ag();break;case 2:hg()}}; g.k.Gb=function(){}; g.k.F9=function(){return!1}; g.k.Nz=function(z,K){z.u0=!0;switch(z.N8()){case 1:N4g(z,K);break;case 2:this.nC(z)}}; g.k.Ja=function(z){var K=z.G(z);K&&(K=K.volume,z.SE=Kj(K)&&K>0);M58(z,0);return fD(z,"start",pj())}; g.k.SK=function(z,K,f){au(kF,[z],!pj());return this.yB(z,K,f)}; g.k.yB=function(z,K,f){return fD(z,f,pj())}; g.k.Aa=function(z){return Oz(z,"firstquartile",1)}; g.k.lG=function(z){z.VE=!0;return Oz(z,"midpoint",2)}; g.k.Ez=function(z){return Oz(z,"thirdquartile",3)}; g.k.al=function(z){var K=Oz(z,"complete",4);TQ(z);return K}; g.k.ol=function(z){z.GU=3;return fD(z,"error",pj())}; g.k.WK=function(z,K,f){K=pj();if(z.Ld()&&!K){var M=z.ek(),p=FO();M.D=p}au(kF,[z],!K);z.Ld()&&(z.GU=1);return fD(z,f,K)}; g.k.qH=function(z,K){K=this.SK(z,K||{},"skip");TQ(z);return K}; g.k.Yy=function(z,K){Vj(z,!0);return this.SK(z,K||{},"fullscreen")}; g.k.S6=function(z,K){Vj(z,!1);return this.SK(z,K||{},"exitfullscreen")}; g.k.VA=function(z,K,f){K=z.ek();var M=FO();K.Xc=YE(K,M,z.GU!=1);au(kF,[z],!pj());z.GU==1&&(z.GU=2);return fD(z,f,pj())}; g.k.TO=function(z){au(kF,[z],!pj());return z.Y()}; g.k.P3=function(z){au(kF,[z],!pj());this.nZ(z);TQ(z);return z.Y()}; g.k.a$=function(){}; g.k.nC=function(){}; g.k.nZ=function(){}; g.k.zF=function(){}; g.k.yV=function(){}; g.k.CS=function(){this.S||(this.S=this.yV());return this.S==null?new FA:new Va(this.S)}; g.k.NN=function(){return new Hj};g.h(rF,XA);rF.prototype.S=function(z){return z.k0()==4};g.h(Uz,xE);Uz.prototype.S=function(z){z=z.k0();return z==3||z==4};g.h(z1,qx);z1.prototype.Y=function(){return new Uz(this.S)}; z1.prototype.T=function(){return[new rF(this.S)]};g.h(K_,Fup);K_.prototype.S=function(z){z&&(z.e===28&&(z=Object.assign({},z,{avas:3})),z.vs===4||z.vs===5)&&(z=Object.assign({},z,{vs:3}));var K=new xQu;K.S=c2(z,Y9p);K.Y=c2(z,XoH);return K};bea.prototype.Y=function(){return g.CW(this.S)};g.h(f_,cj);g.k=f_.prototype;g.k.ej=function(z,K){var f=this,M=$N(vj);if(M.S!=null)switch(M.S.getName()){case "nis":var p=yoW(this,z,K);break;case "gsv":p=Dr5(this,z,K);break;case "exc":p=kzd(this,z)}p||(K.opt_overlayAdElement?p=void 0:K.opt_adElement&&(p=IDg(this,z,K.opt_adElement,K.opt_osdId)));p&&p.N8()==1&&(p.G==g.DZ&&(p.G=function(t){return f.zF(t)}),wvg(this,p,K)); return p}; g.k.zF=function(z){z.Y=0;z.Hx=0;if(z.J=="h"||z.J=="n"){kp();z.b_&&(kp(),xF(this)!="h"&&xF(this));var K=g.CW("ima.common.getVideoMetadata");if(typeof K==="function")try{var f=K(z.R1)}catch(p){z.Y|=4}else z.Y|=2}else if(z.J=="b")if(K=g.CW("ytads.bulleit.getVideoMetadata"),typeof K==="function")try{f=K(z.R1)}catch(p){z.Y|=4}else z.Y|=2;else if(z.J=="ml")if(K=g.CW("ima.common.getVideoMetadata"),typeof K==="function")try{f=K(z.R1)}catch(p){z.Y|=4}else z.Y|=2;else z.Y|=1;z.Y||(f===void 0?z.Y|=8:f===null? z.Y|=16:g.U9(f)?z.Y|=32:f.errorCode!=null&&(z.Hx=f.errorCode,z.Y|=64));f==null&&(f={});K=f;z.D=0;for(var M in gfo)K[M]==null&&(z.D|=gfo[M]);Gzg(K,"currentTime");Gzg(K,"duration");Kj(f.volume)&&Kj()&&(f.volume*=NaN);return f}; g.k.yV=function(){kp();xF(this)!="h"&&xF(this);var z=hXu(this);return z!=null?new bea(z):null}; g.k.nC=function(z){!z.S&&z.u0&&FZ(this,z,"overlay_unmeasurable_impression")&&(z.S=!0)}; g.k.nZ=function(z){z.sR&&(z.kX()?FZ(this,z,"overlay_viewable_end_of_session_impression"):FZ(this,z,"overlay_unviewable_impression"),z.sR=!1)}; g.k.a$=function(){}; g.k.XO=function(z,K,f,M){if(Hsg()){var p=em(kp().U0,"mm"),t={};(p=(t[ho.gp]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",t[ho.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",t)[p])&&uOS(this,p);this.J==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&xp(1044,Error())}z=cj.prototype.XO.call(this,z,K,f,M);this.C&&(K=this.W,z.C==null&&(z.C=new srS),K.S[z.R1]=z.C,z.C.C=FpT);return z}; g.k.Wv=function(z){z&&z.N8()==1&&this.C&&delete this.W.S[z.R1];return cj.prototype.Wv.call(this,z)}; g.k.CS=function(){this.S||(this.S=this.yV());return this.S==null?new FA:this.J==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new z1(this.S):new Va(this.S)}; g.k.NN=function(){return this.J==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new K_:new Hj}; g.k.r6=function(z,K,f,M,p){K=new ao(f,K+M,f+p,K);(z=tg(Bj,z))?z.r6(K):this.T=K}; var O12=Yp(193,Epp,void 0,vpI);g.ov("Goog_AdSense_Lidar_sendVastEvent",O12);var r2_=XO(194,function(z,K){K=K===void 0?{}:K;z=SWg($N(f_),z,K);return Lmp(z)}); g.ov("Goog_AdSense_Lidar_getViewability",r2_);var Z1Q=Yp(195,function(){return y65()}); g.ov("Goog_AdSense_Lidar_getUrlSignalsArray",Z1Q);var ofp=XO(196,function(){return JSON.stringify(y65())}); g.ov("Goog_AdSense_Lidar_getUrlSignalsList",ofp);var vBS=Mq("adurl"),NVT=Mq("ae"),BVq=Mq("dsh");var QWp=b8(["//ep2.adtrafficquality.google/sodar/",""]),qWq=b8(["//tpc.googlesyndication.com/sodar/",""]);g.h(Nq,Error);g.h(G1,g.J);G1.prototype.Gx=function(){return this.wpc.f()}; G1.prototype.wT=function(z){this.wpc.c(z)}; G1.prototype.oK=function(z){return this.wpc.m(npS(z))}; G1.prototype.Qr=function(z){return this.wpc.mws(npS(z))}; g.h(vF,g.J);vF.prototype.snapshot=function(z){return this.r3.s(Object.assign({},z.HV&&{c:z.HV},z.TG&&{s:z.TG},z.Eg!==void 0&&{p:z.Eg}))}; vF.prototype.xV=function(z){this.r3.e(z)}; vF.prototype.W_=function(){return this.r3.l()};var co5;g.h(e_,g.J);e_.prototype.share=function(){if(this.CH())throw Error("E:AD");this.J++;return this}; e_.prototype.dispose=function(){--this.J||g.J.prototype.dispose.call(this)}; co5=Symbol.dispose;sWo.prototype.un=function(z,K){this.S.un("/client_streamz/bg/frs",z,K)}; AoW.prototype.un=function(z,K,f,M,p,t){this.S.un("/client_streamz/bg/wrl",z,K,f,M,p,t)}; jWS.prototype.gh=function(z,K){this.S.NC("/client_streamz/bg/ec",z,K)}; YWv.prototype.un=function(z,K,f){this.S.un("/client_streamz/bg/el",z,K,f)}; Xvp.prototype.gh=function(z,K){this.S.NC("/client_streamz/bg/cec",z,K)}; xrW.prototype.gh=function(z,K){this.S.NC("/client_streamz/bg/po/csc",z,K)}; FmS.prototype.gh=function(z,K){this.S.NC("/client_streamz/bg/po/ctav",z,K)}; Oe8.prototype.gh=function(z,K){this.S.NC("/client_streamz/bg/po/cwsc",z,K)};g.h(roa,g.AC);g.h(y0,g.AC);var uZ=[1,2,3];var C_4=[0,uZ,l4Q,Ef9,q94];var TZQ=[0,fi,[0,y2H,a4Q]];g.h(kj,g.AC);var S_=[1,2,3];var U5o=[0,S_,S9H,h7f,pi,TZQ];g.h(aE,g.AC);var zw7=[0,fi,C_4,U5o];var KyZ=[0,$d];var $nH=[0,$d,-1,Q8_];var fK5=[0,$d,-1,uT2,Q8_];var Mm8=[0,[1,2,3],pi,$nH,pi,fK5,pi,KyZ];g.h(RE,g.AC);RE.prototype.CD=function(){var z=JG(this,3,fP,3,!0);Qd(z);return z[void 0]};RE.prototype.T=SZu([0,$d,Mm8,m5Q,fi,zw7,P_2,H18]);g.h(opq,g.AC);g.k=L_.prototype;g.k.isEnabled=function(){if(!g.ZT.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{Dw:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.k.set=function(z,K,f){var M=!1;if(typeof f==="object"){var p=f.ffV;M=f.secure||!1;var t=f.domain||void 0;var B=f.path||void 0;var v=f.Dw}if(/[;=\s]/.test(z))throw Error('Invalid cookie name "'+z+'"');if(/[;\r\n]/.test(K))throw Error('Invalid cookie value "'+K+'"');v===void 0&&(v=-1);f=t?";domain="+t:"";B=B?";path="+B:"";M=M?";secure":"";v=v<0?"":v==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+v*1E3)).toUTCString();this.S.cookie=z+"="+K+f+B+v+M+(p!=null?";samesite="+ p:"")}; g.k.get=function(z,K){for(var f=z+"=",M=(this.S.cookie||"").split(";"),p=0,t;p=0;K--)this.remove(z[K])}; var Aa=new L_(typeof document=="undefined"?null:document);PF.prototype.compress=function(z){var K,f,M,p;return g.n(function(t){switch(t.Y){case 1:return K=new CompressionStream("gzip"),f=(new Response(K.readable)).arrayBuffer(),M=K.writable.getWriter(),g.l(t,M.write((new TextEncoder).encode(z)),2);case 2:return g.l(t,M.close(),3);case 3:return p=Uint8Array,g.l(t,f,4);case 4:return t.return(new p(t.S))}})}; PF.prototype.isSupported=function(z){return z<1024?!1:typeof CompressionStream!=="undefined"};g.h(HF,g.AC);Q0.prototype.setInterval=function(z){this.intervalMs=z;this.QR&&this.enabled?(this.stop(),this.start()):this.QR&&this.stop()}; Q0.prototype.start=function(){var z=this;this.enabled=!0;this.QR||(this.QR=setTimeout(function(){z.tick()},this.intervalMs),this.Y=this.S())}; Q0.prototype.stop=function(){this.enabled=!1;this.QR&&(clearTimeout(this.QR),this.QR=void 0)}; Q0.prototype.tick=function(){var z=this;if(this.enabled){var K=Math.max(this.S()-this.Y,0);K0?f:void 0));f=mu(f,4,FY(p>0?p:void 0));f=mu(f,5,FY(t>0?t:void 0));p=f.Yi;t=p[SG]|0;f=Hi(f,t)?f:S2(f,p,t)?uF(f,p):new f.constructor(Rr(p,t,!0));g.CP(B,lZ,10,f)}B=this.S.clone();f=Date.now().toString();B=mu(B,4,UH(f));z=Tg(B,s0,3,z.slice());M&&(B=new qq,M=mu(B,13,FY(M)),B=new m4, M=g.CP(B,qq,2,M),B=new cF,M=g.CP(B,m4,1,M),M=vX(M,2,9),g.CP(z,cF,18,M));K&&tC(z,14,K);return z};g.XU.prototype.Y=0;g.XU.prototype.reset=function(){this.S=this.T=this.J;this.Y=0}; g.XU.prototype.getValue=function(){return this.T};g.h(eU,g.AC);var p42=w4(eU);g.h(aZ8,g.AC);var eZ;eZ=new RTg;g.h(ro,g.J);g.k=ro.prototype;g.k.JL=function(){O0(this);this.Y.stop();this.Bx.stop();g.J.prototype.JL.call(this)}; g.k.dispatch=function(z){if(z instanceof s0)this.log(z);else try{var K=new s0,f=z.yv();var M=BX(K,8,f);this.log(M)}catch(p){Zq(this,4,1)}}; g.k.log=function(z){Zq(this,2,1);if(this.vx){z=z.clone();var K=this.QE++;z=tC(z,21,K);this.componentId&&BX(z,26,this.componentId);K=z;var f=QV(K,1);var M=M===void 0?!1:M;var p=typeof f;M=f==null?f:p==="bigint"?String(oj(64,f)):xN(f)?p==="string"?Zj(f):M?CC(f):Td(f):void 0;M==null&&(M=Date.now(),M=Number.isFinite(M)?M.toString():"0",mu(K,1,UH(M)));M=QV(K,15);M!=null&&(typeof M==="bigint"?wj(M)?M=Number(M):(M=oj(64,M),M=wj(M)?Number(M):String(M)):M=xN(M)?typeof M==="number"?Td(M):Zj(M):void 0);M!=null|| tC(K,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(M=this.experimentIds.clone(),g.CP(K,HF,16,M));Zq(this,1,1);K=this.S.length-1E3+1;K>0&&(this.S.splice(0,K),this.J+=K,Zq(this,3,K));this.S.push(z);this.AT||this.Y.enabled||this.Y.start()}}; g.k.flush=function(z,K){var f=this;if(this.S.length===0)z&&z();else if(this.eV&&this.Y1)this.T.Y=3,SfI(this);else{var M=Date.now();if(this.Xc>M&&this.Hx0&&(f.Hx=Date.now(),f.Xc=f.Hx+w);w=vo(NQ);var R;Rj&&w&&((R=D.Yi[w])==null?void 0:R[175237375])!=null&&h4(U8o,3);a:{var S=S===void 0?!1:S;if(vo(z7S)&&vo(NQ)&&void 0===z7S){R=D.Yi;w=R[NQ];if(!w)break a;if(w=w.BQ)try{w(R,175237375,tSf);break a}catch(E){t4(E)}}S&&(S=D.Yi, (R=vo(NQ))&&R in S&&(S=S[R])&&delete S[175237375])}S=eZ.S?eZ.Y(D,eZ.S,175237375,eZ.T):eZ.Y(D,175237375,null,eZ.T);if(S=S===null?void 0:S)S=zA(S,1,-1),S!==-1&&(f.C=new g.XU(S<1?1:S,3E5,.1),f.Y.setInterval(f.C.getValue()))}}z&&z();f.W=0},b=function(w,D){var y=or(t,s0,3); var R=Number(JRT(t,14));g.xj(f.C);f.Y.setInterval(f.C.getValue());w===401&&B&&(f.Px=B);R&&(f.J+=R);D===void 0&&(D=f.isRetryable(w));D&&(f.S=y.concat(f.S),f.AT||f.Y.enabled||f.Y.start());Zq(f,7,1);K&&K("net-send-failed",w);++f.W},e=function(){f.network&&f.network.send(I,G,b)}; v?v.then(function(w){Zq(f,5,p);I.requestHeaders["Content-Encoding"]="gzip";I.requestHeaders["Content-Type"]="application/binary";I.body=w;I.hh=2;e()},function(){Zq(f,6,p); e()}):e()}}}}; g.k.isRetryable=function(z){return 500<=z&&z<600||z===401||z===0};oE.prototype.send=function(z,K,f){var M=this,p,t,B,v,I,G,b,e,w,D;return g.n(function(y){switch(y.Y){case 1:return t=(p=M.tW?new AbortController:void 0)?setTimeout(function(){p.abort()},z.timeoutMillis):void 0,g.Sq(y,2,3),B=Object.assign({},{method:z.requestType, headers:Object.assign({},z.requestHeaders)},z.body&&{body:z.body},z.withCredentials&&{credentials:"include"},{signal:z.timeoutMillis&&p?p.signal:null}),g.l(y,fetch(z.url,B),5);case 5:v=y.S;if(v.status!==200){(I=f)==null||I(v.status);y.jV(3);break}if((G=K)==null){y.jV(7);break}return g.l(y,v.text(),8);case 8:G(y.S);case 7:case 3:g.mS(y);clearTimeout(t);g.VI(y,0);break;case 2:b=g.QI(y);switch((e=b)==null?void 0:e.name){case "AbortError":(w=f)==null||w(408);break;default:(D=f)==null||D(400)}y.jV(3)}})}; oE.prototype.HJ=function(){return 4};g.h(C_,g.J);C_.prototype.fS=function(){this.C=!0;return this}; C_.prototype.build=function(){this.network||(this.network=new oE);var z=new ro({logSource:this.logSource,hM:this.hM?this.hM:BsW,sessionIndex:this.sessionIndex,YrE:this.l0,V_:this.J,AT:!1,fS:this.C,rz:this.rz,network:this.network});g.d(this,z);if(this.Y){var K=this.Y,f=Yj(z.T);BX(f,7,K)}z.G=new PF;this.componentId&&(z.componentId=this.componentId);this.Pd&&(z.Pd=this.Pd);this.pageId&&(z.pageId=this.pageId);this.S&&((f=this.S)?(z.experimentIds||(z.experimentIds=new HF),K=z.experimentIds,f=f.yv(),BX(K, 4,f)):z.experimentIds&&mu(z.experimentIds,4));this.T&&(z.eV=z.Y1);yud(z.T);this.network.SI&&this.network.SI(this.logSource);this.network.A_E&&this.network.A_E(z);return z};g.h(T1,g.J);T1.prototype.flush=function(z){z=z||[];if(z.length){for(var K=new opq,f=[],M=0;M-1?(K=z[B],f||(K.Sf=!1)):(K=new mDg(K,this.src,t,!!M,p),K.Sf=f,z.push(K));return K}; g.k.remove=function(z,K,f,M){z=z.toString();if(!(z in this.listeners))return!1;var p=this.listeners[z];K=NX(p,K,f,M);return K>-1?(pr(p[K]),g.a8(p,K),p.length==0&&(delete this.listeners[z],this.S--),!0):!1}; g.k.removeAll=function(z){z=z&&z.toString();var K=0,f;for(f in this.listeners)if(!z||f==z){for(var M=this.listeners[f],p=0;p-1?z[p]:null}; g.k.hasListener=function(z,K){var f=z!==void 0,M=f?z.toString():"",p=K!==void 0;return g.xf(this.listeners,function(t){for(var B=0;B>>0);g.GH(g.kZ,g.J);g.kZ.prototype[Qto]=!0;g.k=g.kZ.prototype;g.k.addEventListener=function(z,K,f,M){g.Ik(this,z,K,f,M)}; g.k.removeEventListener=function(z,K,f,M){ijv(this,z,K,f,M)}; g.k.dispatchEvent=function(z){var K=this.ZI;if(K){var f=[];for(var M=1;K;K=K.ZI)f.push(K),++M}K=this.ym;M=z.type||z;if(typeof z==="string")z=new g.$Z(z,K);else if(z instanceof g.$Z)z.target=z.target||K;else{var p=z;z=new g.$Z(M,K);g.Mn(z,p)}p=!0;var t;if(f)for(t=f.length-1;!z.Y&&t>=0;t--){var B=z.currentTarget=f[t];p=ak(B,M,!0,z)&&p}z.Y||(B=z.currentTarget=K,p=ak(B,M,!0,z)&&p,z.Y||(p=ak(B,M,!1,z)&&p));if(f)for(t=0;!z.Y&&t0){this.Y--;var z=this.S;this.S=z.next;z.next=null}else z=this.T();return z};var Lr;PO.prototype.add=function(z,K){var f=Yfd.get();f.set(z,K);this.Y?this.Y.next=f:this.S=f;this.Y=f}; PO.prototype.remove=function(){var z=null;this.S&&(z=this.S,this.S=this.S.next,this.S||(this.Y=null),z.next=null);return z}; var Yfd=new Sk(function(){return new HO},function(z){return z.reset()}); HO.prototype.set=function(z,K){this.S=z;this.scope=K;this.next=null}; HO.prototype.reset=function(){this.next=this.scope=this.S=null};var Qh,qX=!1,AuS=new PO;X2a.prototype.reset=function(){this.context=this.Y=this.T=this.S=null;this.J=!1}; var xD5=new Sk(function(){return new X2a},function(z){z.reset()}); g.Vh.prototype.then=function(z,K,f){return z5S(this,uL(typeof z==="function"?z:null),uL(typeof K==="function"?K:null),f)}; g.Vh.prototype.$goog_Thenable=!0;g.k=g.Vh.prototype;g.k.finally=function(z){var K=this;z=uL(z);return new Promise(function(f,M){Zjg(K,function(p){z();f(p)},function(p){z(); M(p)})})}; g.k.Qf=function(z,K){return z5S(this,null,uL(z),K)}; g.k.catch=g.Vh.prototype.Qf;g.k.cancel=function(z){if(this.S==0){var K=new jk(z);g.mZ(function(){oEd(this,K)},this)}}; g.k.La_=function(z){this.S=0;lL(this,2,z)}; g.k.r_E=function(z){this.S=0;lL(this,3,z)}; g.k.Kp=function(){for(var z;z=CdI(this);)TsW(this,z,this.S,this.G);this.W=!1}; var Mr8=t4;g.GH(jk,b_);jk.prototype.name="cancel";g.GH(g.YZ,g.kZ);g.k=g.YZ.prototype;g.k.enabled=!1;g.k.gO=null;g.k.setInterval=function(z){this.MM=z;this.gO&&this.enabled?(this.stop(),this.start()):this.gO&&this.stop()}; g.k.XmH=function(){if(this.enabled){var z=g.N5()-this.NK;z>0&&z0&&(this.getStatus(),this.W=setTimeout(this.Hq.bind(this), this.Y1)),this.getStatus(),this.N=!0,this.S.send(z),this.N=!1}catch(B){this.getStatus(),a9a(this,B)}}; g.k.Hq=function(){typeof UA!="undefined"&&this.S&&(this.J="Timed out after "+this.Y1+"ms, aborting",this.Y=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.k.abort=function(z){this.S&&this.T&&(this.getStatus(),this.T=!1,this.C=!0,this.S.abort(),this.C=!1,this.Y=z||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Tf(this))}; g.k.JL=function(){this.S&&(this.T&&(this.T=!1,this.C=!0,this.S.abort(),this.C=!1),Tf(this,!0));g.Cr.Y9.JL.call(this)}; g.k.h3=function(){this.CH()||(this.nH||this.N||this.C?R5I(this):this.urE())}; g.k.urE=function(){R5I(this)}; g.k.isActive=function(){return!!this.S}; g.k.isComplete=function(){return g.zh(this)==4}; g.k.getStatus=function(){try{return g.zh(this)>2?this.S.status:-1}catch(z){return-1}}; g.k.getResponseHeader=function(z){if(this.S&&this.isComplete())return z=this.S.getResponseHeader(z),z===null?void 0:z}; g.k.getLastError=function(){return typeof this.J==="string"?this.J:String(this.J)};pV.prototype.send=function(z,K,f){K=K===void 0?function(){}:K; f=f===void 0?function(){}:f; k7a(z.url,function(M){M=M.target;KV(M)?K(g.$V(M)):f(M.getStatus())},z.requestType,z.body,z.requestHeaders,z.timeoutMillis,z.withCredentials)}; pV.prototype.HJ=function(){return 1};Bc.prototype.done=function(){this.logger.sx(this.event,tm()-this.startTime)}; g.h(NY,e_);g.h(Ii,NY);g.k=Ii.prototype;g.k.KT=function(){}; g.k.H9=function(){}; g.k.sx=function(){}; g.k.Bc=function(){}; g.k.pE=function(){}; g.k.iz=function(z,K,f,M){return M}; g.k.Tg=function(){}; g.k.SB=function(){}; g.k.lE=function(){}; g.k.wd=function(){}; g.h(Gh,NY);g.k=Gh.prototype;g.k.update=function(z){this.logger.dispose();this.logger=z}; g.k.H9=function(z){this.logger.H9(z)}; g.k.sx=function(z,K){this.logger.sx(z,K)}; g.k.Bc=function(z){this.logger.Bc(z)}; g.k.pE=function(){this.logger.pE()}; g.k.iz=function(z,K,f,M){return this.logger.iz(z,K,f,M)}; g.k.Tg=function(z){this.logger.Tg(z)}; g.k.SB=function(z){this.logger.SB(z)}; g.k.lE=function(z){this.logger.lE(z)}; g.k.wd=function(z){this.logger.wd(z)}; g.k.KT=function(z){this.logger.KT(z)}; g.h(bA,g.J);g.h(eI,NY);g.k=eI.prototype;g.k.KT=function(z){this.metrics.pmc.un(z,this.kx)}; g.k.H9=function(z){this.metrics.eventCount.gh(z,this.kx)}; g.k.sx=function(z,K){this.metrics.P5.un(K,z,this.kx)}; g.k.Bc=function(z){this.metrics.errorCount.gh(z,this.kx)}; g.k.iz=function(z,K,f,M){function p(v){if(!t.CH()){var I=tm()-B;t.metrics.dZq.un(I,z,f,v,K,t.kx)}} var t=this,B=tm();M.then(function(){return void p(0)},function(v){return void p(v instanceof OA?v.code:-1)}); return M}; g.k.Tg=function(z){this.metrics.Hoe.gh(z,this.kx)}; g.k.SB=function(z){this.metrics.UG.gh(z,this.kx)}; g.k.lE=function(z){this.metrics.jxe.gh(z,this.kx)}; g.h(wS,eI);wS.prototype.wd=function(z){var K=this;z=z.slice();g.J2(z);g.gZ(z,this.Y)||(this.S.dispose(),this.T&&this.service.dispose(),this.service=this.options.ws("49",this.options.hT.concat(z)),this.S=new bA(function(){return void K.service.Ha()},this.options.AZ),this.metrics=LTo(this.service),this.Y=z)}; wS.prototype.pE=function(){PKS(this.S)};g.h(Df,g.AC);g.h(y2,g.AC);g.h(kV,g.AC);var cgg=w4(kV),QuI=function(z){return Xj(function(K){return K instanceof z&&!Hi(K)})}(kV); kV.messageId="bfkj";g.h(bZ,g.AC);g.h(hm,g.AC);var qzg=w4(hm);g.h(Ri,g.J);Ri.prototype.snapshot=function(z){if(this.CH())throw Error("Already disposed");this.logger.H9("n");var K=this.logger.share();return this.T.then(function(f){var M=f.p8;return new Promise(function(p){var t=new Bc(K,"n");M(function(B){t.done();K.KT(B.length);K.pE();K.dispose();p(B)},[z.HV, z.TG,z.m$,z.Eg])})})}; Ri.prototype.n1=function(z){var K=this;if(this.CH())throw Error("Already disposed");this.logger.H9("n");var f=vc(this.logger,function(){return K.J([z.HV,z.TG,z.m$,z.Eg])},"n"); this.logger.KT(f.length);this.logger.pE();return f}; Ri.prototype.xV=function(z){this.T.then(function(K){var f;(f=K.OaH)==null||f(z)})}; Ri.prototype.W_=function(){return this.logger.share()};g.h(LV,g.AC);g.h(EE,g.AC);Pc.prototype.In=function(z){return Yz8(this,z,new Ii,0)};g.h(Hc,g.J);Hc.prototype.snapshot=function(z){var K=this;return g.n(function(f){switch(f.Y){case 1:if(K.CH())throw Error("Already disposed");if(K.Y||K.G){f.jV(2);break}return g.l(f,K.C.promise,2);case 2:if(!K.Y){f.jV(4);break}return g.l(f,K.Y.snapshot(z),5);case 5:return f.return(f.S);case 4:throw K.G;}})}; Hc.prototype.xV=function(z){var K,f;(K=this.Y)==null||(f=K.xV)==null||f.call(K,z)}; Hc.prototype.handleError=function(z){if(!this.CH()){this.G=z;this.C.resolve();var K,f;(f=(K=this.options).HIe)==null||f.call(K,z)}}; Hc.prototype.W_=function(){return this.logger.share()}; var FTW={jXa:432E5,mx:3E5,KM:10,Zm:1E4,fp:3E4,RO:3E4,TIc:6E4,Cp:1E3,IW:6E4,B5:6E5,G$:.25,v5:2,maxAttempts:10};var NrT,K4d=(NrT=Math.imul)!=null?NrT:function(z,K){return z*K|0},lA=[196, 200,224,18];V2.prototype.yv=function(){return String(this.S)+","+this.Y.join()}; V2.prototype.iI=function(z,K){var f=void 0;if(this.Y[this.S]!==z){var M=this.Y.indexOf(z);M!==-1?(this.Y.splice(M,1),M0;)K[f++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(z%62),z=Math.floor(z/62);return K.join("")}};var wF5;g.h(Wc,g.J);Wc.prototype.Qr=function(z,K){var f=this.oK(z);K==null||K(f);return vc(this.logger,function(){return g.NW(f,2)},this.Y)}; wF5=Symbol.dispose;g.h(iA,Wc);iA.prototype.oK=function(z,K){var f=this;this.logger.H9(this.S);++this.C>=this.W&&this.T.resolve();var M=z();z=vc(this.logger,function(){return f.J(M)},"C"); if(z===void 0)throw new Nq(17,"YNJ:Undefined");if(!(z instanceof Uint8Array))throw new Nq(18,"ODM:Invalid");K==null||K(z);return z}; g.h(dS,Wc);dS.prototype.oK=function(){return this.J}; g.h(cc,Wc);cc.prototype.oK=function(){var z=this;return vc(this.logger,function(){return Ij(z.J)},"d")}; cc.prototype.Qr=function(){return this.J}; g.h(sE,Wc);sE.prototype.oK=function(){if(this.J)return this.J;this.J=Dqv(this,function(z){return"_"+emS(z)}); return Dqv(this,function(z){return z})}; g.h(jI,Wc);jI.prototype.oK=function(){var z=Math.floor(Date.now()/1E3),K=[Math.random()*255,Math.random()*255],f=K.concat([this.J&255,this.clientState],[z>>24&255,z>>16&255,z>>8&255,z&255]);z=new Uint8Array(2+f.length);z[0]=34;z[1]=f.length;z.set(f,2);f=z.subarray(2);for(var M=K=K.length;M150))try{this.cache=new Nov(z,this.logger)}catch(K){this.reportError(new Nq(22,"GBJ:init",K))}}; g.k.reportError=function(z){this.logger.Bc(z.code);this.onError(z);return z}; var hmS=function(z){return Xj(function(K){if(!C8H(K))return!1;for(var f=g.a(Object.entries(z)),M=f.next();!M.done;M=f.next()){var p=g.a(M.value);M=p.next().value;p=p.next().value;if(!(M in K)){if(p.rnf===!0)continue;return!1}if(!p(K[M]))return!1}return!0})}({r3:function(z){return Xj(function(K){return K instanceof z})}(Hc)},"");var CAo=(new Date).getTime();g.h(OE,g.AC);var voQ=w4(OE);QEu.prototype.getMetadata=function(){return this.metadata};rS.prototype.getMetadata=function(){return this.metadata}; rS.prototype.getStatus=function(){return this.status};Zf.prototype.G=function(z,K){K=K===void 0?{}:K;return new QEu(z,this,K)}; Zf.prototype.getName=function(){return this.name};var IKf=new Zf("/google.internal.waa.v1.Waa/Create",LV,OE,function(z){return z.yv()},voQ);g.h(oi,g.AC);var juS=new Zf("/google.internal.waa.v1.Waa/GenerateIT",EE,oi,function(z){return z.yv()},w4(oi));var $XT=new Set(["SAPISIDHASH","APISIDHASH"]);g.h(CV,g.AC);CV.prototype.getValue=function(){var z=QV(this,2);if(Array.isArray(z)||z instanceof g.AC)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return iF(this,2)};g.h(Th,g.AC);Th.prototype.getMessage=function(){return $D(this,2)}; var W4q=w4(Th);UE.prototype.y_=function(z,K){z=="data"?this.T.push(K):z=="metadata"?this.C.push(K):z=="status"?this.W.push(K):z=="end"?this.J.push(K):z=="error"&&this.Y.push(K);return this}; UE.prototype.removeListener=function(z,K){z=="data"?Mc(this.T,K):z=="metadata"?Mc(this.C,K):z=="status"?Mc(this.W,K):z=="end"?Mc(this.J,K):z=="error"&&Mc(this.Y,K);return this}; UE.prototype.cancel=function(){this.S.abort()}; UE.prototype.cancel=UE.prototype.cancel;UE.prototype.removeListener=UE.prototype.removeListener;UE.prototype.on=UE.prototype.y_;g.h(mqS,Error);g.GH(g.pG,DxS);g.pG.prototype.S=function(){var z=new ty(this.J,this.T);this.Y&&z.setCredentialsMode(this.Y);return z}; g.pG.prototype.setCredentialsMode=function(z){this.Y=z}; g.GH(ty,g.kZ);g.k=ty.prototype;g.k.open=function(z,K){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.Y1=z;this.N=K;this.readyState=1;Bx(this)}; g.k.send=function(z){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.S=!0;var K={headers:this.D,method:this.Y1,credentials:this.C,cache:void 0};z&&(K.body=z);(this.l_||g.ZT).fetch(new Request(this.N,K)).then(this.wM.bind(this),this.IJ.bind(this))}; g.k.abort=function(){this.response=this.responseText="";this.D=new Headers;this.status=0;this.T&&this.T.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.S&&this.readyState!=4&&(this.S=!1,Nc(this));this.readyState=0}; g.k.wM=function(z){if(this.S&&(this.J=z,this.Y||(this.status=this.J.status,this.statusText=this.J.statusText,this.Y=z.headers,this.readyState=2,Bx(this)),this.S&&(this.readyState=3,Bx(this),this.S)))if(this.responseType==="arraybuffer")z.arrayBuffer().then(this.rM.bind(this),this.IJ.bind(this));else if(typeof g.ZT.ReadableStream!=="undefined"&&"body"in z){this.T=z.body.getReader();if(this.W){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.G=new TextDecoder;Jb8(this)}else z.text().then(this.tN.bind(this),this.IJ.bind(this))}; g.k.fQ=function(z){if(this.S){if(this.W&&z.value)this.response.push(z.value);else if(!this.W){var K=z.value?z.value:new Uint8Array(0);if(K=this.G.decode(K,{stream:!z.done}))this.response=this.responseText+=K}z.done?Nc(this):Bx(this);this.readyState==3&&Jb8(this)}}; g.k.tN=function(z){this.S&&(this.response=this.responseText=z,Nc(this))}; g.k.rM=function(z){this.S&&(this.response=z,Nc(this))}; g.k.IJ=function(){this.S&&Nc(this)}; g.k.setRequestHeader=function(z,K){this.D.append(z,K)}; g.k.getResponseHeader=function(z){return this.Y?this.Y.get(z.toLowerCase())||"":""}; g.k.getAllResponseHeaders=function(){if(!this.Y)return"";for(var z=[],K=this.Y.entries(),f=K.next();!f.done;)f=f.value,z.push(f[0]+": "+f[1]),f=K.next();return z.join("\r\n")}; g.k.setCredentialsMode=function(z){this.C=z}; Object.defineProperty(ty.prototype,"withCredentials",{get:function(){return this.C==="include"}, set:function(z){this.setCredentialsMode(z?"include":"same-origin")}});g.vx.prototype.toString=function(){var z=[],K=this.C;K&&z.push(yL(K,Gl1,!0),":");var f=this.S;if(f||K=="file")z.push("//"),(K=this.D)&&z.push(yL(K,Gl1,!0),"@"),z.push(g.Dy(f).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),f=this.T,f!=null&&z.push(":",String(f));if(f=this.Y)this.S&&f.charAt(0)!="/"&&z.push("/"),z.push(yL(f,f.charAt(0)=="/"?bLp:ew1,!0));(f=this.J.toString())&&z.push("?",f);(f=this.W)&&z.push("#",yL(f,w4Z));return z.join("")}; g.vx.prototype.resolve=function(z){var K=this.clone(),f=!!z.C;f?g.Il(K,z.C):f=!!z.D;f?K.D=z.D:f=!!z.S;f?g.G$(K,z.S):f=z.T!=null;var M=z.Y;if(f)g.b2(K,z.T);else if(f=!!z.Y){if(M.charAt(0)!="/")if(this.S&&!this.Y)M="/"+M;else{var p=K.Y.lastIndexOf("/");p!=-1&&(M=K.Y.slice(0,p+1)+M)}p=M;if(p==".."||p==".")M="";else if(g.a9(p,"./")||g.a9(p,"/.")){M=yA(p,"/");p=p.split("/");for(var t=[],B=0;B1||t.length==1&&t[0]!="")&&t.pop(), M&&B==p.length&&t.push("")):(t.push(v),M=!0)}M=t.join("/")}else M=p}f?K.Y=M:f=z.J.toString()!=="";f?eP(K,z.J.clone()):f=!!z.W;f&&(K.W=z.W);return K}; g.vx.prototype.clone=function(){return new g.vx(this)}; var Gl1=/[#\/\?@]/g,ew1=/[#\?:]/g,bLp=/[#\?]/g,i_o=/[#\?@]/g,w4Z=/#/g;g.k=DV.prototype;g.k.add=function(z,K){al(this);this.T=null;z=Rl(this,z);var f=this.S.get(z);f||this.S.set(z,f=[]);f.push(K);this.Y=this.Y+1;return this}; g.k.remove=function(z){al(this);z=Rl(this,z);return this.S.has(z)?(this.T=null,this.Y=this.Y-this.S.get(z).length,this.S.delete(z)):!1}; g.k.clear=function(){this.S=this.T=null;this.Y=0}; g.k.isEmpty=function(){al(this);return this.Y==0}; g.k.forEach=function(z,K){al(this);this.S.forEach(function(f,M){f.forEach(function(p){z.call(K,p,M,this)},this)},this)}; g.k.Kd=function(){al(this);for(var z=Array.from(this.S.values()),K=Array.from(this.S.keys()),f=[],M=0;M0?String(z[0]):K}; g.k.toString=function(){if(this.T)return this.T;if(!this.S)return"";for(var z=[],K=Array.from(this.S.keys()),f=0;f>>3;t.T!=1&&t.T!=2&&t.T!=15&&ED(t,B,v,"unexpected tag");t.S=1;t.Y=0;t.J=0} function f(I){t.J++;t.J==5&&I&240&&ED(t,B,v,"message length too long");t.Y|=(I&127)<<(t.J-1)*7;I&128||(t.S=2,t.D=0,typeof Uint8Array!=="undefined"?t.C=new Uint8Array(t.Y):t.C=Array(t.Y),t.Y==0&&p())} function M(I){t.C[t.D++]=I;t.D==t.Y&&p()} function p(){if(t.T<15){var I={};I[t.T]=t.C;t.G.push(I)}t.S=0} for(var t=this,B=z instanceof Array?z:new Uint8Array(z),v=0;v0?z:null};Px.prototype.isInputValid=function(){return this.S===null}; Px.prototype.qV=function(){return this.S}; Px.prototype.Dn=function(){return!1}; Px.prototype.parse=function(z){this.S!==null&&xqd(this,z,"stream already broken");var K=null;try{var f=this.T;f.T||XFW(f,z,"stream already broken");f.S+=z;var M=Math.floor(f.S.length/4);if(M==0)var p=null;else{try{var t=mng(f.S.slice(0,M*4))}catch(B){XFW(f,f.S,B.message)}f.Y+=M*4;f.S=f.S.slice(M*4);p=t}K=p===null?null:this.J.parse(p)}catch(B){xqd(this,z,B.message)}this.Y+=z.length;return K};var y6o={INIT:0,xk:1,RN:2,uA:3,dG:4,zV:5,STRING:6,tG:7,rD:8,JE:9,EL:10,ze:11,J2:12,Ea:13,zI:14,nA:15,yy:16,aU:17,oU:18,KX:19,wJ:20};g.k=QL.prototype;g.k.isInputValid=function(){return this.C!=3}; g.k.qV=function(){return this.N}; g.k.done=function(){return this.C===2}; g.k.Dn=function(){return!1}; g.k.parse=function(z){function K(){for(;w0;)if(y=z[w++], t.D===4?t.D=0:t.D++,!y)break a;if(y==='"'&&!t.G){t.S=M();break}if(y==="\\"&&!t.G&&(t.G=!0,y=z[w++],!y))break;if(t.G)if(t.G=!1,y==="u"&&(t.D=1),y=z[w++])continue;else break;v.lastIndex=w;y=v.exec(z);if(!y){w=z.length+1;break}w=y.index+1;y=z[y.index];if(!y)break}t.T+=w-R;continue;case I.JE:if(!y)continue;y==="r"?t.S=I.EL:qc(t,z,w);continue;case I.EL:if(!y)continue;y==="u"?t.S=I.ze:qc(t,z,w);continue;case I.ze:if(!y)continue;y==="e"?t.S=M():qc(t,z,w);continue;case I.J2:if(!y)continue;y==="a"?t.S=I.Ea: qc(t,z,w);continue;case I.Ea:if(!y)continue;y==="l"?t.S=I.zI:qc(t,z,w);continue;case I.zI:if(!y)continue;y==="s"?t.S=I.nA:qc(t,z,w);continue;case I.nA:if(!y)continue;y==="e"?t.S=M():qc(t,z,w);continue;case I.yy:if(!y)continue;y==="u"?t.S=I.aU:qc(t,z,w);continue;case I.aU:if(!y)continue;y==="l"?t.S=I.oU:qc(t,z,w);continue;case I.oU:if(!y)continue;y==="l"?t.S=M():qc(t,z,w);continue;case I.KX:y==="."?t.S=I.wJ:qc(t,z,w);continue;case I.wJ:if("0123456789.eE+-".indexOf(y)!==-1)continue;else w--,t.T--,t.S= M();continue;default:qc(t,z,w)}}} function M(){var y=B.pop();return y!=null?y:I.xk} function p(y){t.Y>1||(y||(y=e===-1?t.J+z.substring(b,w):z.substring(e,w)),t.Y1?t.W.push(y):t.W.push(JSON.parse(y)),e=w)} for(var t=this,B=t.l_,v=t.nH,I=y6o,G=z.length,b=0,e=-1,w=0;w0?(D=t.W,t.W=[],D):null}return null};mi.prototype.isInputValid=function(){return this.C===null}; mi.prototype.qV=function(){return this.C}; mi.prototype.Dn=function(){return!1}; mi.prototype.parse=function(z){function K(I){t.Y=6;t.C="The stream is broken @"+t.S+"/"+B+". Error: "+I+". With input:\n";throw Error(t.C);} function f(){t.T=new QL({iGE:!0,Av:!0})} function M(I){if(I)for(var G=0;G1)&&K("extra status: "+I);t.W=!0;var G={};G[2]=I[0];t.J.push(G)}} for(var t=this,B=0;B0?(z=t.J,t.J=[],z):null};l2.prototype.eJ=function(){return this.S}; l2.prototype.getStatus=function(){return this.C}; l2.prototype.Y1=function(z){z=z.target;try{if(z==this.S)a:{var K=g.zh(this.S),f=this.S.Y,M=this.S.getStatus(),p=g.$V(this.S);z=[];if(g.fV(this.S)instanceof Array){var t=g.fV(this.S);t.length>0&&t[0]instanceof Uint8Array&&(this.N=!0,z=t)}if(!(K<3||K==3&&!p&&z.length==0))if(M=M==200||M==206,K==4&&(f==8?VL(this,7):f==7?VL(this,8):M||VL(this,3)),this.Y||(this.Y=F4o(this.S),this.Y==null&&VL(this,5)),this.C>2)nG(this);else{if(z.length>this.T){var B=z.length;f=[];try{if(this.Y.Dn())for(var v=0;vthis.T){v=p.slice(this.T);this.T=p.length;try{var G=this.Y.parse(v);G!=null&&this.J&&this.J(G)}catch(b){VL(this,5);nG(this);break a}}K==4?(p.length!= 0||this.N?VL(this,2):VL(this,4),nG(this)):VL(this,1)}}}catch(b){VL(this,6),nG(this)}};g.k=O_a.prototype;g.k.y_=function(z,K){var f=this.Y[z];f||(f=[],this.Y[z]=f);f.push(K);return this}; g.k.addListener=function(z,K){this.y_(z,K);return this}; g.k.removeListener=function(z,K){var f=this.Y[z];f&&g.R8(f,K);(z=this.S[z])&&g.R8(z,K);return this}; g.k.once=function(z,K){var f=this.S[z];f||(f=[],this.S[z]=f);f.push(K);return this}; g.k.l2E=function(z){var K=this.Y.data;K&&rb8(z,K);(K=this.S.data)&&rb8(z,K);this.S.data=[]}; g.k.Ha_=function(){switch(this.T.getStatus()){case 1:Wx(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Wx(this,"error");break;case 8:Wx(this,"close");break;case 2:Wx(this,"end")}};Z_v.prototype.serverStreaming=function(z,K,f,M){var p=this,t=z.substring(0,z.length-M.name.length);return fPp(function(B){var v=B.iH,I=B.getMetadata(),G=Uqd(p,!1);I=zyT(p,I,G,t+v.getName());var b=KZu(G,v.Y,!0);B=v.S(B.xP);G.send(I,"POST",B);return b},this.pM).call(this,M.G(K,f))};Mkp.prototype.create=function(z,K){return Agv(this.S,this.Y+"/$rpc/google.internal.waa.v1.Waa/Create",z,K||{},IKf)};var pO8="://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://[^.]*.moatads.com ://youtube[0-9]+.moatpixel.com ://pm.adsafeprotected.com/youtube ://pm.test-adsafeprotected.com/youtube ://e[0-9]+.yt.srs.doubleverify.com www.google.com/pagead/xsul www.youtube.com/pagead/slav".split(" "),tkT=/\bocr\b/;var NBg=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(z){throw z;}},{RId:!0, ydh:!0,oRH:svf,SMe:AdS,A1q:!1,FJf:!1,NUV:!0,wgd:!1});var sD=null,jP=!1,Ryd=1,xn=Symbol("SIGNAL"),w6={version:0,N7e:0,hn:!1,zm:void 0,Uy:void 0,B9:void 0,PL:0,C7:void 0,VU:void 0,Ho:!1,x_:!1,kind:"unknown",Sd:function(){return!1}, A8:function(){}, hK:function(){}, k2f:function(){}};var D3=Symbol("UNSET"),yy=Symbol("COMPUTING"),kd=Symbol("ERRORED");Object.assign({},w6,{value:D3,hn:!0,error:null,eH:cx,kind:"computed",Sd:function(z){return z.value===D3||z.value===yy}, A8:function(z){if(z.value===yy)throw Error("");var K=z.value;z.value=yy;var f=Gfq(z),M=!1;try{var p=z.u5();Ay(null);M=K!==D3&&K!==kd&&p!==kd&&z.eH(K,p)}catch(t){p=kd,z.error=t}finally{brp(z,f)}M?z.value=K:(z.value=p,z.version++)}});var y8u=Object.assign({},w6,{eH:cx,value:void 0,kind:"signal"});Object.assign({},w6,{value:D3,hn:!0,error:null,eH:cx,kind:"linkedSignal",Sd:function(z){return z.value===D3||z.value===yy}, A8:function(z){if(z.value===yy)throw Error("");var K=z.value;z.value=yy;var f=Gfq(z);try{var M=z.source();var p=z.u5(M,K===D3||K===kd?void 0:{source:z.j5c,value:K});z.j5c=M}catch(t){p=kd,z.error=t}finally{brp(z,f)}K!==D3&&p!==kd&&z.eH(K,p)?z.value=K:(z.value=p,z.version++)}});Object.assign({},w6,{x_:!0,Ho:!1,hK:function(z){z.schedule!==null&&z.schedule(z.fKc)}, gXV:!1,fi_:function(){}});g.h(OD,g.kZ);OD.prototype.dispose=function(){window.removeEventListener("offline",this.T);window.removeEventListener("online",this.T);this.rK.Yg(this.C);delete OD.instance}; OD.prototype.d$=function(){return this.S}; OD.prototype.x8=function(){var z=this;this.C=this.rK.DD(function(){var K;return g.n(function(f){if(f.Y==1)return z.S?((K=window.navigator)==null?0:K.onLine)?f.jV(3):g.l(f,F8(z),3):g.l(f,F8(z),3);z.x8();g.Rv(f)})},3E4)};ZV.prototype.set=function(z,K){K=K===void 0?!0:K;0<=z&&z<52&&Number.isInteger(z)&&this.data[z]!==K&&(this.data[z]=K,this.S=-1)}; ZV.prototype.get=function(z){return!!this.data[z]};var CG;g.GH(g.zJ,g.J);g.k=g.zJ.prototype;g.k.start=function(){this.stop();this.J=!1;var z=EZI(this),K=PLa(this);z&&!K&&this.Y.mozRequestAnimationFrame?(this.S=g.Ik(this.Y,"MozBeforePaint",this.T),this.Y.mozRequestAnimationFrame(null),this.J=!0):this.S=z&&K?z.call(this.Y,this.T):this.Y.setTimeout(j8S(this.T),20)}; g.k.stop=function(){if(this.isActive()){var z=EZI(this),K=PLa(this);z&&!K&&this.Y.mozRequestAnimationFrame?wB(this.S):z&&K?K.call(this.Y,this.S):this.Y.clearTimeout(this.S)}this.S=null}; g.k.isActive=function(){return this.S!=null}; g.k.eZ=function(){this.J&&this.S&&wB(this.S);this.S=null;this.W.call(this.C,g.N5())}; g.k.JL=function(){this.stop();g.zJ.Y9.JL.call(this)};g.GH(g.Kl,g.J);g.k=g.Kl.prototype;g.k.sZ=0;g.k.JL=function(){g.Kl.Y9.JL.call(this);this.stop();delete this.S;delete this.Y}; g.k.start=function(z){this.stop();this.sZ=g.Xu(this.T,z!==void 0?z:this.MM)}; g.k.stop=function(){this.isActive()&&g.ZT.clearTimeout(this.sZ);this.sZ=0}; g.k.isActive=function(){return this.sZ!=0}; g.k.HM=function(){this.sZ=0;this.S&&this.S.call(this.Y)};g.h(g.Bs,g.J);g.k=g.Bs.prototype;g.k.z4=function(z){this.T=arguments;this.gO||this.Y?this.S=!0:Ni(this)}; g.k.stop=function(){this.gO&&(g.ZT.clearTimeout(this.gO),this.gO=null,this.S=!1,this.T=null)}; g.k.pause=function(){this.Y++}; g.k.resume=function(){this.Y--;this.Y||!this.S||this.gO||(this.S=!1,Ni(this))}; g.k.JL=function(){g.J.prototype.JL.call(this);this.stop()};g.vs.prototype[Symbol.iterator]=function(){return this}; g.vs.prototype.next=function(){var z=this.S.next();return{value:z.done?void 0:this.Y.call(void 0,z.value),done:z.done}};g.GH(g.hU,g.kZ);g.k=g.hU.prototype;g.k.isPlaying=function(){return this.S==1}; g.k.isPaused=function(){return this.S==-1}; g.k.Od=function(){this.UP("begin")}; g.k.ob=function(){this.UP("end")}; g.k.onFinish=function(){this.UP("finish")}; g.k.onStop=function(){this.UP("stop")}; g.k.UP=function(z){this.dispatchEvent(z)};var klH=ye(function(){var z=g.zi("DIV"),K=g.oz?"-webkit":Qe?"-moz":null,f="transition:opacity 1s linear;";K&&(f+=K+"-transition:opacity 1s linear;");K=q9T({style:f});if(z.nodeType===1&&/^(script|style)$/i.test(z.tagName))throw Error("");z.innerHTML=Km(K);return g.q0(z.firstChild,"transition")!=""});g.GH(aG,g.hU);g.k=aG.prototype;g.k.play=function(){if(this.isPlaying())return!1;this.Od();this.UP("play");this.startTime=g.N5();this.S=1;if(klH())return g.H6(this.Y,this.W),this.T=g.Xu(this.r9e,void 0,this),!0;this.Xm(!1);return!1}; g.k.r9e=function(){g.dW(this.Y);qAW(this.Y,this.G);g.H6(this.Y,this.J);this.T=g.Xu((0,g.p1)(this.Xm,this,!1),this.C*1E3)}; g.k.stop=function(){this.isPlaying()&&this.Xm(!0)}; g.k.Xm=function(z){g.H6(this.Y,"transition","");g.ZT.clearTimeout(this.T);g.H6(this.Y,this.J);this.endTime=g.N5();this.S=0;if(z)this.onStop();else this.onFinish();this.ob()}; g.k.JL=function(){this.stop();aG.Y9.JL.call(this)}; g.k.pause=function(){};var lPv={rgb:!0,rgba:!0,alpha:!0,rect:!0,image:!0,"linear-gradient":!0,"radial-gradient":!0,"repeating-linear-gradient":!0,"repeating-radial-gradient":!0,"cubic-bezier":!0,matrix:!0,perspective:!0,rotate:!0,rotate3d:!0,rotatex:!0,rotatey:!0,steps:!0,rotatez:!0,scale:!0,scale3d:!0,scalex:!0,scaley:!0,scalez:!0,skew:!0,skewx:!0,skewy:!0,translate:!0,translate3d:!0,translatex:!0,translatey:!0,translatez:!0};RG("Element","attributes")||RG("Node","attributes");RG("Element","innerHTML")||RG("HTMLElement","innerHTML");RG("Node","nodeName");RG("Node","nodeType");RG("Node","parentNode");RG("Node","childNodes");RG("HTMLElement","style")||RG("Element","style");RG("HTMLStyleElement","sheet");var irq=nZg("getPropertyValue"),dXp=nZg("setProperty");RG("Element","namespaceURI")||RG("Node","namespaceURI");var gZa={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var jkg,m81,A8q,sku,YAT;jkg=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]");m81=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.hw9=RegExp("^[^\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"); g.ux=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");A8q=/^http:\/\/.*/;g.aKS=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");sku=/\s+/;YAT=/[\d\u06f0-\u06f9]/;E8.prototype.Yq=function(){return new Ps(this.Y())}; E8.prototype[Symbol.iterator]=function(){return new Hs(this.Y())}; E8.prototype.S=function(){return new Hs(this.Y())}; g.h(Ps,g.nj);Ps.prototype.next=function(){return this.Y.next()}; Ps.prototype[Symbol.iterator]=function(){return new Hs(this.Y)}; Ps.prototype.S=function(){return new Hs(this.Y)}; g.h(Hs,E8);Hs.prototype.next=function(){return this.T.next()};qi.prototype.clone=function(){return new qi(this.S,this.G,this.T,this.C,this.J,this.W,this.Y,this.D)}; qi.prototype.equals=function(z){return this.S==z.S&&this.G==z.G&&this.T==z.T&&this.C==z.C&&this.J==z.J&&this.W==z.W&&this.Y==z.Y&&this.D==z.D};lx.prototype.clone=function(){return new lx(this.start,this.end)};(function(){if(i$S){var z=/Windows NT ([0-9.]+)/;return(z=z.exec(g.H4()))?z[1]:"0"}return UK?(z=/1[0|1][_.][0-9_.]+/,(z=z.exec(g.H4()))?z[0].replace(/_/g,"."):"10"):g.p3?(z=/Android\s+([^\);]+)(\)|;)/,(z=z.exec(g.H4()))?z[1]:""):X5T||x8Q||FSf?(z=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(z=z.exec(g.H4()))?z[1].replace(/_/g,"."):""):""})();var xXv=function(){if(g.z0)return Vf(/Firefox\/([0-9.]+)/);if(g.Sy||g.Ux||g.nO)return S9o;if(g.sq){if(Es()||P9()){var z=Vf(/CriOS\/([0-9.]+)/);if(z)return z}return Vf(/Chrome\/([0-9.]+)/)}if(g.PJ&&!Es())return Vf(/Version\/([0-9.]+)/);if($a||f3){if(z=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.H4()))return z[1]+"."+z[2]}else if(g.WZ)return(z=Vf(/Android\s+([0-9.]+)/))?z:Vf(/Version\/([0-9.]+)/);return""}();g.GH(g.Ws,g.J);g.k=g.Ws.prototype;g.k.subscribe=function(z,K,f){var M=this.Y[z];M||(M=this.Y[z]=[]);var p=this.W;this.S[p]=z;this.S[p+1]=K;this.S[p+2]=f;this.W=p+3;M.push(p);return p}; g.k.unsubscribe=function(z,K,f){if(z=this.Y[z]){var M=this.S;if(z=z.find(function(p){return M[p+1]==K&&M[p+2]==f}))return this.Or(z)}return!1}; g.k.Or=function(z){var K=this.S[z];if(K){var f=this.Y[K];this.J!=0?(this.T.push(z),this.S[z+1]=function(){}):(f&&g.R8(f,z),delete this.S[z],delete this.S[z+1],delete this.S[z+2])}return!!K}; g.k.publish=function(z,K){var f=this.Y[z];if(f){var M=Array(arguments.length-1),p=arguments.length,t;for(t=1;t0&&this.J==0)for(;f=this.T.pop();)this.Or(f)}}return t!=0}return!1}; g.k.clear=function(z){if(z){var K=this.Y[z];K&&(K.forEach(this.Or,this),delete this.Y[z])}else this.S.length=0,this.Y={}}; g.k.JL=function(){g.Ws.Y9.JL.call(this);this.clear();this.T.length=0};g.JU.prototype.set=function(z,K){K===void 0?this.S.remove(z):this.S.set(z,g.rB(K))}; g.JU.prototype.get=function(z){try{var K=this.S.get(z)}catch(f){return}if(K!==null)try{return JSON.parse(K)}catch(f){throw"Storage: Invalid value was encountered";}}; g.JU.prototype.remove=function(z){this.S.remove(z)};g.GH(gy,g.JU);gy.prototype.set=function(z,K){gy.Y9.set.call(this,z,r8W(K))}; gy.prototype.Y=function(z){z=gy.Y9.get.call(this,z);if(z===void 0||z instanceof Object)return z;throw"Storage: Invalid value was encountered";}; gy.prototype.get=function(z){if(z=this.Y(z)){if(z=z.data,z===void 0)throw"Storage: Invalid value was encountered";}else z=void 0;return z};g.GH(ix,gy);ix.prototype.set=function(z,K,f){if(K=r8W(K)){if(f){if(f=f.length)return g.vQ;var p=f.key(K++);if(z)return g.W2(p);p=f.getItem(p);if(typeof p!=="string")throw"Storage mechanism: Invalid value was encountered";return g.W2(p)}; return M}; g.k.clear=function(){AU(this);this.S.clear()}; g.k.key=function(z){AU(this);return this.S.key(z)};g.GH(jy,s8);g.GH(CL8,s8);g.GH(Y4,cs);Y4.prototype.set=function(z,K){this.Y.set(this.S+z,K)}; Y4.prototype.get=function(z){return this.Y.get(this.S+z)}; Y4.prototype.remove=function(z){this.Y.remove(this.S+z)}; Y4.prototype.Yq=function(z){var K=this.Y[Symbol.iterator](),f=this,M=new g.nj;M.next=function(){var p=K.next();if(p.done)return p;for(p=p.value;p.slice(0,f.S.length)!=f.S;){p=K.next();if(p.done)return p;p=p.value}return g.W2(z?p.slice(f.S.length):f.Y.get(p))}; return M};x4.prototype.getValue=function(){return this.Y}; x4.prototype.clone=function(){return new x4(this.S,this.Y)};g.k=Fi.prototype;g.k.iI=function(z,K){var f=this.S;f.push(new x4(z,K));z=f.length-1;K=this.S;for(f=K[z];z>0;){var M=z-1>>1;if(K[M].S>f.S)K[z]=K[M],z=M;else break}K[z]=f}; g.k.remove=function(){var z=this.S,K=z.length,f=z[0];if(!(K<=0)){if(K==1)z.length=0;else{z[0]=z.pop();z=0;K=this.S;for(var M=K.length,p=K[z];z>1;){var t=z*2+1,B=z*2+2;t=Bp.S)break;K[z]=K[t];z=t}K[z]=p}return f.getValue()}}; g.k.xq=function(){for(var z=this.S,K=[],f=z.length,M=0;M>>16&65535|0;for(var t;f!==0;){t=f>2E3?2E3:f;f-=t;do p=p+K[M++]|0,z=z+p|0;while(--t);p%=65521;z%=65521}return p|z<<16|0};for(var S4={},hN,Eo5=[],ab=0;ab<256;ab++){hN=ab;for(var PE1=0;PE1<8;PE1++)hN=hN&1?3988292384^hN>>>1:hN>>>1;Eo5[ab]=hN}S4=function(z,K,f,M){f=M+f;for(z^=-1;M>>8^Eo5[(z^K[M])&255];return z^-1};var GE={};GE={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};var Mz=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Bm=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],uWa=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Gh8=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],DB=Array(576);oG(DB);var yY=Array(60);oG(yY);var tS=Array(512);oG(tS);var ft=Array(256);oG(ft);var pt=Array(29);oG(pt);var Nz=Array(30);oG(Nz);var afW,REd,SEu,hES=!1;var Hm;Hm=[new Pm(0,0,0,0,function(z,K){var f=65535;for(f>z.G7-5&&(f=z.G7-5);;){if(z.tH<=1){ul(z);if(z.tH===0&&K===0)return 1;if(z.tH===0)break}z.xi+=z.tH;z.tH=0;var M=z.qC+f;if(z.xi===0||z.xi>=M)if(z.tH=z.xi-M,z.xi=M,kL(z,!1),z.OW.w3===0)return 1;if(z.xi-z.qC>=z.TN-262&&(kL(z,!1),z.OW.w3===0))return 1}z.iI=0;if(K===4)return kL(z,!0),z.OW.w3===0?3:4;z.xi>z.qC&&kL(z,!1);return 1}), new Pm(4,4,8,4,Lt),new Pm(4,5,16,8,Lt),new Pm(4,6,32,32,Lt),new Pm(4,4,16,16,Ep),new Pm(8,16,32,32,Ep),new Pm(8,16,128,128,Ep),new Pm(8,32,128,256,Ep),new Pm(32,128,258,1024,Ep),new Pm(32,258,258,4096,Ep)];var khS={};khS=function(){this.input=null;this.JP=this.nW=this.Jw=0;this.output=null;this.PN=this.w3=this.Do=0;this.msg="";this.state=null;this.YZ=2;this.jU=0};var LVg=Object.prototype.toString; QY.prototype.push=function(z,K){var f=this.OW,M=this.options.chunkSize;if(this.ended)return!1;var p=K===~~K?K:K===!0?4:0;typeof z==="string"?f.input=zEo(z):LVg.call(z)==="[object ArrayBuffer]"?f.input=new Uint8Array(z):f.input=z;f.Jw=0;f.nW=f.input.length;do{f.w3===0&&(f.output=new Zz.W0(M),f.Do=0,f.w3=M);z=ym8(f,p);if(z!==1&&z!==0)return this.ob(z),this.ended=!0,!1;if(f.w3===0||f.nW===0&&(p===4||p===2))if(this.options.to==="string"){var t=Zz.lD(f.output,f.Do);K=t;t=t.length;if(t<65537&&(K.subarray&& Ly2||!K.subarray))K=String.fromCharCode.apply(null,Zz.lD(K,t));else{for(var B="",v=0;v0||f.w3===0)&&z!==1);if(p===4)return(f=this.OW)&&f.state?(M=f.state.status,M!==42&&M!==69&&M!==73&&M!==91&&M!==103&&M!==113&&M!==666?z=bl(f,-2):(f.state=null,z=M===113?bl(f,-3):0)):z=-2,this.ob(z),this.ended=!0,z===0;p===2&&(this.ob(0),f.w3=0);return!0}; QY.prototype.ob=function(z){z===0&&(this.result=this.options.to==="string"?this.chunks.join(""):Zz.Yt(this.chunks));this.chunks=[];this.err=z;this.msg=this.OW.msg};var m9="@@redux/INIT"+qz(),mYu="@@redux/REPLACE"+qz();var lfS=typeof Symbol==="function"&&Symbol.observable||"@@observable";var HL9=[0,VST,-3,tN];g.h(Jm8,g.AC);var aHq=function(){var z=[0,Wp_,nf_,$d,VST,$d,-1,tN,VST,tN,-1,Wp_,tN,nf_,fi,HL9,$d,-1,tN];return function(K,f){var M={VI:!0};f&&Object.assign(M,f);K=jz5(K,void 0,void 0,M);try{var p=new Jm8,t=p.Yi;CF(z)(t,K);var B=p}finally{K.free()}return B}}();var gVg=759465835;var KWq=new g.nt("adInfoDialogEndpoint");var l6v=new g.nt("adPingingEndpoint");var Tcd=new g.nt("crossDeviceProgressCommand");var Ix=new g.nt("actionCompanionAdRenderer");var kI=new g.nt("adActionInterstitialRenderer");var Q9H=new g.nt("adDurationRemainingRenderer");var Xd=new g.nt("adHoverTextButtonRenderer");var UgS=new g.nt("adInfoDialogRenderer");var Ha=new g.nt("adMessageRenderer");var xP=new g.nt("adPreviewRenderer");var bJ=new g.nt("adsEngagementPanelRenderer");var EHg=new g.nt("dismissablePanelTextPortraitImageRenderer");var utS=new g.nt("adsEngagementPanelSectionListViewModel");var qP5=new g.nt("flyoutCtaRenderer");var Gc=new g.nt("imageCompanionAdRenderer");var D8=new g.nt("instreamAdPlayerOverlayRenderer");var ZBI=new g.nt("instreamSurveyAdBackgroundImageRenderer");var YP=new g.nt("instreamSurveyAdPlayerOverlayRenderer");var lJ=new g.nt("instreamSurveyAdRenderer"),je=new g.nt("instreamSurveyAdSingleSelectQuestionRenderer"),Av=new g.nt("instreamSurveyAdMultiSelectQuestionRenderer"),Rb=new g.nt("instreamSurveyAdAnswerRenderer"),mnT=new g.nt("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var qv=new g.nt("instreamVideoAdRenderer");var lKZ=new g.nt("textOverlayAdContentRenderer"),Vm1=new g.nt("enhancedTextOverlayAdContentRenderer"),noZ=new g.nt("imageOverlayAdContentRenderer");var yR=new g.nt("playerOverlayLayoutRenderer");var hq=new g.nt("videoInterstitialButtonedCenteredLayoutRenderer");var mdu=new g.nt("aboveFeedAdLayoutRenderer");var lla=new g.nt("belowPlayerAdLayoutRenderer");var qBd=new g.nt("inPlayerAdLayoutRenderer");var WI=new g.nt("playerBytesAdLayoutRenderer");var sF=new g.nt("playerBytesSequenceItemAdLayoutRenderer");var cI=new g.nt("playerUnderlayAdLayoutRenderer");var ms=new g.nt("adIntroRenderer");var ax=new g.nt("playerBytesSequentialLayoutRenderer");var v85=new g.nt("slidingTextPlayerOverlayRenderer");var V3=new g.nt("surveyTextInterstitialRenderer");var Jv=new g.nt("videoAdTrackingRenderer");var WyQ=new g.nt("simpleAdBadgeRenderer");var yk=new g.nt("skipAdRenderer"),J6Z=new g.nt("skipButtonRenderer");var ZI=new g.nt("adSlotRenderer");var iJ=new g.nt("squeezebackPlayerSidePanelRenderer");var goT=new g.nt("timedPieCountdownRenderer");var xX=new g.nt("adAvatarViewModel");var FL=new g.nt("adBadgeViewModel");var Ob=new g.nt("adButtonViewModel");var iL_=new g.nt("adDetailsLineViewModel");var dnp=new g.nt("adDisclosureBannerViewModel");var c6o=new g.nt("adPodIndexViewModel");var s98=new g.nt("imageBackgroundViewModel");var A6Q=new g.nt("adGridCardCollectionViewModel");var j98=new g.nt("adGridCardTextViewModel");var YP7=new g.nt("adPreviewViewModel");var X4o=new g.nt("playerAdAvatarLockupCardButtonedViewModel");var xnQ=new g.nt("skipAdButtonViewModel");var FyT=new g.nt("skipAdViewModel");var OL1=new g.nt("timedPieCountdownViewModel");var r69=new g.nt("visitAdvertiserLinkViewModel");var ee=new g.nt("bannerImageLayoutViewModel");var wb=new g.nt("topBannerImageTextIconButtonedLayoutViewModel");var DI=new g.nt("adsEngagementPanelLayoutViewModel");var db=new g.nt("displayUnderlayTextGridCardsLayoutViewModel");g.mU=new g.nt("browseEndpoint");var ZLZ=new g.nt("confirmDialogEndpoint");var aGT=new g.nt("commandContext");var yVW=new g.nt("rawColdConfigGroup");var Dmv=new g.nt("rawHotConfigGroup");g.PP=new g.nt("commandExecutorCommand");g.h(dYp,g.AC);var RSv={GRa:0,VmH:1,yrc:32,lix:61,pga:67,Jdh:103,qDe:86,NK_:42,aza:60,kRe:62,YDx:73,SDe:76,ERe:88,zIc:90,d8L:99,wVx:98,nRH:100,AdV:102,j3E:41,HGH:69,eIH:70,x8E:71,GDh:2,Pnq:27,ANDROID:3,sxE:54,LMf:14,AoH:91,rJh:55,tF_:24,wjd:20,RuH:18,yJe:21,aUd:104,lD_:30,Joq:29,ExL:28,gI1:101,zGx:34,YTV:36,N$f:38,IOS:5,mDc:15,Xcd:92,vgf:40,Csa:25,B8c:17,GUq:19,Psd:64,KoV:66,i7a:26,ugd:22,ggq:33,fMq:68,Z7V:35,Fo_:53,DDx:37,IM1:39,pVd:7,dtq:57,jtc:43,e2_:59,Hd_:93,qTe:74,xtd:75,h2e:85,Utd:65,mt_:80,vIh:8,z2d:10, CBe:58,Izh:63,Whx:72,TSf:23,U8x:11,WJe:13,Obq:12,nIV:16,R2f:56,TUV:31,vmL:77,ree:84,oI_:87,wWE:89,tkq:94,zJh:95};g.h(Wm,g.AC);Wm.prototype.aW=function(){return $D(this,3)}; Wm.prototype.qz=function(){return $D(this,5)}; Wm.prototype.cn=function(z){return BX(this,5,z)};g.h(JS,g.AC);g.h(cmo,g.AC);g.h(ge,g.AC);g.k=ge.prototype;g.k.getDeviceId=function(){return $D(this,6)}; g.k.v$=function(z){var K=JG(this,9,OH,3,!0);Qd(K,z);return K[z]}; g.k.getPlayerType=function(){return fF(this,36)}; g.k.setHomeGroupInfo=function(z){return g.CP(this,cmo,81,z)}; g.k.clearLocationPlayabilityToken=function(){return mu(this,89)};g.h(il,g.AC);il.prototype.getValue=function(){return $D(this,xg(this,ezu,2))}; var ezu=[2,3,4,5,6];g.h(de,g.AC);de.prototype.setTrackingParams=function(z){return mu(this,1,j9v(z,!1))};g.h(cm,g.AC);g.h(sp,g.AC);sp.prototype.v$=function(z){var K=JG(this,5,rk,3,!0);Qd(K,z);return K[z]};g.h(AS,g.AC);AS.prototype.getToken=function(){return pF(this,2)}; AS.prototype.setToken=function(z){return BX(this,2,z)};g.h(j4,g.AC);j4.prototype.setSafetyMode=function(z){return vX(this,5,z)};g.h(YL,g.AC);YL.prototype.oG=function(z){return g.CP(this,ge,1,z)};var OF=new g.nt("thumbnailLandscapePortraitRenderer");g.oo_=new g.nt("changeEngagementPanelVisibilityAction");var QsS=new g.nt("continuationCommand");g.CE7=new g.nt("openPopupAction");g.SZ=new g.nt("webCommandMetadata");var CJd=new g.nt("metadataBadgeRenderer");var HRa=new g.nt("signalServiceEndpoint");var XX=new g.nt("innertubeCommand");var bRu=new g.nt("loggingDirectives");var Liq={WYc:"EMBEDDED_PLAYER_MODE_UNKNOWN",h__:"EMBEDDED_PLAYER_MODE_DEFAULT",Urf:"EMBEDDED_PLAYER_MODE_PFP",ceh:"EMBEDDED_PLAYER_MODE_PFL"};var LoS=new g.nt("channelThumbnailEndpoint");var ulv=new g.nt("embeddedPlayerErrorMessageRenderer");var hBS=new g.nt("embeddedPlayerOverlayVideoDetailsRenderer"),Ecp=new g.nt("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),Pkv=new g.nt("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var rvg=new g.nt("embedsInfoPanelRenderer");var Tr9=new g.nt("feedbackEndpoint");var UnT=new g.nt("callToActionButtonViewModel");var zF2=new g.nt("interactionLoggingCommandMetadata");var aBS={tmd:"WEB_DISPLAY_MODE_UNKNOWN",bdE:"WEB_DISPLAY_MODE_BROWSER",LhH:"WEB_DISPLAY_MODE_MINIMAL_UI",rrx:"WEB_DISPLAY_MODE_STANDALONE",st_:"WEB_DISPLAY_MODE_FULLSCREEN"};g.h(XP,g.AC);XP.prototype.getPlayerType=function(){return fF(this,7)}; XP.prototype.u3=function(){return $D(this,19)}; XP.prototype.setVideoId=function(z){return BX(this,19,z)};g.h(xL,g.AC);g.h(FP,g.AC);g.h(Op,g.AC); var KM9=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353, 354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520];var $t7=new g.nt("loggingContext");g.h(re,g.AC);g.h(ZB,g.AC);ZB.prototype.u3=function(){return pF(this,xg(this,yz,1))}; ZB.prototype.setVideoId=function(z){return Yg(this,1,yz,$g(z))}; ZB.prototype.getPlaylistId=function(){return pF(this,xg(this,yz,2))}; var yz=[1,2];g.h(sia,g.AC);var p5=new g.nt("changeKeyedMarkersVisibilityCommand");var fyS=new g.nt("changeMarkersVisibilityCommand");var UvS=new g.nt("loadMarkersCommand");var M89=new g.nt("suggestedActionDataViewModel");var E2q=new g.nt("timelyActionViewModel");var LLS=new g.nt("timelyActionsOverlayViewModel");var cNo=new g.nt("productListItemRenderer");var p9_=new g.nt("shoppingOverlayRenderer");var aXv=new g.nt("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var t8T=new g.nt("adFeedbackEndpoint");var BT1=new g.nt("menuEndpoint");var X$S=new g.nt("phoneDialerEndpoint");var jhp=new g.nt("sendSmsEndpoint");var k6u=new g.nt("copyTextEndpoint");var NT1=new g.nt("shareEndpoint"),v7S=new g.nt("shareEntityEndpoint"),Iy9=new g.nt("shareEntityServiceEndpoint"),GmQ=new g.nt("webPlayerShareEntityServiceEndpoint");g.Fc=new g.nt("urlEndpoint");g.f5=new g.nt("watchEndpoint");var bmT=new g.nt("watchPlaylistEndpoint");g.eFS=new g.nt("offlineOrchestrationActionCommand");var Gqp=new g.nt("compositeVideoOverlayRenderer");var w9Q=new g.nt("miniplayerRenderer");var DGS=new g.nt("paidContentOverlayRenderer");var Dt8=new g.nt("playerMutedAutoplayOverlayRenderer"),yR4=new g.nt("playerMutedAutoplayEndScreenRenderer");var vPI=new g.nt("unserializedPlayerResponse"),kmQ=new g.nt("unserializedPlayerResponse");var hFQ=new g.nt("playlistEditEndpoint");var u9;g.Fd=new g.nt("buttonRenderer");u9=new g.nt("toggleButtonRenderer");var SBS=new g.nt("counterfactualRenderer");var ayo=new g.nt("resolveUrlCommandMetadata");var RF7=new g.nt("modifyChannelNotificationPreferenceEndpoint");var meq=new g.nt("pingingEndpoint");var Sso=new g.nt("unsubscribeEndpoint");g.lv=new g.nt("subscribeButtonRenderer");var u3_=new g.nt("subscribeEndpoint");var Yov=new g.nt("buttonViewModel");var Lkv=new g.nt("qrCodeRenderer");var u0W={og1:"LIVING_ROOM_APP_MODE_UNSPECIFIED",N8x:"LIVING_ROOM_APP_MODE_MAIN",Rkx:"LIVING_ROOM_APP_MODE_KIDS",yUh:"LIVING_ROOM_APP_MODE_MUSIC",aMV:"LIVING_ROOM_APP_MODE_UNPLUGGED",wca:"LIVING_ROOM_APP_MODE_GAMING"};var xvq=new g.nt("autoplaySwitchButtonRenderer");var VJ,nA8,yvS,Xnv;VJ=new g.nt("decoratedPlayerBarRenderer");nA8=new g.nt("chapteredPlayerBarRenderer");yvS=new g.nt("multiMarkersPlayerBarRenderer");Xnv=new g.nt("chapterRenderer");g.iT8=new g.nt("markerRenderer");var ZTq=new g.nt("decoratedPlayheadRenderer");var ZUa=new g.nt("desktopOverlayConfigRenderer");var PfS=new g.nt("engagementPanelSectionListRenderer");var OUg=new g.nt("gatedActionsOverlayViewModel");var ADv=new g.nt("heatMarkerRenderer");var sXu=new g.nt("heatmapRenderer");var Tb8=new g.nt("watchToWatchTransitionRenderer");var RBo=new g.nt("playlistPanelRenderer");var LM9=new g.nt("productUpsellSuggestedActionViewModel");var E78=new g.nt("suggestedActionTimeRangeTrigger"),Pe7=new g.nt("suggestedActionsRenderer"),Hmp=new g.nt("suggestedActionRenderer");var jXv=new g.nt("timedMarkerDecorationRenderer");var gIS=new g.nt("cipher");var IIo=new g.nt("playerVars");var Qz4=new g.nt("playerVars");var Li=g.ZT.window,qsS,mt_,oO=(Li==null?void 0:(qsS=Li.yt)==null?void 0:qsS.config_)||(Li==null?void 0:(mt_=Li.ytcfg)==null?void 0:mt_.data_)||{};g.ov("yt.config_",oO);var $B=[];var oVS=/^[\w.]*$/,FVq={q:!0,search_query:!0},xYo=String(ta);var y4=new function(){var z=window.document;this.S=window;this.Y=z}; g.ov("yt.ads_.signals_.getAdSignalsString",function(z){return Bg(ha(z))});g.N5();var TSu="XMLHttpRequest"in g.ZT?function(){return new XMLHttpRequest}:null;var lyf="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.P(lyf);var $c8={Authorization:"AUTHORIZATION","X-Goog-EOM-Visitor-Id":"EOM_VISITOR_DATA","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-Youtube-Domain-Admin-State":"DOMAIN_ADMIN_STATE","X-Youtube-Chrome-Connected":"CHROME_CONNECTED_HEADER","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Delegation-Context":"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL", "X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-Goog-AuthUser":"SESSION_INDEX","X-Goog-PageId":"DELEGATED_SESSION_ID"},eba="app debugcss debugjs expflag force_ad_params force_ad_encrypted force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" ").concat(g.P(lyf)),vnp=!1,tPq=lm;g.h(Wg,b_);im.prototype.then=function(z,K,f){return this.S?this.S.then(z,K,f):this.T===1&&z?(z=z.call(f,this.Y))&&typeof z.then==="function"?z:cg(z):this.T===2&&K?(z=K.call(f,this.Y))&&typeof z.then==="function"?z:dV(z):this}; im.prototype.getValue=function(){return this.Y}; im.prototype.$goog_Thenable=!0;var sJ=!1;var TN=$a||f3;var SDS=/^([0-9\.]+):([0-9\.]+)$/;g.h(hV,b_);hV.prototype.name="BiscottiError";g.h(ka,b_);ka.prototype.name="BiscottiMissingError";var P2W={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},aZ=null;var Kpd=b8(["data-"]),Jy8={};var V8p=0,RZ=g.oz?"webkit":Qe?"moz":g.Sy?"ms":g.nO?"o":"",n7p=g.CW("ytDomDomGetNextId")||function(){return++V8p}; g.ov("ytDomDomGetNextId",n7p);var cy5={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,screenX:1,screenY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};HK.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; HK.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; HK.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var QS=g.ZT.ytEventsEventsListeners||{};g.ov("ytEventsEventsListeners",QS);var jlW=g.ZT.ytEventsEventsCounter||{count:0};g.ov("ytEventsEventsCounter",jlW);var FiI=ye(function(){var z=!1;try{var K=Object.defineProperty({},"passive",{get:function(){z=!0}}); window.addEventListener("test",null,K)}catch(f){}return z}),YD5=ye(function(){var z=!1; try{var K=Object.defineProperty({},"capture",{get:function(){z=!0}}); window.addEventListener("test",null,K)}catch(f){}return z});var Ev;Ev=window;g.X=Ev.ytcsi&&Ev.ytcsi.now?Ev.ytcsi.now:Ev.performance&&Ev.performance.timing&&Ev.performance.now&&Ev.performance.timing.navigationStart?function(){return Ev.performance.timing.navigationStart+Ev.performance.now()}:function(){return(new Date).getTime()};g.GH(n3,g.J);n3.prototype.N=function(z){z.S===void 0&&slS(z);var K=z.S;z.Y===void 0&&slS(z);this.S=new g.Vw(K,z.Y)}; n3.prototype.hV=function(){return this.S||new g.Vw}; n3.prototype.Y1=function(){if(this.S){var z=(0,g.X)();if(this.J!=0){var K=this.W,f=this.S,M=K.x-f.x;K=K.y-f.y;M=Math.sqrt(M*M+K*K)/(z-this.J);this.Y[this.T]=Math.abs((M-this.C)/this.C)>.5?1:0;for(f=K=0;f<4;f++)K+=this.Y[f]||0;K>=3&&this.G();this.C=M}this.J=z;this.W=this.S;this.T=(this.T+1)%4}}; n3.prototype.JL=function(){g.EJ(this.D);g.m6(this.l_)};g.h(WK,g.J);WK.prototype.X=function(z,K,f,M,p){f=g.Mu((0,g.p1)(f,M||this.nI));f={target:z,name:K,callback:f};var t;p&&FiI()&&(t={passive:!0});z.addEventListener(K,f.callback,t);this.G.push(f);return f}; WK.prototype.W8=function(z){for(var K=0;K=c.qt)||S.S.version>=O||S.S.objectStoreNames.contains(V)||L.push(V)}I=L;if(I.length===0){R.jV(5);break}G=Object.keys(f.options.Nb); b=v.objectStoreNames();if(f.Cf.options.version+1)throw w.close(),f.T=!1,WQT(f,D);return R.return(w);case 8:throw K(), e instanceof Error&&!g.Hg("ytidb_async_stack_killswitch")&&(e.stack=e.stack+"\n"+B.substring(B.indexOf("\n")+1)),HJ(e,f.name,"",(y=f.options.version)!=null?y:-1);}})} function K(){f.S===M&&(f.S=void 0)} var f=this;if(!this.T)throw WQT(this);if(this.S)return this.S;var M,p={blocking:function(t){t.close()}, closed:K,Ka1:K,upgrade:this.options.upgrade};return this.S=M=z()};var oY=new rg("YtIdbMeta",{Nb:{databases:{qt:1}},upgrade:function(z,K){K(1)&&g.JO(z,"databases",{keyPath:"actualName"})}});var KR,z4=new function(){}(new function(){});new g.ai;g.h(MJ,rg);MJ.prototype.Y=function(z,K,f){f=f===void 0?{}:f;return(this.options.shared?Y8S:jG5)(z,K,Object.assign({},f))}; MJ.prototype.delete=function(z){z=z===void 0?{}:z;return(this.options.shared?Olp:Xs8)(this.name,z)};var jzo={},Zld=g.pR("ytGcfConfig",{Nb:(jzo.coldConfigStore={qt:1},jzo.hotConfigStore={qt:1},jzo),shared:!1,upgrade:function(z,K){K(1)&&(g.AO(g.JO(z,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.AO(g.JO(z,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.h(Bk,g.J);Bk.prototype.JL=function(){for(var z=g.a(this.Y),K=z.next();!K.done;K=z.next()){var f=this.S;K=f.indexOf(K.value);K>=0&&f.splice(K,1)}this.Y.length=0;g.J.prototype.JL.call(this)};es.prototype.cn=function(z){this.hotHashData=z;g.ov("yt.gcf.config.hotHashData",this.hotHashData||null)};var Ys7=typeof TextEncoder!=="undefined"?new TextEncoder:null,dzd=Ys7?function(z){return Ys7.encode(z)}:function(z){z=g.Bi(z); for(var K=new Uint8Array(z.length),f=0;f=K?!1:!0}; g.k.S5=function(){var z=this;if(!Ac(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.XS.Cn("QUEUED",this.L3).then(function(K){K&&!z.wb(K,z.Tk)?z.rK.DD(function(){return g.n(function(f){if(f.Y==1)return K.id===void 0?f.jV(2):g.l(f,z.XS.U4(K.id,z.L3),2);z.S5();g.Rv(f)})}):z.jF.d$()&&z.N5()})};var X$;var aFo={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136, mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167, kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387, transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189, ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258, ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221, accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245, musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270, yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296, notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478, tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340, iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361, mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380, mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400, clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420, mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16, mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443, cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468, miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490, shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515, adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520};var xt7={},$ug=g.pR("ServiceWorkerLogsDatabase",{Nb:(xt7.SWHealthLog={qt:1},xt7),shared:!0,upgrade:function(z,K){K(1)&&g.AO(g.JO(z,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var On={},GMW=0;var rD;os.prototype.requestComplete=function(z,K){K&&(this.Y=!0);z=this.removeParams(z);this.S.get(z)||this.S.set(z,K)}; os.prototype.isEndpointCFR=function(z){z=this.removeParams(z);return(z=this.S.get(z))?!1:z===!1&&this.Y?!0:null}; os.prototype.removeParams=function(z){return z.split("?")[0]}; os.prototype.removeParams=os.prototype.removeParams;os.prototype.isEndpointCFR=os.prototype.isEndpointCFR;os.prototype.requestComplete=os.prototype.requestComplete;os.getInstance=CR;g.h(T4,g.kZ);g.k=T4.prototype;g.k.d$=function(){return this.S.d$()}; g.k.Tr=function(z){this.S.S=z}; g.k.GX=function(){var z=window.navigator.onLine;return z===void 0?!0:z}; g.k.er=function(){this.Y=!0}; g.k.listen=function(z,K){return this.S.listen(z,K)}; g.k.Ju=function(z){z=F8(this.S,z);z.then(function(K){g.Hg("use_cfr_monitor")&&CR().requestComplete("generate_204",K)}); return z}; T4.prototype.sendNetworkCheckRequest=T4.prototype.Ju;T4.prototype.listen=T4.prototype.listen;T4.prototype.enableErrorFlushing=T4.prototype.er;T4.prototype.getWindowStatus=T4.prototype.GX;T4.prototype.networkStatusHint=T4.prototype.Tr;T4.prototype.isNetworkAvailable=T4.prototype.d$;T4.getInstance=wgp;g.h(g.Un,g.kZ);g.Un.prototype.d$=function(){var z=g.CW("yt.networkStatusManager.instance.isNetworkAvailable");return z?z.bind(this.Y)():!0}; g.Un.prototype.Tr=function(z){var K=g.CW("yt.networkStatusManager.instance.networkStatusHint").bind(this.Y);K&&K(z)}; g.Un.prototype.Ju=function(z){var K=this,f;return g.n(function(M){f=g.CW("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(K.Y);return g.Hg("skip_network_check_if_cfr")&&CR().isEndpointCFR("generate_204")?M.return(new Promise(function(p){var t;K.Tr(((t=window.navigator)==null?void 0:t.onLine)||!0);p(K.d$())})):f?M.return(f(z)):M.return(!0)})};var zW;g.h(Kv,js);Kv.prototype.writeThenSend=function(z,K){K||(K={});K=fv(z,K);g.K8()||(this.S=!1);js.prototype.writeThenSend.call(this,z,K)}; Kv.prototype.sendThenWrite=function(z,K,f){K||(K={});K=fv(z,K);g.K8()||(this.S=!1);js.prototype.sendThenWrite.call(this,z,K,f)}; Kv.prototype.sendAndWrite=function(z,K){K||(K={});K=fv(z,K);g.K8()||(this.S=!1);js.prototype.sendAndWrite.call(this,z,K)}; Kv.prototype.awaitInitialization=function(){return this.T.promise};var aQS=g.ZT.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.ov("ytNetworklessLoggingInitializationOptions",aQS);g.M1.prototype.isReady=function(){!this.config_&&btS()&&(this.config_=g.Dh());return!!this.config_};var FM9,BL,vL;FM9=g.ZT.ytPubsubPubsubInstance||new g.Ws;BL=g.ZT.ytPubsubPubsubSubscribedKeys||{};vL=g.ZT.ytPubsubPubsubTopicToKeys||{};g.N1=g.ZT.ytPubsubPubsubIsSynchronous||{};g.Ws.prototype.subscribe=g.Ws.prototype.subscribe;g.Ws.prototype.unsubscribeByKey=g.Ws.prototype.Or;g.Ws.prototype.publish=g.Ws.prototype.publish;g.Ws.prototype.clear=g.Ws.prototype.clear;g.ov("ytPubsubPubsubInstance",FM9);g.ov("ytPubsubPubsubTopicToKeys",vL);g.ov("ytPubsubPubsubIsSynchronous",g.N1); g.ov("ytPubsubPubsubSubscribedKeys",BL);var Pmq={};g.h(aP,g.J);aP.prototype.append=function(z){if(!this.Y)throw Error("This does not support the append operation");z=z.H1();this.H1().appendChild(z)}; g.h(E2,aP);E2.prototype.H1=function(){return this.S};g.h(PL,g.J);PL.prototype.onTouchStart=function(z){this.G=!0;this.Y=z.touches.length;this.S.isActive()&&(this.S.stop(),this.C=!0);z=z.touches;this.W=qJS(this,z)||z.length!=1;var K=z.item(0);this.W||!K?this.N=this.D=Infinity:(this.D=K.clientX,this.N=K.clientY);for(K=this.T.length=0;K=0)}if(K||z&&Math.pow(z.clientX-this.D,2)+Math.pow(z.clientY-this.N,2)>25)this.J=!0}; PL.prototype.onTouchEnd=function(z){var K=z.changedTouches;K&&this.G&&this.Y==1&&!this.J&&!this.C&&!this.W&&qJS(this,K)&&(this.Y1=z,this.S.start());this.Y=z.touches.length;this.Y===0&&(this.J=this.G=!1,this.T.length=0);this.C=!1};var HL=Date.now().toString();var V9={};var dJ=Symbol("injectionDeps");WL.prototype.toString=function(){return"InjectionToken("+this.name+")"}; Vg8.prototype.resolve=function(z){return z instanceof JY?cL(this,z.key,[],!0):cL(this,z,[])};var s2;var jL=window;var Fr=g.Hg("web_enable_lifecycle_monitoring")&&Yh()!==0,caW=g.Hg("web_enable_lifecycle_monitoring");gBa.prototype.cancel=function(){for(var z=g.a(this.S),K=z.next();!K.done;K=z.next())K=K.value,K.jobId===void 0||K.Fl||this.scheduler.Yg(K.jobId),K.Fl=!0;this.Y.resolve()};g.k=O2.prototype;g.k.install=function(z){this.plugins.push(z);return this}; g.k.uninstall=function(){var z=this;g.i8.apply(0,arguments).forEach(function(K){K=z.plugins.indexOf(K);K>-1&&z.plugins.splice(K,1)})}; g.k.transition=function(z,K){var f=this;Fr&&WwT(this.state);var M=this.transitions.find(function(t){return Array.isArray(t.from)?t.from.find(function(B){return B===f.state&&t.to===z}):t.from===f.state&&t.to===z}); if(M){this.Y&&(iJv(this.Y),this.Y=void 0);sw8(this,z,K);this.state=z;Fr&&Xr(this.state);M=M.action.bind(this);var p=this.plugins.filter(function(t){return t[z]}).map(function(t){return t[z]}); M(du8(this,p),K)}else throw Error("no transition specified from "+this.state+" to "+z);}; g.k.DT1=function(z){var K=g.i8.apply(1,arguments);g.tO();for(var f=g.a(z),M=f.next(),p={};!M.done;p={B2:void 0},M=f.next())p.B2=M.value,psa(function(t){return function(){Zp(t.B2.name);Cv(function(){return t.B2.callback.apply(t.B2,g.P(K))}); oP(t.B2.name)}}(p))}; g.k.XAd=function(z){var K=g.i8.apply(1,arguments),f,M,p,t;return g.n(function(B){B.Y==1&&(g.tO(),f=g.a(z),M=f.next(),p={});if(B.Y!=3){if(M.done)return B.jV(0);p.rZ=M.value;p.bk=void 0;t=function(v){return function(){Zp(v.rZ.name);var I=Cv(function(){return v.rZ.callback.apply(v.rZ,g.P(K))}); k$(I)?v.bk=g.Hg("web_lifecycle_error_handling_killswitch")?I.then(function(){oP(v.rZ.name)}):I.then(function(){oP(v.rZ.name)},function(G){Jad(G); oP(v.rZ.name)}):oP(v.rZ.name)}}(p); psa(t);return p.bk?g.l(B,p.bk,3):B.jV(3)}p={rZ:void 0,bk:void 0};M=f.next();return B.jV(2)})}; g.k.ZQ=function(z){var K=g.i8.apply(1,arguments),f=this,M=z.map(function(p){return{zy:function(){Zp(p.name);Cv(function(){return p.callback.apply(p,g.P(K))}); oP(p.name)}, priority:rJ(f,p)}}); M.length&&(this.Y=new gBa(M))}; g.B5.Object.defineProperties(O2.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var U2;g.h(TW,O2);TW.prototype.C=function(z,K){var f=this;this.S=g.Mg(0,function(){f.currentState==="application_navigating"&&f.transition("none")},5E3); z(K==null?void 0:K.event)}; TW.prototype.W=function(z,K){this.S&&(g.rh.Yg(this.S),this.S=null);z(K==null?void 0:K.event)};var Em=[];g.ov("yt.logging.transport.getScrapedGelPayloads",function(){return Em});zu.prototype.storePayload=function(z,K){z=KQ(z);this.store[z]?this.store[z].push(K):(this.Y={},this.store[z]=[K]);this.S++;g.Hg("more_accurate_gel_parser")&&(K=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(K));return z}; zu.prototype.smartExtractMatchingEntries=function(z){if(!z.keys.length)return[];for(var K=fQ(this,z.keys.splice(0,1)[0]),f=[],M=0;M=0){M=!1;break a}}M=!0}M&&(K=FX(K))&&this.rN(K)}}; g.k.YP=function(z){return z}; g.k.onTouchStart=function(z){this.nH.onTouchStart(z)}; g.k.onTouchMove=function(z){this.nH.onTouchMove(z)}; g.k.onTouchEnd=function(z){if(this.nH)this.nH.onTouchEnd(z)}; g.k.rN=function(z){this.layoutId?this.Zq.executeCommand(z,this.layoutId):(z=new g.UT("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.sm(z))}; g.k.createServerVe=function(z,K){this.api.createServerVe(z,this);this.api.setTrackingParams(z,K)}; g.k.logVisibility=function(z,K){this.api.hasVe(z)&&this.api.logVisibility(z,K,this.interactionLoggingClientData)}; g.k.JL=function(){this.clear(null);this.W8(this.oa);for(var z=g.a(this.Hx),K=z.next();!K.done;K=z.next())this.W8(K.value);g.RT.prototype.JL.call(this)};g.h(jj,Sj); jj.prototype.init=function(z,K,f){Sj.prototype.init.call(this,z,K,f);this.S=K;if(K.text==null&&K.icon==null)g.Al(Error("ButtonRenderer did not have text or an icon set."));else{switch(K.style||null){case "STYLE_UNKNOWN":z="ytp-ad-button-link";break;default:z=null}z!=null&&g.ey(this.element,z);K.text!=null&&(z=g.Lc(K.text),g.h6(z)||(this.element.setAttribute("aria-label",z),this.T=new g.RT({j:"span",K:"ytp-ad-button-text",qc:z}),g.d(this,this.T),this.T.hL(this.element)));K.accessibilityData&&K.accessibilityData.accessibilityData&& K.accessibilityData.accessibilityData.label&&!g.h6(K.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",K.accessibilityData.accessibilityData.label);K.icon!=null&&(K=At(K.icon,this.J),K!=null&&(this.Y=new g.RT({j:"span",K:"ytp-ad-button-icon",L:[K]}),g.d(this,this.Y)),this.W?M0(this.element,this.Y.element,0):this.Y.hL(this.element))}}; jj.prototype.clear=function(){this.hide()}; jj.prototype.onClick=function(z){Sj.prototype.onClick.call(this,z);z=g.a(cOu(this));for(var K=z.next();!K.done;K=z.next())K=K.value,this.layoutId?this.Zq.executeCommand(K,this.layoutId):g.sm(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.h(Yl,g.J);Yl.prototype.JL=function(){this.Y&&g.m6(this.Y);this.S.clear();Xc=null;g.J.prototype.JL.call(this)}; Yl.prototype.register=function(z,K){K&&this.S.set(z,K)}; var Xc=null;g.h(Oa,Sj); Oa.prototype.init=function(z,K,f){Sj.prototype.init.call(this,z,K,f);z=K.hoverText||null;K=K.button&&g.A(K.button,g.Fd)||null;K==null?g.sm(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new jj(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,void 0,void 0,void 0,void 0,this.T),g.d(this,this.button),this.button.init(ej("button"),K,this.macros),z&&this.button.element.setAttribute("aria-label",g.Lc(z)),this.button.hL(this.element),this.N&&!g.bx(this.button.element, "ytp-ad-clickable")&&g.ey(this.button.element,"ytp-ad-clickable"),this.T&&g.ey(this.button.element,"ytp-ad-hover-text-button--clean-player"),z&&(this.Y=new g.RT({j:"div",K:"ytp-ad-hover-text-container"}),this.W&&(K=new g.RT({j:"div",K:"ytp-ad-hover-text-callout"}),K.hL(this.Y.element),g.d(this,K)),g.d(this,this.Y),this.Y.hL(this.element),K=xl(z),M0(this.Y.element,K,0)),this.show())}; Oa.prototype.hide=function(){this.button&&this.button.hide();this.Y&&this.Y.hide();Sj.prototype.hide.call(this)}; Oa.prototype.show=function(){this.button&&this.button.show();Sj.prototype.show.call(this)};g.h(Zv,Sj); Zv.prototype.init=function(z,K,f){Sj.prototype.init.call(this,z,K,f);f=(z=K.thumbnail)&&rM(z)||"";g.h6(f)?Math.random()<.01&&g.Al(Error("Found AdImage without valid image URL")):(this.S?g.H6(this.element,"backgroundImage","url("+f+")"):Zy(this.element,{src:f}),Zy(this.element,{alt:z&&z.accessibility&&z.accessibility.label||""}),K&&K.adRendererCommands&&K.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; Zv.prototype.clear=function(){this.hide()};g.h(oT,Sj);g.k=oT.prototype;g.k.hide=function(){Sj.prototype.hide.call(this);this.T&&this.T.focus()}; g.k.show=function(){this.T=document.activeElement;Sj.prototype.show.call(this);this.J.focus()}; g.k.init=function(z,K,f){Sj.prototype.init.call(this,z,K,f);this.Y=K;K.dialogMessages||K.title!=null?K.confirmLabel==null?g.sm(Error("ConfirmDialogRenderer.confirmLabel was not set.")):K.cancelLabel==null?g.sm(Error("ConfirmDialogRenderer.cancelLabel was not set.")):Yxa(this,K):g.sm(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.k.clear=function(){g.g0(this.S);this.hide()}; g.k.tC=function(){this.hide()}; g.k.DH=function(){var z=this.Y.cancelEndpoint;z&&(this.layoutId?this.Zq.executeCommand(z,this.layoutId):g.sm(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.k.wl=function(){var z=this.Y.confirmNavigationEndpoint||this.Y.confirmEndpoint;z&&(this.layoutId?this.Zq.executeCommand(z,this.layoutId):g.sm(Error("Missing layoutId for confirm dialog.")));this.hide()};g.h(Cc,Sj);g.k=Cc.prototype; g.k.init=function(z,K,f){Sj.prototype.init.call(this,z,K,f);this.T=K;if(K.defaultText==null&&K.defaultIcon==null)g.sm(Error("ToggleButtonRenderer must have either text or icon set."));else if(K.defaultIcon==null&&K.toggledIcon!=null)g.sm(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(K.style){switch(K.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":z="ytp-ad-toggle-button-default-style";break;default:z=null}z!=null&&g.ey(this.J,z)}z={};K.defaultText? (f=g.Lc(K.defaultText),g.h6(f)||(z.buttonText=f,this.api.Z().experiments.sf("a11y_h5_associate_survey_question")||this.S.setAttribute("aria-label",f),this.api.Z().experiments.sf("fix_h5_toggle_button_a11y")&&this.Y.setAttribute("aria-label",f))):g.c6(this.eV,!1);K.defaultTooltip&&(z.tooltipText=K.defaultTooltip,this.S.hasAttribute("aria-label")||this.Y.setAttribute("aria-label",K.defaultTooltip));K.defaultIcon?(f=At(K.defaultIcon),this.updateValue("untoggledIconTemplateSpec",f),K.toggledIcon?(this.l_= !0,f=At(K.toggledIcon),this.updateValue("toggledIconTemplateSpec",f)):(g.c6(this.N,!0),g.c6(this.W,!1)),g.c6(this.S,!1)):g.c6(this.Y,!1);g.U9(z)||this.update(z);K.isToggled&&(g.ey(this.J,"ytp-ad-toggle-button-toggled"),this.toggleButton(K.isToggled));TU(this);this.X(this.element,"change",this.e$);this.show()}}; g.k.onClick=function(z){this.Hx.length>0&&(this.toggleButton(!this.isToggled()),this.e$());Sj.prototype.onClick.call(this,z)}; g.k.e$=function(){g.k4(this.J,"ytp-ad-toggle-button-toggled",this.isToggled());for(var z=g.a(XJd(this,this.isToggled())),K=z.next();!K.done;K=z.next())K=K.value,this.layoutId?this.Zq.executeCommand(K,this.layoutId):g.sm(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);TU(this)}; g.k.clear=function(){this.hide()}; g.k.toggleButton=function(z){g.k4(this.J,"ytp-ad-toggle-button-toggled",z);this.S.checked=z;TU(this)}; g.k.isToggled=function(){return this.S.checked};g.h(Ua,WK);Ua.prototype.W=function(z){if(Array.isArray(z)){z=g.a(z);for(var K=z.next();!K.done;K=z.next())K=K.value,K instanceof xg5&&this.J(K)}};g.h(zs,Sj);g.k=zs.prototype;g.k.init=function(z,K,f){Sj.prototype.init.call(this,z,K,f);K.reasons?K.confirmLabel==null?g.sm(Error("AdFeedbackRenderer.confirmLabel was not set.")):(K.cancelLabel==null&&g.Al(Error("AdFeedbackRenderer.cancelLabel was not set.")),K.title==null&&g.Al(Error("AdFeedbackRenderer.title was not set.")),Z8T(this,K)):g.sm(Error("AdFeedbackRenderer.reasons were not set."))}; g.k.clear=function(){lu(this.W);lu(this.N);this.J.length=0;this.hide()}; g.k.hide=function(){this.S&&this.S.hide();this.Y&&this.Y.hide();Sj.prototype.hide.call(this);this.T&&this.T.focus()}; g.k.show=function(){this.S&&this.S.show();this.Y&&this.Y.show();this.T=document.activeElement;Sj.prototype.show.call(this);this.W.focus()}; g.k.y0=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.k.Clq=function(){this.hide()}; Kd.prototype.H1=function(){return this.S.element}; Kd.prototype.getCommand=function(){return this.Y}; Kd.prototype.isChecked=function(){return this.T.checked};g.h($k,oT);$k.prototype.tC=function(z){oT.prototype.tC.call(this,z);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; $k.prototype.DH=function(z){oT.prototype.DH.call(this,z);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; $k.prototype.wl=function(z){oT.prototype.wl.call(this,z);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.h(fd,Sj);g.k=fd.prototype; g.k.init=function(z,K,f){Sj.prototype.init.call(this,z,K,f);this.W=K;if(K.dialogMessage==null&&K.title==null)g.sm(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{K.confirmLabel==null&&g.Al(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(z=K.closeOverlayRenderer&&g.A(K.closeOverlayRenderer,g.Fd)||null)this.S=new jj(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.d(this,this.S),this.S.init(ej("button"),z,this.macros),this.S.hL(this.element);K.title&&(z=g.Lc(K.title),this.updateValue("title",z));if(K.adReasons)for(z=K.adReasons,f=0;f=this.vx?(this.l_.hide(),this.Xc=!0,this.publish("i")):this.T&&this.T.isTemplated()&&(z=Math.max(0,Math.ceil((this.vx-z)/1E3)),z!=this.VE&&(tP(this.T,{TIME_REMAINING:String(z)}),this.VE=z)))}};g.h(e$,BP);g.k=e$.prototype; g.k.init=function(z,K,f){BP.prototype.init.call(this,z,K,f);if(K.image&&K.image.thumbnail)if(K.headline)if(K.description)if((z=K.actionButton&&g.A(K.actionButton,g.Fd))&&z.navigationEndpoint){var M=this.api.getVideoData(2);if(M!=null)if(K.image&&K.image.thumbnail){var p=K.image.thumbnail.thumbnails;p!=null&&p.length>0&&g.h6(g.hR(p[0].url))&&(p[0].url=M.profilePicture)}else g.Al(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.T.init(ej("ad-image"),K.image,f);this.W.init(ej("ad-text"), K.headline,f);this.J.init(ej("ad-text"),K.description,f);this.Y.init(ej("button"),z,f);f=UD(this.Y.element);T$(this.Y.element,f+" This link opens in new tab");this.l_=z.navigationEndpoint;this.api.Tn()||this.show();this.api.Z().B("enable_larger_flyout_cta_on_desktop")&&(this.dE("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.dE("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.dE("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.dE("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.dE("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.dE("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.Y.element.classList.add("ytp-flyout-cta-action-button-large"),this.Y.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.dE("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.cM.bind(this));this.eV=K.startMs||0;NS(this)}else g.sm(Error("FlyoutCtaRenderer has no valid action button."));else g.sm(Error("FlyoutCtaRenderer has no description AdText."));else g.sm(Error("FlyoutCtaRenderer has no headline AdText."));else g.Al(Error("FlyoutCtaRenderer has no image."))}; g.k.onClick=function(z){BP.prototype.onClick.call(this,z);this.api.pauseVideo();!g.t$(this.Y.element,z.target)&&this.l_&&(this.layoutId?this.Zq.executeCommand(this.l_,this.layoutId):g.sm(Error("Missing layoutId for flyout cta.")))}; g.k.DE=function(){if(this.S){var z=this.S.getProgressState();(z&&z.current||this.vx)&&1E3*z.current>=this.eV&&(vP(this),g.Dz(this.element,"ytp-flyout-cta-inactive"),this.Y.element.removeAttribute("tabIndex"))}}; g.k.KY=function(){this.clear()}; g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.cM.bind(this))}; g.k.show=function(){this.Y&&this.Y.show();BP.prototype.show.call(this)}; g.k.hide=function(){this.Y&&this.Y.hide();BP.prototype.hide.call(this)}; g.k.cM=function(z){z=="hidden"?this.show():this.hide()};g.h(wc,Sj);g.k=wc.prototype; g.k.init=function(z,K,f){Sj.prototype.init.call(this,z,K,f);this.S=K;if(this.S.rectangle)for(z=this.S.likeButton&&g.A(this.S.likeButton,u9),K=this.S.dislikeButton&&g.A(this.S.dislikeButton,u9),this.T.init(ej("toggle-button"),z,f),this.Y.init(ej("toggle-button"),K,f),this.X(this.element,"change",this.Uv),this.J.show(100),this.show(),f=g.a(this.S&&this.S.impressionCommands||[]),z=f.next();!z.done;z=f.next())z=z.value,this.layoutId?this.Zq.executeCommand(z,this.layoutId):g.sm(Error("Missing layoutId for instream user sentiment."))}; g.k.clear=function(){this.hide()}; g.k.hide=function(){this.T.hide();this.Y.hide();Sj.prototype.hide.call(this)}; g.k.show=function(){this.T.show();this.Y.show();Sj.prototype.show.call(this)}; g.k.Uv=function(){Qko(this.element,"ytp-ad-instream-user-sentiment-selected");this.S.postMessageAction&&this.api.LH("onYtShowToast",this.S.postMessageAction);this.J.hide()}; g.k.onClick=function(z){this.Hx.length>0&&this.Uv();Sj.prototype.onClick.call(this,z)};g.h(DW,g.J);g.k=DW.prototype;g.k.JL=function(){this.reset();g.J.prototype.JL.call(this)}; g.k.reset=function(){g.g0(this.J);this.W=!1;this.S&&this.S.stop();this.C.stop();this.T&&(this.T=!1,this.G.play())}; g.k.start=function(){this.reset();this.J.X(this.Y,"mouseover",this.m5,this);this.J.X(this.Y,"mouseout",this.WM,this);this.Y1&&(this.J.X(this.Y,"focusin",this.m5,this),this.J.X(this.Y,"focusout",this.WM,this));this.S?this.S.start():(this.W=this.T=!0,g.H6(this.Y,{opacity:this.N}))}; g.k.m5=function(){this.T&&(this.T=!1,this.G.play());this.C.stop();this.S&&this.S.stop()}; g.k.WM=function(){this.W?this.C.start():this.S&&this.S.start()}; g.k.Vx=function(){this.T||(this.T=!0,this.D.play(),this.W=!0)};var BDI=[new yD("b.f_",!1,0),new yD("j.s_",!1,2),new yD("r.s_",!1,4),new yD("e.h_",!1,6),new yD("i.s_",!0,8),new yD("s.t_",!1,10),new yD("p.h_",!1,12),new yD("s.i_",!1,14),new yD("f.i_",!1,16),new yD("a.b_",!1,18),new yD("a.o_",!1),new yD("g.o_",!1,22),new yD("p.i_",!1,24),new yD("p.m_",!1),new yD("n.k_",!0,20),new yD("i.f_",!1),new yD("a.s_",!0),new yD("m.c_",!1),new yD("n.h_",!1,26),new yD("o.p_",!1),new yD("m.p_",!0,28),new yD("o.a_",!1),new yD("d.p_",!1)].reduce(function(z,K){z[K.Y]=K;return z}, {});g.h(E$,BP);g.k=E$.prototype; g.k.init=function(z,K,f){BP.prototype.init.call(this,z,K,f);this.l_=K;(this.eV=vKo(this))&&g.Al(Error("hasAdControlInClickCommands_ is true."));if(!K||g.U9(K))g.sm(Error("SkipButtonRenderer was not specified or empty."));else if(!K.message||g.U9(K.message))g.sm(Error("SkipButtonRenderer.message was not specified or empty."));else{z=this.W?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};K=At(z);K==null?g.sm(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+z.iconType+".")): (this.T=new g.RT({j:"button",Wx:[this.W?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],L:[{j:"span",K:this.W?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",L:[K]}]}),g.d(this,this.T),this.T.hL(this.J.element),this.Y=new pd(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,"ytp-ad-skip-button-text"),this.W&&this.Y.element.classList.add("ytp-ad-skip-button-text-centered"),this.Y.init(ej("ad-text"),this.l_.message,f),g.d(this,this.Y),M0(this.T.element,this.Y.element, 0));var M=M===void 0?null:M;f=this.api.Z();!(this.Hx.length>0)&&f.Y&&(VT?0:"ontouchstart"in document.documentElement&&(C_T()||x0()))&&(this.W8(this.oa),M&&this.W8(M),this.Hx=[this.X(this.element,"touchstart",this.onTouchStart,this),this.X(this.element,"touchmove",this.onTouchMove,this),this.X(this.element,"touchend",this.onTouchEnd,this)])}}; g.k.clear=function(){this.vx.reset();this.hide()}; g.k.hide=function(){this.J.hide();this.Y&&this.Y.hide();vP(this);BP.prototype.hide.call(this)}; g.k.onClick=function(z){if(this.T!=null){if(z){var K=z||window.event;K.returnValue=!1;K.preventDefault&&K.preventDefault()}var f;if(pkg(z,{contentCpn:((f=this.api.getVideoData(1))==null?void 0:f.clientPlaybackNonce)||""})===0)this.api.LH("onAbnormalityDetected");else if(BP.prototype.onClick.call(this,z),this.publish("j"),this.api.LH("onAdSkip"),this.Xc||!this.eV)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.k.YP=function(z){if(!this.Xc)return this.eV&&R3("SkipButton click commands not pruned while ALC exist"),z;var K,f=(K=g.A(z,g.PP))==null?void 0:K.commands;if(!f)return z;z=[];for(K=0;K=this.W&&IhS(this,!0)};g.h(QD,jj);QD.prototype.init=function(z,K,f){jj.prototype.init.call(this,z,K,f);z=!1;K.text!=null&&(z=g.Lc(K.text),z=!g.h6(z));z?K.navigationEndpoint==null?g.Al(Error("No visit advertiser clickthrough provided in renderer,")):K.style!=="STYLE_UNKNOWN"?g.Al(Error("Button style was not a link-style type in renderer,")):this.show():g.Al(Error("No visit advertiser text was present in the renderer."))};g.h(qS,Sj); qS.prototype.init=function(z,K,f){Sj.prototype.init.call(this,z,K,f);z=K.text;g.h6(un(z))?g.Al(Error("SimpleAdBadgeRenderer has invalid or empty text")):(z&&z.text&&(K=z.text,this.T&&!this.Y&&(K=this.api.Z(),K=z.text+" "+(K&&K.Y?"\u2022":"\u00b7")),K={text:K,isTemplated:z.isTemplated},z.style&&(K.style=z.style),z.targetId&&(K.targetId=z.targetId),z=new pd(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq),z.init(ej("simple-ad-badge"),K,f),z.hL(this.element),g.d(this,z)),this.show())}; qS.prototype.clear=function(){this.hide()};g.h(mc,wM);g.h(ls,g.Dv);g.k=ls.prototype;g.k.s2=function(){return this.durationMs}; g.k.stop=function(){this.S&&this.Nv.W8(this.S)}; g.k.C6=function(z){this.Y={seekableStart:0,seekableEnd:this.durationMs/1E3,current:z.current};this.publish("h")}; g.k.getProgressState=function(){return this.Y}; g.k.xM=function(z){g.Ld(z,2)&&this.publish("g")};g.h(VD,g.Dv);g.k=VD.prototype;g.k.s2=function(){return this.durationMs}; g.k.start=function(){this.S||(this.S=!0,this.QR.start())}; g.k.stop=function(){this.S&&(this.S=!1,this.QR.stop())}; g.k.C6=function(){this.Ae+=100;var z=!1;this.Ae>this.durationMs&&(this.Ae=this.durationMs,this.QR.stop(),z=!0);this.Y={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.Ae/1E3};this.publish("h");z&&this.publish("g")}; g.k.getProgressState=function(){return this.Y};g.h(JP,BP);g.k=JP.prototype;g.k.init=function(z,K,f){BP.prototype.init.call(this,z,K,f);var M;if(K==null?0:(M=K.templatedCountdown)==null?0:M.templatedAdText){z=K.templatedCountdown.templatedAdText;if(!z.isTemplated){g.Al(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.Y=new pd(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq);this.Y.init(ej("ad-text"),z,{});this.Y.hL(this.element);g.d(this,this.Y)}this.show()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){vP(this);BP.prototype.hide.call(this)}; g.k.KY=function(){this.hide()}; g.k.DE=function(){if(this.S!=null){var z=this.S.getProgressState();if(z!=null&&z.current!=null&&this.Y){var K=this.S instanceof ls?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:z.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.S instanceof VD?z.seekableEnd:this.api.getDuration(2,!1);z=z.current;var f,M,p=((f=this.api.getVideoData())==null?0:(M=f.Fr)==null?0:M.call(f))?Math.max(K-z,0):K-z;tP(this.Y,{FORMATTED_AD_DURATION_REMAINING:String(g.nd(p)), TIME_REMAINING:String(Math.ceil(p))})}}}; g.k.show=function(){NS(this);BP.prototype.show.call(this)};g.h(is,pd);is.prototype.onClick=function(z){pd.prototype.onClick.call(this,z);this.api.onAdUxClicked(this.componentType)};g.h(cP,Sj);cP.prototype.init=function(z,K){Sj.prototype.init.call(this,z,K,{});if(z=K.content){g.B6(this.element,z);var f,M;K=((f=K.interaction)==null?void 0:(M=f.accessibility)==null?void 0:M.label)||z;this.element.setAttribute("aria-label",K)}else g.sm(Error("AdSimpleAttributedString does not have text content"))}; cP.prototype.clear=function(){this.hide()}; cP.prototype.onClick=function(z){Sj.prototype.onClick.call(this,z)};g.h(s$,Sj); s$.prototype.init=function(z,K){Sj.prototype.init.call(this,z,K,{});(z=K.label)&&z.content&&!g.h6(z.content)?(this.adBadgeText.init(ej("ad-simple-attributed-string"),new dc(z)),(K=K.adPodIndex)&&K.content&&!g.h6(K.content)&&(this.S=new cP(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq),this.S.hL(this.element),g.d(this,this.S),this.S.element.classList.add("ytp-ad-badge__pod-index"),this.S.init(ej("ad-simple-attributed-string"),new dc(K))),this.element.classList.add(this.Y?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.sm(Error("No label is returned in AdBadgeViewModel."))}; s$.prototype.show=function(){this.adBadgeText.show();var z;(z=this.S)==null||z.show();Sj.prototype.show.call(this)}; s$.prototype.hide=function(){this.adBadgeText.hide();var z;(z=this.S)==null||z.hide();Sj.prototype.hide.call(this)};g.h(AP,Sj);AP.prototype.init=function(z,K){Sj.prototype.init.call(this,z,K,{});(z=K.adPodIndex)&&z.content&&!g.h6(z.content)&&(this.S=new cP(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq),this.S.hL(this.element),g.d(this,this.S),this.S.init(ej("ad-simple-attributed-string"),new dc(z)),K.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE"&&this.element.classList.add("ytp-ad-pod-index--autohide"));this.element.classList.add("ytp-ad-pod-index--stark");this.show()}; AP.prototype.show=function(){var z;(z=this.S)==null||z.show();Sj.prototype.show.call(this)}; AP.prototype.hide=function(){var z;(z=this.S)==null||z.hide();Sj.prototype.hide.call(this)};g.h(j$,Sj); j$.prototype.init=function(z,K){Sj.prototype.init.call(this,z,K,{});if(K!=null&&K.text){var f;if(((f=K.text)==null?0:f.content)&&!g.h6(K.text.content)){this.S=new g.RT({j:"div",K:"ytp-ad-disclosure-banner__text",qc:K.text.content});g.d(this,this.S);this.S.hL(this.element);var M,p;z=((M=K.interaction)==null?void 0:(p=M.accessibility)==null?void 0:p.label)||K.text.content;this.element.setAttribute("aria-label",z);var t;if((t=K.interaction)==null?0:t.onTap)this.Y=new g.RT({j:"div",K:"ytp-ad-disclosure-banner__chevron",L:[g.Qb()]}), g.d(this,this.Y),this.Y.hL(this.element);this.show()}}else g.sm(Error("No banner text found in AdDisclosureBanner."))}; j$.prototype.clear=function(){this.hide()};g.h(xk,g.RT);xk.prototype.C6=function(){var z=this.Y.getProgressState(),K=z.seekableEnd;this.api.getPresentingPlayerType()===2&&(K=this.T?this.T/1E3:z.seekableEnd);this.progressBar.style.width=XN(new Yk(z.seekableStart,K),z.current,0)*100+"%"}; xk.prototype.onStateChange=function(){g.jo(this.api.Z())||(this.api.getPresentingPlayerType()===2?this.S===-1&&(this.show(),this.S=this.Y.subscribe("h",this.C6,this),this.C6()):this.S!==-1&&(this.hide(),this.Y.Or(this.S),this.S=-1))};g.h(FN,Sj); FN.prototype.init=function(z,K,f,M){Sj.prototype.init.call(this,z,K,f);if(K.skipOrPreviewRenderer){if(z=g.A(K.skipOrPreviewRenderer,yk))f=new HP(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,this.Y,this.N),f.hL(this.Px),f.init(ej("skip-button"),z,this.macros),g.d(this,f);if(z=g.A(K.skipOrPreviewRenderer,yk))var p=z.skipOffsetMilliseconds}K.brandInteractionRenderer&&(z=K.brandInteractionRenderer.brandInteractionRenderer,f=new wc(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq), f.hL(this.eV),f.init(ej("instream-user-sentiment"),z,this.macros),g.d(this,f));if(z=g.A(K,qP5))if(z=g.A(z,qP5))f=new e$(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,this.Y,!!K.showWithoutLinkedMediaLayout),g.d(this,f),f.hL(this.W),f.init(ej("flyout-cta"),z,this.macros);M=M&&M.videoAdDurationSeconds;K.adBadgeRenderer&&(f=K.adBadgeRenderer,z=g.A(f,FL),z!=null?(f=new s$(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,!1),g.d(this,f),f.hL(this.S),f.init(ej("ad-badge"), z,this.macros),this.T=f.element):(z=f.simpleAdBadgeRenderer,z==null&&(z={text:{text:"QC",isTemplated:!1}}),f=new qS(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,!0),g.d(this,f),f.hL(this.S),f.init(ej("simple-ad-badge"),z,this.macros)));K.adPodIndex&&(z=g.A(K.adPodIndex,c6o),z!=null&&(f=new AP(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq),g.d(this,f),f.hL(this.S),f.init(ej("ad-pod-index"),z)));K.adDurationRemaining&&!K.showWithoutLinkedMediaLayout&&(z=K.adDurationRemaining.adDurationRemainingRenderer, z==null&&(z={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),M=new JP(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,this.Y,M,!1),g.d(this,M),M.hL(this.S),M.init(ej("ad-duration-remaining"),z,this.macros));K.adInfoRenderer&&(M=g.A(K.adInfoRenderer,Xd))&&(z=new MS(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,this.element,void 0,!1),g.d(this,z),this.T!==null?this.S.insertBefore(z.element,this.T.nextSibling):z.hL(this.S), z.init(ej("ad-info-hover-text-button"),M,this.macros));K.visitAdvertiserRenderer&&(z=g.A(K.visitAdvertiserRenderer,g.Fd))&&(f=wkW(this)&&this.J?this.J:this.S)&&(M=new QD(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq),g.d(this,M),M.hL(f),M.init(ej("visit-advertiser"),z,this.macros),ol(M.element),z=UD(M.element),T$(M.element,z+" This link opens in new tab"));!(M=this.api.Z())||g.si(M)||g.Jw(M)||M.controlsType!="3"&&!M.disableOrganicUi||(p=new xk(this.api,this.Y,p,!1),p.hL(this.vx), g.d(this,p));K.adDisclosureBannerRenderer&&(K=g.A(K.adDisclosureBannerRenderer,dnp))&&(p=new j$(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq),p.hL(this.l_),p.init(ej("ad-disclosure-banner"),K),g.d(this,p));this.api.Z().B("enable_updated_html5_player_focus_style")&&g.ey(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; FN.prototype.clear=function(){this.hide()};ZW.prototype.set=function(z,K,f){f=f!==void 0?Date.now()+f:void 0;this.S.set(z,K,f)}; ZW.prototype.get=function(z){return this.S.get(z)}; ZW.prototype.remove=function(z){this.S.remove(z)};var ycS=null;var z9=null,Kp=null,$5=null,SnI=null;g.ov("yt.www.ads.eventcache.getLastCompanionData",function(){return z9}); g.ov("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.ov("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return Kp}); g.ov("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return $5}); g.ov("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return SnI});var LWS=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);fp.prototype.handleResponse=function(z,K){if(!K)throw Error("request needs to be passed into ConsistencyService");var f,M;K=((f=K.Tc.context)==null?void 0:(M=f.request)==null?void 0:M.consistencyTokenJars)||[];var p;(z=(p=z.responseContext)==null?void 0:p.consistencyTokenJar)&&this.replace(K,z)}; fp.prototype.replace=function(z,K){z=g.a(z);for(var f=z.next();!f.done;f=z.next())delete this.S[f.value.encryptedTokenJarContents];Pa8(this,K)};var CeS=window.location.hostname.split(".").slice(-2).join("."),l9;pp.getInstance=function(){l9=g.CW("yt.clientLocationService.instance");l9||(l9=new pp,g.ov("yt.clientLocationService.instance",l9));return l9}; g.k=pp.prototype; g.k.setLocationOnInnerTubeContext=function(z){z.client||(z.client={});if(this.S)z.client.locationInfo||(z.client.locationInfo={}),z.client.locationInfo.latitudeE7=Math.floor(this.S.coords.latitude*1E7),z.client.locationInfo.longitudeE7=Math.floor(this.S.coords.longitude*1E7),z.client.locationInfo.horizontalAccuracyMeters=Math.round(this.S.coords.accuracy),z.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.T||this.locationPlayabilityToken)z.client.locationPlayabilityToken=this.T|| this.locationPlayabilityToken}; g.k.handleResponse=function(z){var K;z=(K=z.responseContext)==null?void 0:K.locationPlayabilityToken;z!==void 0&&(this.locationPlayabilityToken=z,this.S=void 0,g.zM("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=MP(this))&&this.localStorage.set("yt-location-playability-token",z,15552E3):g.jg("YT_CL",JSON.stringify({loctok:z}),15552E3,CeS,!0))}; g.k.clearLocationPlayabilityToken=function(z){z==="TVHTML5"?(this.localStorage=MP(this))&&this.localStorage.remove("yt-location-playability-token"):g.Xs("YT_CL");this.T=void 0;this.Y!==-1&&(clearTimeout(this.Y),this.Y=-1)}; g.k.getCurrentPositionFromGeolocation=function(){var z=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var K=!1,f=1E4;g.zM("INNERTUBE_CLIENT_NAME")==="MWEB"&&(K=!0,f=15E3);return new Promise(function(M,p){navigator.geolocation.getCurrentPosition(function(t){z.S=t;M(t)},function(t){p(t)},{enableHighAccuracy:K, maximumAge:0,timeout:f})})}; g.k.createUnpluggedLocationInfo=function(z){var K={};z=z.coords;if(z==null?0:z.latitude)K.latitudeE7=Math.floor(z.latitude*1E7);if(z==null?0:z.longitude)K.longitudeE7=Math.floor(z.longitude*1E7);if(z==null?0:z.accuracy)K.locationRadiusMeters=Math.round(z.accuracy);return K}; g.k.createLocationInfo=function(z){var K={};z=z.coords;if(z==null?0:z.latitude)K.latitudeE7=Math.floor(z.latitude*1E7);if(z==null?0:z.longitude)K.longitudeE7=Math.floor(z.longitude*1E7);return K};g.k=lha.prototype;g.k.contains=function(z){return Object.prototype.hasOwnProperty.call(this.S,z)}; g.k.get=function(z){if(this.contains(z))return this.S[z]}; g.k.set=function(z,K){this.S[z]=K}; g.k.Kd=function(){return Object.keys(this.S)}; g.k.remove=function(z){delete this.S[z]};BR.prototype.getModuleId=function(z){return z.serviceId.getModuleId()}; BR.prototype.get=function(z){a:{var K=this.mappings.get(z.toString());switch(K.type){case "mapping":z=K.value;break a;case "factory":K=K.value();this.mappings.set(z.toString(),{type:"mapping",value:K});z=K;break a;default:z=Tl(K)}}return z}; BR.prototype.registerService=function(z,K){this.mappings.set(z.toString(),{type:"mapping",value:K});return z}; new BR;var Vy={},Vsv=(Vy.WEB_UNPLUGGED="^unplugged/",Vy.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Vy.WEB_UNPLUGGED_OPS="^unplugged/",Vy.WEB_UNPLUGGED_PUBLIC="^unplugged/",Vy.WEB_CREATOR="^creator/",Vy.WEB_KIDS="^kids/",Vy.WEB_EXPERIMENTS="^experiments/",Vy.WEB_MUSIC="^music/",Vy.WEB_REMIX="^music/",Vy.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Vy.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Vy);RV.prototype.C=function(z,K,f){K=K===void 0?{}:K;f=f===void 0?kK:f;var M={context:g.tE(z.clickTrackingParams,!1,this.J)};var p=this.Y(z);if(p){this.S(M,p,K);var t;K=g.aV(this.T());(p=(t=g.A(z.commandMetadata,g.SZ))==null?void 0:t.apiUrl)&&(K=p);t=yy8(xB(K));z=Object.assign({},{command:z},void 0);M={input:t,IV:Fs(t),Tc:M,config:z};M.config.Kk?M.config.Kk.identity=f:M.config.Kk={identity:f};return M}f=new g.UT("Error: Failed to create Request from Command.",z);g.sm(f)}; g.B5.Object.defineProperties(RV.prototype,{J:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.h(SX,RV);g.h(uz,SX);uz.prototype.C=function(){return{input:"/getDatasyncIdsEndpoint",IV:Fs("/getDatasyncIdsEndpoint","GET"),Tc:{}}}; uz.prototype.T=function(){return[]}; uz.prototype.Y=function(){}; uz.prototype.S=function(){};var TTZ={},GWo=(TTZ.GET_DATASYNC_IDS=hE(uz),TTZ);var ni={},Ut7=(ni["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",ni["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",ni["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",ni["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",ni["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",ni["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",ni["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", ni["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",ni["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",ni["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",ni["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",ni["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",ni["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",ni["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",ni["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", ni["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",ni["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",ni["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",ni["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",ni["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",ni["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",ni["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", ni["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",ni.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",ni["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",ni["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",ni["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",ni["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",ni["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",ni["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", ni["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",ni["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",ni["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",ni["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",ni["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",ni["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",ni["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",ni["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",ni["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",ni["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",ni.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",ni["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",ni["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",ni["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",ni["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",ni["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",ni["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",ni["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",ni["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",ni["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",ni["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",ni["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",ni["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",ni["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",ni["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",ni["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",ni["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",ni["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",ni["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",ni["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",ni["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",ni["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", ni["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",ni["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",ni["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",ni["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",ni["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",ni["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",ni["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",ni["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",ni["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", ni["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",ni["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",ni["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",ni["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",ni["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",ni["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",ni["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",ni["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", ni),WQ={},cc5=(WQ.auto_search="LATENCY_ACTION_AUTO_SEARCH",WQ.ad_to_ad="LATENCY_ACTION_AD_TO_AD",WQ.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",WQ.app_startup="LATENCY_ACTION_APP_STARTUP",WQ.browse="LATENCY_ACTION_BROWSE",WQ.cast_splash="LATENCY_ACTION_CAST_SPLASH",WQ.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",WQ.channels="LATENCY_ACTION_CHANNELS",WQ.chips="LATENCY_ACTION_CHIPS",WQ.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",WQ.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", WQ.editor="LATENCY_ACTION_EDITOR",WQ.embed="LATENCY_ACTION_EMBED",WQ.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",WQ.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",WQ.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",WQ.explore="LATENCY_ACTION_EXPLORE",WQ.favorites="LATENCY_ACTION_FAVORITES",WQ.home="LATENCY_ACTION_HOME",WQ.inboarding="LATENCY_ACTION_INBOARDING",WQ.landing="LATENCY_ACTION_LANDING",WQ.library="LATENCY_ACTION_LIBRARY",WQ.live= "LATENCY_ACTION_LIVE",WQ.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",WQ.management="LATENCY_ACTION_MANAGEMENT",WQ.mini_app="LATENCY_ACTION_MINI_APP_PLAY",WQ.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",WQ.onboarding="LATENCY_ACTION_ONBOARDING",WQ.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",WQ.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",WQ.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",WQ.player_att="LATENCY_ACTION_PLAYER_ATTESTATION", WQ.prebuffer="LATENCY_ACTION_PREBUFFER",WQ.prefetch="LATENCY_ACTION_PREFETCH",WQ.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",WQ.profile_switcher="LATENCY_ACTION_LOGIN",WQ.projects="LATENCY_ACTION_PROJECTS",WQ.reel_watch="LATENCY_ACTION_REEL_WATCH",WQ.results="LATENCY_ACTION_RESULTS",WQ.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",WQ.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",WQ.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",WQ.review="LATENCY_ACTION_REVIEW",WQ.search_overview_answer= "LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",WQ.search_ui="LATENCY_ACTION_SEARCH_UI",WQ.search_suggest="LATENCY_ACTION_SUGGEST",WQ.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",WQ.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",WQ.seek="LATENCY_ACTION_PLAYER_SEEK",WQ.settings="LATENCY_ACTION_SETTINGS",WQ.store="LATENCY_ACTION_STORE",WQ.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",WQ.tenx="LATENCY_ACTION_TENX",WQ.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",WQ.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD", WQ.watch="LATENCY_ACTION_WATCH",WQ.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",WQ["watch,watch7"]="LATENCY_ACTION_WATCH",WQ["watch,watch7_html5"]="LATENCY_ACTION_WATCH",WQ["watch,watch7ad"]="LATENCY_ACTION_WATCH",WQ["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",WQ.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",WQ.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",WQ.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",WQ.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",WQ.networkless_performance= "LATENCY_ACTION_NETWORKLESS_PERFORMANCE",WQ.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",WQ.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",WQ.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",WQ);Object.assign(cc5,Ut7);g.h(Vx,hc);var UJ8=new as("aft-recorded",Vx);var zTQ=g.ZT.ytLoggingGelSequenceIdObj_||{};g.ov("ytLoggingGelSequenceIdObj_",zTQ);var JE=g.ZT.ytLoggingLatencyUsageStats_||{};g.ov("ytLoggingLatencyUsageStats_",JE);np.prototype.tick=function(z,K,f,M){gl(this,"tick_"+z+"_"+K)||g.Ds("latencyActionTicked",{tickName:z,clientActionNonce:K},{timestamp:f,cttAuthInfo:M})}; np.prototype.info=function(z,K,f){var M=Object.keys(z).join("");gl(this,"info_"+M+"_"+K)||(z=Object.assign({},z),z.clientActionNonce=K,g.Ds("latencyActionInfo",z,{cttAuthInfo:f}))}; np.prototype.jspbInfo=function(z,K,f){for(var M="",p=0;p=p.length?(K.append(p),z-=p.length):z?(K.append(new Uint8Array(p.buffer,p.byteOffset,z)),f.append(new Uint8Array(p.buffer,p.byteOffset+z,p.length-z)),z=0):f.append(p);return{BJ:K,Ve:f}}; PY.prototype.isFocused=function(z){return z>=this.T&&z=64&&(this.W.set(z.subarray(0,64-this.Y),this.Y),K=64-this.Y,this.Y=0,Kxq(this,this.W,0));for(;K+64<=f;K+=64)Kxq(this,z,K);K=this.start&&(z=2&&f.ssdaiAdsConfig&&R3("Unexpected ad placement renderers length",z.slot,null,{length:M.length});var p;((p=f.adSlots)==null?0:p.some(function(t){var B,v;return((B=g.A(t,ZI))==null?void 0:(v=B.adSlotMetadata)==null?void 0:v.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||M.some(function(t){var B,v,I,G; return!!((B=t.renderer)==null?0:(v=B.linearAdSequenceRenderer)==null?0:(I=v.linearAds)==null?0:I.length)||!((G=t.renderer)==null||!G.instreamVideoAdRenderer)})||Eld(z)})}; yU.prototype.CV=function(){vla(this.S)};kR.prototype.cF=function(){var z=this;NMq(this.Y,function(){var K=Dx(z.slot.clientMetadata,"metadata_type_ad_break_request_data");return K.cueProcessedMs?z.S.get().fetch({kL:K.getAdBreakUrl,ST:new g.bS(K.zK,K.EU),cueProcessedMs:K.cueProcessedMs}):z.S.get().fetch({kL:K.getAdBreakUrl,ST:new g.bS(K.zK,K.EU)})})}; kR.prototype.CV=function(){vla(this.Y)};hA.prototype.cF=function(){var z=this.slot.clientMetadata,K,f=(K=this.slot.fulfilledLayout)!=null?K:Dx(z,"metadata_type_fulfilled_layout");j25(this.callback,this.slot,f)}; hA.prototype.CV=function(){qa(this.callback,this.slot,new C("Got CancelSlotFulfilling request for "+this.slot.slotType+" in DirectFulfillmentAdapter.",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_FULFILLMENT_CANCELLATION_REQUEST"),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")};RI.prototype.build=function(z,K){return K.fulfilledLayout||aI(K,{A9:["metadata_type_fulfilled_layout"]})?new hA(z,K):this.T(z,K)};g.h(SN,RI); SN.prototype.T=function(z,K){if(aI(K,{A9:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new yU(z,K,this.S,this.Y,this.ac,this.Ef,this.Gh,this.Uf,this.n6);if(aI(K,{A9:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new kR(z,K,this.S,this.Y,this.ac,this.Ef);throw new C("Unsupported slot with type: "+K.slotType+" and client metadata: "+yc(K.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.h(uS,RI);uS.prototype.T=function(z,K){throw new C("Unsupported slot with type: "+K.slotType+" and client metadata: "+yc(K.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.k=PnT.prototype;g.k.u8=function(){return this.slot}; g.k.gE=function(){return this.layout}; g.k.init=function(){}; g.k.release=function(){}; g.k.startRendering=function(z){if(z.layoutId!==this.layout.layoutId)this.callback.aX(this.slot,z,new ei("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");else{var K=Dx(z.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.Rp(this.slot,z),jUq(this.T, this.slot,K)):R3("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,z)}}; g.k.wO=function(z,K){z.layoutId!==this.layout.layoutId?this.callback.aX(this.slot,z,new ei("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):(this.callback.e3(this.slot,z,K),QTg(this),qaq(this))};g.h(QU,g.Dv);g.k=QU.prototype;g.k.u8=function(){return this.Y.slot}; g.k.gE=function(){return this.Y.layout}; g.k.init=function(){this.T.get().addListener(this)}; g.k.release=function(){this.T.get().removeListener(this);this.dispose()}; g.k.Im=function(){}; g.k.mf=function(){}; g.k.W3=function(){}; g.k.WJ=function(){}; g.k.startRendering=function(z){var K=this;Ht(this.Y,z,function(){return void K.B_()})}; g.k.B_=function(){this.T.get().B_(this.S)}; g.k.wO=function(z,K){var f=this;Ht(this.Y,z,function(){var M=f.T.get();Gbd(M,f.S,3);f.S=[];f.callback.e3(f.slot,z,K)})}; g.k.JL=function(){this.T.CH()||this.T.get().removeListener(this);g.Dv.prototype.JL.call(this)}; g.B5.Object.defineProperties(QU.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.Y.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.Y.layout}}});gE.prototype.ZU=function(z,K){K=K===void 0?!1:K;var f=(this.T.get(z)||[]).concat();if(K=K&&nlT(z)){var M=this.T.get(K);M&&f.push.apply(f,g.P(M))}ct(this,z,f);this.S.add(z);K&&this.S.add(K)}; gE.prototype.fI=function(z,K){K=K===void 0?!1:K;if(!this.S.has(z)){var f=K&&nlT(z);f&&(K=!this.S.has(f));this.ZU(z,K)}};g.h(glg,wM);g.h(XJ,QU);g.k=XJ.prototype;g.k.J_=function(z,K){VU("ads-engagement-panel-layout",z,this.W.get().Sk,this.Gh.get(),this.J,this.C,this.u8(),this.gE(),K)}; g.k.startRendering=function(z){m7(this.Mc,this.u8(),this.gE(),g.A(this.gE().renderingContent,DI),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(K,f,M,p,t){return new glg(K,f,M,p,t)},this.S); QU.prototype.startRendering.call(this,z)}; g.k.Rp=function(z,K){this.C===K.layoutId&&(this.J===null?this.J=this.Gh.get().qZ():R3("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.k.e3=function(){}; g.k.DX=function(){}; g.k.cj=function(){}; g.k.eF=function(){}; g.k.WA=function(){}; g.k.mV=function(){}; g.k.x3=function(){}; g.k.hJ=function(){}; g.k.R5=function(){}; g.k.zH=function(){}; g.k.iW=function(){}; g.k.JL=function(){Hd(this.Yb(),this);QU.prototype.JL.call(this)};g.h(dbS,wM);g.h(xR,QU);g.k=xR.prototype;g.k.J_=function(z,K){VU("banner-image",z,this.W.get().Sk,this.Gh.get(),this.J,this.C,this.u8(),this.gE(),K)}; g.k.startRendering=function(z){m7(this.Mc,this.u8(),this.gE(),g.A(this.gE().renderingContent,ee),this.callback,"metadata_type_banner_image_layout_view_model",function(K,f,M,p,t){return new dbS(K,f,M,p,t)},this.S); QU.prototype.startRendering.call(this,z)}; g.k.Rp=function(z,K){this.C===K.layoutId&&(this.J===null?this.J=this.Gh.get().qZ():R3("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.k.e3=function(){}; g.k.DX=function(){}; g.k.cj=function(){}; g.k.eF=function(){}; g.k.WA=function(){}; g.k.mV=function(){}; g.k.x3=function(){}; g.k.hJ=function(){}; g.k.R5=function(){}; g.k.zH=function(){}; g.k.iW=function(){}; g.k.JL=function(){Hd(this.Yb(),this);QU.prototype.JL.call(this)};g.h(FJ,wM);g.h(O4,QU);g.k=O4.prototype;g.k.J_=function(z,K){VU("action-companion",z,this.W.get().Sk,this.Gh.get(),this.J,this.C,this.u8(),this.gE(),K)}; g.k.startRendering=function(z){m7(this.Mc,this.u8(),this.gE(),g.A(this.gE().renderingContent,Ix),this.callback,"metadata_type_action_companion_ad_renderer",function(K,f,M,p,t){return new FJ(K,f,M,p,t)},this.S); QU.prototype.startRendering.call(this,z)}; g.k.Rp=function(z,K){K.layoutId===this.layout.layoutId?this.Mc.fI("impression"):this.C===K.layoutId&&(this.J===null?this.J=this.Gh.get().qZ():R3("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.k.e3=function(){}; g.k.DX=function(){}; g.k.cj=function(){}; g.k.eF=function(){}; g.k.WA=function(){}; g.k.mV=function(){}; g.k.x3=function(){}; g.k.hJ=function(){}; g.k.R5=function(){}; g.k.zH=function(){}; g.k.iW=function(){}; g.k.JL=function(){Hd(this.Yb(),this);QU.prototype.JL.call(this)};g.h(Atp,wM);g.h(rE,QU);g.k=rE.prototype;g.k.J_=function(z,K){VU("image-companion",z,this.W.get().Sk,this.Gh.get(),this.J,this.C,this.u8(),this.gE(),K)}; g.k.startRendering=function(z){m7(this.Mc,this.u8(),this.gE(),g.A(this.gE().renderingContent,Gc),this.callback,"metadata_type_image_companion_ad_renderer",function(K,f,M,p,t){return new Atp(K,f,M,p,t)},this.S); QU.prototype.startRendering.call(this,z)}; g.k.Rp=function(z,K){K.layoutId===this.layout.layoutId?this.Mc.fI("impression"):this.C===K.layoutId&&(this.J===null?this.J=this.Gh.get().qZ():R3("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.k.e3=function(){}; g.k.DX=function(){}; g.k.cj=function(){}; g.k.eF=function(){}; g.k.WA=function(){}; g.k.mV=function(){}; g.k.x3=function(){}; g.k.hJ=function(){}; g.k.R5=function(){}; g.k.zH=function(){}; g.k.iW=function(){}; g.k.JL=function(){Hd(this.Yb(),this);QU.prototype.JL.call(this)};g.h(Yaq,wM);g.h(ZU,QU);g.k=ZU.prototype;g.k.J_=function(z,K){VU("shopping-companion",z,this.W.get().Sk,this.Gh.get(),this.J,this.C,this.u8(),this.gE(),K)}; g.k.startRendering=function(z){m7(this.Mc,this.u8(),this.gE(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(K,f,M,p,t){return new Yaq(K,f,M,p,t)},this.S); QU.prototype.startRendering.call(this,z)}; g.k.Rp=function(z,K){K.layoutId===this.layout.layoutId?this.Mc.fI("impression"):this.C===K.layoutId&&(this.J===null?this.J=this.Gh.get().qZ():R3("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.k.e3=function(){}; g.k.DX=function(){}; g.k.cj=function(){}; g.k.eF=function(){}; g.k.WA=function(){}; g.k.mV=function(){}; g.k.x3=function(){}; g.k.hJ=function(){}; g.k.R5=function(){}; g.k.zH=function(){}; g.k.iW=function(){}; g.k.JL=function(){Hd(this.Yb(),this);QU.prototype.JL.call(this)};g.h(C6,QU);g.k=C6.prototype;g.k.startRendering=function(z){m7(this.Mc,this.u8(),this.gE(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(K,f,M,p,t){return new FJ(K,f,M,p,t)},this.S); QU.prototype.startRendering.call(this,z)}; g.k.Rp=function(){}; g.k.e3=function(){}; g.k.DX=function(){}; g.k.cj=function(){}; g.k.eF=function(){}; g.k.WA=function(){}; g.k.mV=function(){}; g.k.x3=function(){}; g.k.hJ=function(){}; g.k.R5=function(){}; g.k.zH=function(){}; g.k.iW=function(){}; g.k.JL=function(){Hd(this.Yb(),this);QU.prototype.JL.call(this)}; g.k.J_=function(){};g.k=Zca.prototype;g.k.u8=function(){return this.slot}; g.k.gE=function(){return this.layout}; g.k.init=function(){this.Uf.get().addListener(this);this.Uf.get().r9.push(this);var z=Dx(this.layout.clientMetadata,"metadata_type_video_length_seconds"),K=Dx(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");n6(this.layout.qB)&&f7(this.E3.get(),this.layout.layoutId,{bO:K,s5:z,listener:this})}; g.k.release=function(){this.Uf.get().removeListener(this);pyW(this.Uf.get(),this);n6(this.layout.qB)&&MH(this.E3.get(),this.layout.layoutId)}; g.k.startRendering=function(z){this.callback.Rp(this.slot,z)}; g.k.wO=function(z,K){mUu(this.Ef.get())&&!this.S&&(this.Mc.fI("abandon"),this.S=!0);this.callback.e3(this.slot,z,K)}; g.k.If=function(z){switch(z.id){case "part2viewed":this.Mc.fI("start");this.Mc.fI("impression");break;case "videoplaytime25":this.Mc.fI("first_quartile");break;case "videoplaytime50":this.Mc.fI("midpoint");break;case "videoplaytime75":this.Mc.fI("third_quartile");break;case "videoplaytime100":mUu(this.Ef.get())?this.S||(this.Mc.fI("complete"),this.S=!0):this.Mc.fI("complete");YR(this.Mc)&&AA(this.Mc,Infinity,!0);laS(this.Ef.get())&&oI(this.Y,Infinity,!0);break;case "engagedview":YR(this.Mc)||this.Mc.fI("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:R3("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.k.onVolumeChange=function(){}; g.k.bj=function(){}; g.k.Hj=function(){}; g.k.GN=function(){}; g.k.onFullscreenToggled=function(){}; g.k.Fo=function(){}; g.k.P7=function(){}; g.k.RS=function(z){laS(this.Ef.get())&&oI(this.Y,z*1E3,!1);YR(this.Mc)&&AA(this.Mc,z*1E3,!1)}; g.k.KW=function(){}; g.k.jN=function(){this.Mc.fI("active_view_measurable")}; g.k.Hd=function(){this.Mc.fI("active_view_viewable")}; g.k.p9=function(){this.Mc.fI("active_view_fully_viewable_audible_half_duration")}; g.k.n9=function(){this.Mc.fI("audio_measurable")}; g.k.zr=function(){this.Mc.fI("audio_audible")};g.h(Tw,QU);g.k=Tw.prototype;g.k.init=function(){QU.prototype.init.call(this);var z=Dx(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),K={adsClientData:this.layout.GP};this.S.push(new mc(z,this.layout.layoutId,Dx(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),K,!0))}; g.k.xe=function(){this.J||this.Uf.get().resumeVideo(1)}; g.k.startRendering=function(z){QU.prototype.startRendering.call(this,z);GZ(this.Uf.get(),"ad-showing");this.callback.Rp(this.slot,z);this.C.kQ=this}; g.k.wO=function(z,K){QU.prototype.wO.call(this,z,K);by(this.Uf.get(),"ad-showing");oh(this.C,this)}; g.k.J_=function(z){switch(z){case "ad-info-icon-button":(this.J=this.Uf.get().Ld(1))||this.Uf.get().pauseVideo();break;case "visit-advertiser":this.Uf.get().pauseVideo()}}; g.k.JL=function(){QU.prototype.JL.call(this)};g.h(U4,wM);g.h(z5,QU);g.k=z5.prototype;g.k.startRendering=function(z){m7(this.Mc,this.u8(),this.gE(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(K,f,M,p,t){return new U4(K,f,M,p,t)},this.S); QU.prototype.startRendering.call(this,z)}; g.k.Rp=function(){}; g.k.e3=function(){}; g.k.DX=function(){}; g.k.cj=function(){}; g.k.eF=function(){}; g.k.WA=function(){}; g.k.mV=function(){}; g.k.x3=function(){}; g.k.hJ=function(){}; g.k.R5=function(){}; g.k.zH=function(){}; g.k.iW=function(){}; g.k.JL=function(){Hd(this.Yb(),this);QU.prototype.JL.call(this)}; g.k.J_=function(){};g.h(Kn,wM);g.h($I,QU);$I.prototype.init=function(){QU.prototype.init.call(this);this.S.push(new Kn(g.A(this.layout.renderingContent,db),this.layout.layoutId,{adsClientData:this.layout.GP}))}; $I.prototype.J_=function(){sl(this.J.get(),this.C)&&lS(this.Gh.get(),3)}; $I.prototype.startRendering=function(z){QU.prototype.startRendering.call(this,z);this.callback.Rp(this.slot,z)}; $I.prototype.JL=function(){QU.prototype.JL.call(this)};g.h(fn,wM);g.h(MT,QU);MT.prototype.init=function(){QU.prototype.init.call(this);var z=g.A(this.layout.renderingContent,kI)||Dx(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),K=qI(this.Mc);this.S.push(new fn(z,K,this.layout.layoutId,{adsClientData:this.layout.GP},!0,!0))}; MT.prototype.startRendering=function(z){QU.prototype.startRendering.call(this,z);this.callback.Rp(this.slot,z)}; MT.prototype.J_=function(z,K){if(K===this.layout.layoutId)switch(z){case "skip-button":var f;(z=(f=Dx(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:f.current)&&z.zZ(this.u8(),this.layout)}}; MT.prototype.JL=function(){QU.prototype.JL.call(this)};tq.prototype.build=function(z,K,f,M){if(pn(M,{A9:["metadata_type_ad_break_response_data"],sW:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new PnT(z,f,M,this.Y,this.T,this.S);throw new ei("Unsupported layout with type: "+M.layoutType+" and client metadata: "+yc(M.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.h(TMv,wM);g.h(Bf,QU);g.k=Bf.prototype;g.k.J_=function(z,K){VU("ads-engagement-panel",z,this.W.get().Sk,this.Gh.get(),this.J,this.C,this.u8(),this.gE(),K)}; g.k.startRendering=function(z){m7(this.Mc,this.u8(),this.gE(),g.A(this.gE().renderingContent,bJ),this.callback,"metadata_type_ads_engagement_panel_renderer",function(K,f,M,p,t){return new TMv(K,f,M,p,t)},this.S); QU.prototype.startRendering.call(this,z)}; g.k.Rp=function(z,K){K.layoutId===this.layout.layoutId?this.Mc.fI("impression"):this.C===K.layoutId&&(this.J===null?this.J=this.Gh.get().qZ():R3("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.k.e3=function(){}; g.k.DX=function(){}; g.k.cj=function(){}; g.k.eF=function(){}; g.k.WA=function(){}; g.k.mV=function(){}; g.k.x3=function(){}; g.k.hJ=function(){}; g.k.R5=function(){}; g.k.zH=function(){}; g.k.iW=function(){}; g.k.JL=function(){Hd(this.Yb(),this);QU.prototype.JL.call(this)};g.h(NT,QU);g.k=NT.prototype;g.k.J_=function(z,K){VU("top-banner-image-text-icon-buttoned",z,this.W.get().Sk,this.Gh.get(),this.J,this.C,this.u8(),this.gE(),K)}; g.k.startRendering=function(z){m7(this.Mc,this.u8(),this.gE(),g.A(this.gE().renderingContent,wb),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(K,f,M,p,t){return new U4(K,f,M,p,t)},this.S); QU.prototype.startRendering.call(this,z)}; g.k.Rp=function(z,K){this.C===K.layoutId&&(this.J===null?this.J=this.Gh.get().qZ():R3("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.k.e3=function(){}; g.k.DX=function(){}; g.k.cj=function(){}; g.k.eF=function(){}; g.k.WA=function(){}; g.k.mV=function(){}; g.k.x3=function(){}; g.k.hJ=function(){}; g.k.R5=function(){}; g.k.zH=function(){}; g.k.iW=function(){}; g.k.JL=function(){Hd(this.Yb(),this);QU.prototype.JL.call(this)};Kcg.prototype.build=function(z,K,f,M){if(pn(M,UbS())||g.A(M.renderingContent,bJ)!==void 0)return new Bf(z,f,M,this.qv,this.Gh,this.Yb,this.E3,this.S);if(pn(M,sTo())||g.A(M.renderingContent,Ix)!==void 0)return new O4(z,f,M,this.qv,this.Gh,this.Yb,this.E3,this.S);if(pn(M,jTS())||g.A(M.renderingContent,Gc)!==void 0)return new rE(z,f,M,this.qv,this.Gh,this.Yb,this.E3,this.S);if(pn(M,XWI()))return new ZU(z,f,M,this.qv,this.Gh,this.Yb,this.E3,this.S);if(pn(M,rtq()))return new C6(z,f,M,this.qv,this.Gh,this.Yb, this.E3,this.S);if(pn(M,ct5())||g.A(M.renderingContent,ee)!==void 0)return new xR(z,f,M,this.qv,this.Gh,this.Yb,this.E3,this.S);if(pn(M,zvS())||g.A(M.renderingContent,wb)!==void 0)return new NT(z,f,M,this.qv,this.Gh,this.Yb,this.E3,this.S);if(pn(M,olu()))return new z5(z,f,M,this.qv,this.Gh,this.Yb,this.E3,this.S);if(pn(M,ica())||g.A(M.renderingContent,DI)!==void 0)return new XJ(z,f,M,this.qv,this.Gh,this.Yb,this.E3,this.S);throw new ei("Unsupported layout with type: "+M.layoutType+" and client metadata: "+ yc(M.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};$Sv.prototype.build=function(z,K,f,M){if(pn(M,{A9:["metadata_type_linked_player_bytes_layout_id"],sW:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new $I(z,f,M,this.qv,this.Gh,this.S);throw new ei("Unsupported layout with type: "+M.layoutType+" and client metadata: "+yc(M.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.k=fWp.prototype;g.k.u8=function(){return this.slot}; g.k.gE=function(){return this.layout}; g.k.init=function(){}; g.k.release=function(){}; g.k.startRendering=function(z){z.layoutId!==this.layout.layoutId?this.callback.aX(this.slot,z,new ei("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.callback.Rp(this.slot,z),this.Mc.fI("impression"),$q(this.Kb,z,"normal"))}; g.k.wO=function(z,K){z.layoutId!==this.layout.layoutId?this.callback.aX(this.slot,z,new ei("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.e3(this.slot,z,K)};g.k=pPI.prototype;g.k.u8=function(){return this.slot}; g.k.gE=function(){return this.layout}; g.k.init=function(){}; g.k.release=function(){}; g.k.startRendering=function(z){z.layoutId!==this.layout.layoutId?this.callback.aX(this.slot,z,new ei("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.callback.Rp(this.slot,z),this.Mc.fI("impression"),$q(this.Kb,z,"normal"))}; g.k.wO=function(z,K){z.layoutId!==this.layout.layoutId?this.callback.aX(this.slot,z,new ei("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.e3(this.slot,z,K)};vf.prototype.build=function(z,K,f,M){if(!this.Ef.get().U.Z().B("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(pn(M,M$5()))return new fWp(z,f,M,this.Gh,this.Kb)}else if(pn(M,{A9:[],sW:["LAYOUT_TYPE_FORECASTING"]}))return new pPI(z,f,M,this.Gh,this.Kb);throw new ei("Unsupported layout with type: "+M.layoutType+" and client metadata: "+yc(M.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.h(Ncp,wM);g.h(IA,QU);g.k=IA.prototype;g.k.init=function(){QU.prototype.init.call(this);var z=g.A(this.layout.renderingContent,yR)||Dx(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),K={adsClientData:this.layout.GP};this.S.push(new Ncp(z,Dx(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,K))}; g.k.xe=function(){this.J||this.Uf.get().resumeVideo(2)}; g.k.startRendering=function(z){QU.prototype.startRendering.call(this,z);this.callback.Rp(this.slot,z);this.C.kQ=this}; g.k.wO=function(z,K){QU.prototype.wO.call(this,z,K);oh(this.C,this)}; g.k.J_=function(z,K){if(!MI(this.Ef.get(),"stop_handling_click_for_non_rendering_overlay_layout")||K===this.layout.layoutId){if(sl(this.W.get(),this.G))switch(z){case "visit-advertiser-link":lS(this.Gh.get(),3)}switch(z){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.J||this.Uf.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.J=this.Uf.get().Ld(2))||this.Uf.get().pauseVideo();break; case "visit-advertiser-link":this.Uf.get().pauseVideo();vku(this).s$();break;case "skip-button":if(z=vku(this),this.layout.renderingContent&&!If(this.layout.clientMetadata,"metadata_type_dai")||!z.VQ){var f;(z=(f=Dx(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:f.current)&&z.zZ(this.u8(),this.layout)}else R3("Requesting to skip by LegacyPlayerBytes when components enabled"),z.mL(this.u8(),this.layout)}}}; g.k.JL=function(){QU.prototype.JL.call(this)};g.h(G5,QU);g.k=G5.prototype;g.k.init=function(){QU.prototype.init.call(this);var z=g.A(this.layout.renderingContent,D8)||Dx(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),K={adsClientData:this.layout.GP},f;(f=!!this.layout.renderingContent)||(f=!bB(this).VQ);this.S.push(new mc(z,this.layout.layoutId,Dx(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),K,f))}; g.k.xe=function(){this.J||this.Uf.get().resumeVideo(2)}; g.k.startRendering=function(z){QU.prototype.startRendering.call(this,z);this.callback.Rp(this.slot,z);this.C.kQ=this}; g.k.wO=function(z,K){QU.prototype.wO.call(this,z,K);oh(this.C,this)}; g.k.J_=function(z,K){if(!this.Ef||!MI(this.Ef.get(),"stop_handling_click_for_non_rendering_overlay_layout")||K===this.layout.layoutId){if(sl(this.W.get(),this.G))switch(z){case "visit-advertiser":lS(this.Gh.get(),3)}switch(z){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.J||this.Uf.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.J=this.Uf.get().Ld(2))||this.Uf.get().pauseVideo();break; case "visit-advertiser":this.Uf.get().pauseVideo();bB(this).s$();break;case "skip-button":if(z=bB(this),this.layout.renderingContent&&!If(this.layout.clientMetadata,"metadata_type_dai")||!z.VQ){var f;(z=(f=Dx(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:f.current)&&z.zZ(this.u8(),this.layout)}else R3("Requesting to skip by LegacyPlayerBytes"),z.mL(this.u8(),this.layout)}}}; g.k.JL=function(){QU.prototype.JL.call(this)};g.h(Gsq,wM);g.h(ea,QU);g.k=ea.prototype;g.k.startRendering=function(z){var K=this;Ht(this.Y,z,function(){K.S.push(new Gsq(Dx(K.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),z.layoutId,z.GP));K.B_();K.callback.Rp(K.slot,z);g.Z($X(K.Uf.get(),1),512)&&K.callback.aX(K.u8(),K.gE(),new ei("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.k.P7=function(){}; g.k.Fo=function(z){if(z.state.isError()){var K;this.callback.aX(this.u8(),this.gE(),new ei("A player error happened during adNotify",{playerErrorCode:(K=z.state.Pj)==null?void 0:K.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.k.onFullscreenToggled=function(){}; g.k.Hj=function(){}; g.k.GN=function(){}; g.k.bj=function(){}; g.k.onVolumeChange=function(){}; g.k.If=function(){}; g.k.KW=function(){}; g.k.J_=function(){};g.h(evW,wM);g.h(wI,QU);wI.prototype.init=function(){QU.prototype.init.call(this);var z=g.A(this.layout.renderingContent,hq),K=qI(this.Mc);this.S.push(new evW(z,K,this.layout.layoutId,{adsClientData:this.layout.GP}))}; wI.prototype.startRendering=function(z){QU.prototype.startRendering.call(this,z);this.callback.Rp(this.slot,z)}; wI.prototype.J_=function(z,K){if(K===this.layout.layoutId)switch(z){case "skip-button":var f;(z=(f=Dx(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:f.current)&&z.zZ(this.u8(),this.layout)}}; wI.prototype.JL=function(){QU.prototype.JL.call(this)};wPT.prototype.build=function(z,K,f,M){if(z=aA(z,f,M,this.qv,this.Uf,this.Gh,this.Y,this.S,this.Ef))return z;throw new ei("Unsupported layout with type: "+M.layoutType+" and client metadata: "+yc(M.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.k=uB.prototype;g.k.u8=function(){return this.slot}; g.k.gE=function(){return this.layout}; g.k.init=function(){this.Uf.get().addListener(this);this.Uf.get().r9.push(this);if(this.layout.renderingContent){var z=this.i_.get();z=QW(z,1).Mo/1E3}else z=Dx(this.layout.clientMetadata,"metadata_type_video_length_seconds");var K=g.A(this.layout.renderingContent,Jv),f=K?Wt(K.pings):Dx(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");K=K?VjW(K.pings):Dx(this.layout.clientMetadata,"metadata_type_active_view_identifier");n6(this.layout.qB)&&f7(this.E3.get(),this.layout.layoutId, {bO:f,s5:z,listener:this,NE:K})}; g.k.release=function(){this.Uf.get().removeListener(this);pyW(this.Uf.get(),this);n6(this.layout.qB)&&MH(this.E3.get(),this.layout.layoutId)}; g.k.startRendering=function(z){this.callback.Rp(this.slot,z)}; g.k.wO=function(z,K){Ln(this,"abandon");this.callback.e3(this.slot,z,K)}; g.k.If=function(z){switch(z.id){case "part2viewed":this.Mc.fI("start");this.Mc.fI("impression");break;case "videoplaytime25":this.Mc.fI("first_quartile");break;case "videoplaytime50":this.Mc.fI("midpoint");break;case "videoplaytime75":this.Mc.fI("third_quartile");break;case "videoplaytime100":Ln(this,"complete");YR(this.Mc)&&AA(this.Mc,Infinity,!0);break;case "engagedview":YR(this.Mc)||this.Mc.fI("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:R3("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.k.onVolumeChange=function(){}; g.k.bj=function(){}; g.k.Hj=function(){}; g.k.GN=function(){}; g.k.onFullscreenToggled=function(){}; g.k.Fo=function(z){this.S||(g.Ld(z,4)&&!g.Ld(z,2)?s4(this.Mc,"pause"):us(z,4)<0&&!(us(z,2)<0)&&s4(this.Mc,"resume"))}; g.k.P7=function(){}; g.k.RS=function(z){YR(this.Mc)&&AA(this.Mc,z*1E3,!1)}; g.k.KW=function(){Ln(this,"swipe")}; g.k.jN=function(){this.Mc.fI("active_view_measurable")}; g.k.Hd=function(){this.Mc.fI("active_view_viewable")}; g.k.p9=function(){this.Mc.fI("active_view_fully_viewable_audible_half_duration")}; g.k.n9=function(){this.Mc.fI("audio_measurable")}; g.k.zr=function(){this.Mc.fI("audio_audible")};DS8.prototype.build=function(z,K,f,M){if(f.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.A(M.renderingContent,Jv)!==void 0)return new uB(z,f,M,this.Uf,this.Gh,this.Ef,this.E3,this.i_);K=["metadata_type_ad_placement_config"];for(var p=g.a(iS()),t=p.next();!t.done;t=p.next())K.push(t.value);if(pn(M,{A9:K,sW:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return f.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new uB(z,f,M,this.Uf,this.Gh,this.Ef,this.E3,this.i_):new Zca(z,f,M,this.Uf,this.Gh, this.v1,this.Ef,this.E3);throw new ei("Unsupported layout with type: "+M.layoutType+" and client metadata: "+yc(M.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var QR={contentCpn:"",QP:new Map};Psp.prototype.Nc=function(z,K){var f={};K=Object.assign({},K,(f.cc=this.Sv.nJ(),f));this.Sv.U.Th(z,K)};var hTp,cQ; hTp={k8c:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",p71:"AUTHENTICATION_MALFORMED",dMH:"AUTHENTICATION_MISSING",eG_:"BAD_REQUEST",IDc:"CAST_SESSION_DEVICE_MISMATCHED",Cj1:"CAST_SESSION_VIDEO_MISMATCHED",BSq:"CAST_TOKEN_EXPIRED",GmE:"CAST_TOKEN_FAILED",PjV:"CAST_TOKEN_MALFORMED",KRa:"CGI_PARAMS_MALFORMED",ibV:"CGI_PARAMS_MISSING",AeH:"DEVICE_FALLBACK",B2E:"GENERIC_WITH_LINK_AND_CPN",GNc:"ERROR_HDCP",P9V:"LICENSE",iWe:"VIDEO_UNAVAILABLE",fhx:"FORMAT_UNAVAILABLE",Mkd:"GEO_FAILURE", T8c:"HTML5_AUDIO_RENDERER_ERROR",q8a:"GENERIC_WITHOUT_LINK",JUd:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Egh:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",zkV:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",ngc:"HTML5_SPS_UMP_STATUS_REJECTED",Woc:"INVALID_DRM_MESSAGE",qmE:"PURCHASE_NOT_FOUND",J0a:"PURCHASE_REFUNDED",HY_:"RENTAL_EXPIRED",m2c:"RETRYABLE_ERROR",iYx:"SERVER_ERROR",V1V:"SIGNATURE_EXPIRED",t1V:"STOPPED_BY_ANOTHER_PLAYBACK",wEd:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",Rs_:"STREAMING_NOT_ALLOWED", N_c:"STREAM_LICENSE_NOT_FOUND",TKf:"TOO_MANY_REQUESTS",qPc:"TOO_MANY_REQUESTS_WITH_LINK",Jrf:"TOO_MANY_STREAMS_PER_ENTITLEMENT",EIf:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",XVq:"VIDEO_FORBIDDEN",Dta:"VIDEO_NOT_FOUND",WR_:"BROWSER_OR_EXTENSION_ERROR"};cQ={}; g.Xa=(cQ.ALREADY_PINNED_ON_A_DEVICE="Video n\u00e0y \u0111\u00e3 \u0111\u01b0\u1ee3c t\u1ea3i xu\u1ed1ng s\u1ed1 thi\u1ebft b\u1ecb t\u1ed1i \u0111a m\u00e0 ch\u1ee7 b\u1ea3n quy\u1ec1n cho ph\u00e9p. B\u1ea1n c\u1ea7n b\u1ecf ghim video n\u00e0y tr\u00ean m\u1ed9t thi\u1ebft b\u1ecb kh\u00e1c th\u00ec m\u1edbi c\u00f3 th\u1ec3 ph\u00e1t video n\u00e0y t\u1ea1i \u0111\u00e2y.",cQ.DEVICE_FALLBACK="R\u1ea5t ti\u1ebfc, video n\u00e0y kh\u00f4ng kh\u1ea3 d\u1ee5ng tr\u00ean thi\u1ebft b\u1ecb n\u00e0y.", cQ.GENERIC_WITH_LINK_AND_CPN="\u0110\u00e3 x\u1ea3y ra l\u1ed7i. Vui l\u00f2ng th\u1eed l\u1ea1i sau. (M\u00e3 l\u01b0\u1ee3t ph\u00e1t: $CPN) $BEGIN_LINKT\u00ecm hi\u1ec3u th\u00eam$END_LINK",cQ.LICENSE="R\u1ea5t ti\u1ebfc, \u0111\u00e3 x\u1ea3y ra l\u1ed7i khi c\u1ea5p ph\u00e9p video n\u00e0y.",cQ.VIDEO_UNAVAILABLE="Video kh\u00f4ng c\u00f3 s\u1eb5n",cQ.FORMAT_UNAVAILABLE="Video n\u00e0y hi\u1ec7n kh\u00f4ng ho\u1ea1t \u0111\u1ed9ng \u1edf ch\u1ea5t l\u01b0\u1ee3ng \u0111\u00e3 ch\u1ecdn. Vui l\u00f2ng th\u1eed l\u1ea1i sau.", cQ.GEO_FAILURE="Video n\u00e0y kh\u00f4ng kh\u1ea3 d\u1ee5ng \u1edf qu\u1ed1c gia c\u1ee7a b\u1ea1n.",cQ.HTML5_AUDIO_RENDERER_ERROR="L\u1ed7i t\u00e1i t\u1ea1o \u00e2m thanh. Vui l\u00f2ng kh\u1edfi \u0111\u1ed9ng l\u1ea1i m\u00e1y t\u00ednh c\u1ee7a b\u1ea1n.",cQ.GENERIC_WITHOUT_LINK="\u0110\u00e3 x\u1ea3y ra l\u1ed7i. Vui l\u00f2ng th\u1eed l\u1ea1i sau.",cQ.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="\u0110\u1ecbnh d\u1ea1ng video n\u00e0y kh\u00f4ng \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3.",cQ.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK= "Tr\u00ecnh duy\u1ec7t c\u1ee7a b\u1ea1n hi\u1ec7n kh\u00f4ng nh\u1eadn ra b\u1ea5t k\u1ef3 \u0111\u1ecbnh d\u1ea1ng video kh\u1ea3 d\u1ee5ng n\u00e0o. $BEGIN_LINKNh\u1ea5p v\u00e0o \u0111\u00e2y \u0111\u1ec3 truy c\u1eadp c\u00e1c c\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p c\u1ee7a ch\u00fang t\u00f4i v\u1ec1 video HTML5.$END_LINK",cQ.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Tr\u00ecnh duy\u1ec7t c\u1ee7a b\u1ea1n kh\u00f4ng th\u1ec3 ph\u00e1t video n\u00e0y. $BEGIN_LINKT\u00ecm hi\u1ec3u th\u00eam$END_LINK", cQ.HTML5_SPS_UMP_STATUS_REJECTED="\u0110\u00e3 x\u1ea3y ra l\u1ed7i. H\u00e3y l\u00e0m m\u1edbi ho\u1eb7c th\u1eed l\u1ea1i sau. $BEGIN_LINKT\u00ecm hi\u1ec3u th\u00eam$END_LINK",cQ.INVALID_DRM_MESSAGE="Th\u00f4ng b\u00e1o ri\u00eang c\u1ee7a h\u1ec7 th\u1ed1ng DRM kh\u00f4ng h\u1ee3p l\u1ec7.",cQ.PURCHASE_NOT_FOUND="Video n\u00e0y y\u00eau c\u1ea7u thanh to\u00e1n.",cQ.PURCHASE_REFUNDED="Giao d\u1ecbch mua video n\u00e0y \u0111\u00e3 \u0111\u01b0\u1ee3c ho\u00e0n l\u1ea1i ti\u1ec1n.",cQ.RENTAL_EXPIRED= "Th\u1eddi gian thu\u00ea video n\u00e0y \u0111\u00e3 h\u1ebft h\u1ea1n.",cQ.CAST_SESSION_DEVICE_MISMATCHED="Thi\u1ebft b\u1ecb trong Phi\u00ean truy\u1ec1n kh\u00f4ng kh\u1edbp v\u1edbi thi\u1ebft b\u1ecb \u0111\u01b0\u1ee3c y\u00eau c\u1ea7u.",cQ.CAST_SESSION_VIDEO_MISMATCHED="Video trong Phi\u00ean truy\u1ec1n kh\u00f4ng kh\u1edbp v\u1edbi video \u0111\u01b0\u1ee3c y\u00eau c\u1ea7u.",cQ.CAST_TOKEN_FAILED="Phi\u00ean truy\u1ec1n kh\u00f4ng kh\u1ea3 d\u1ee5ng. H\u00e3y l\u00e0m m\u1edbi ho\u1eb7c th\u1eed l\u1ea1i sau.", cQ.CAST_TOKEN_EXPIRED="Phi\u00ean truy\u1ec1n \u0111\u00e3 h\u1ebft h\u1ea1n. H\u00e3y l\u00e0m m\u1edbi.",cQ.CAST_TOKEN_MALFORMED="Phi\u00ean truy\u1ec1n kh\u00f4ng h\u1ee3p l\u1ec7. H\u00e3y l\u00e0m m\u1edbi ho\u1eb7c th\u1eed l\u1ea1i sau.",cQ.SERVER_ERROR="\u0110\u00e3 x\u1ea3y ra l\u1ed7i m\u00e1y ch\u1ee7 n\u1ed9i b\u1ed9. Vui l\u00f2ng th\u1eed l\u1ea1i sau.",cQ.STOPPED_BY_ANOTHER_PLAYBACK="T\u00e0i kho\u1ea3n c\u1ee7a b\u1ea1n \u0111ang ph\u00e1t video n\u00e0y \u1edf m\u1ed9t v\u1ecb tr\u00ed kh\u00e1c. H\u00e3y t\u1ea3i l\u1ea1i trang n\u00e0y \u0111\u1ec3 ti\u1ebfp t\u1ee5c xem.", cQ.STREAM_LICENSE_NOT_FOUND="Ph\u00e1t l\u1ea1i video b\u1ecb gi\u00e1n \u0111o\u1ea1n. Vui l\u00f2ng th\u1eed l\u1ea1i.",cQ.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="B\u1ea1n \u0111\u00e3 s\u1eed d\u1ee5ng qu\u00e1 nhi\u1ec1u thi\u1ebft b\u1ecb/\u0111\u1ecba ch\u1ec9 IP trong kho\u1ea3ng th\u1eddi gian 24 gi\u1edd.",cQ.STREAMING_NOT_ALLOWED="Kh\u00f4ng \u0111\u01b0\u1ee3c ph\u00e9p ph\u00e1t l\u1ea1i v\u00ec video n\u00e0y \u0111\u00e3 \u0111\u01b0\u1ee3c ghim tr\u00ean m\u1ed9t thi\u1ebft b\u1ecb kh\u00e1c.", cQ.RETRYABLE_ERROR="\u0110\u00e3 x\u1ea3y ra l\u1ed7i m\u00e1y ch\u1ee7 t\u1ea1m th\u1eddi. Vui l\u00f2ng th\u1eed l\u1ea1i sau.",cQ.TOO_MANY_REQUESTS="Vui l\u00f2ng \u0111\u0103ng nh\u1eadp \u0111\u1ec3 xem video n\u00e0y.",cQ.TOO_MANY_REQUESTS_WITH_LINK="Vui l\u00f2ng $BEGIN_LINKnh\u1ea5p v\u00e0o \u0111\u00e2y$END_LINK \u0111\u1ec3 xem video n\u00e0y tr\u00ean YouTube.",cQ.TOO_MANY_STREAMS_PER_USER="Qu\u00e1 tr\u00ecnh ph\u00e1t l\u1ea1i b\u1ecb d\u1eebng do c\u00f3 qu\u00e1 nhi\u1ec1u video thu\u1ed9c c\u00f9ng m\u1ed9t t\u00e0i kho\u1ea3n \u0111ang ph\u00e1t.", cQ.TOO_MANY_STREAMS_PER_ENTITLEMENT="Qu\u00e1 tr\u00ecnh ph\u00e1t l\u1ea1i b\u1ecb d\u1eebng do video n\u00e0y \u0111\u00e3 \u0111\u01b0\u1ee3c ph\u00e1t tr\u00ean qu\u00e1 nhi\u1ec1u thi\u1ebft b\u1ecb.",cQ.UNSUPPORTED_DEVICE="Thi\u1ebft b\u1ecb n\u00e0y kh\u00f4ng h\u1ed7 tr\u1ee3 ph\u00e1t l\u1ea1i.",cQ.VIDEO_FORBIDDEN="B\u1ea1n kh\u00f4ng \u0111\u01b0\u1ee3c ph\u00e9p truy c\u1eadp video n\u00e0y.",cQ.VIDEO_NOT_FOUND="Kh\u00f4ng th\u1ec3 t\u00ecm th\u1ea5y video n\u00e0y.",cQ.BROWSER_OR_EXTENSION_ERROR= "\u0110\u00e3 x\u1ea3y ra l\u1ed7i. H\u00e3y l\u00e0m m\u1edbi ho\u1eb7c th\u1eed l\u1ea1i sau. $BEGIN_LINKT\u00ecm hi\u1ec3u th\u00eam$END_LINK",cQ);var aZ_;var RTT=g.H4(),SZ9=RTT.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!SZ9||SZ9.length<2)aZ_=void 0;else{var uj_=RTT.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);aZ_=uj_&&uj_.length===6?Number(uj_[5].replace("_",".")):0}var Zd=aZ_,d1=Zd>=0;g.h(g.xI,WK);g.xI.prototype.X=function(z,K,f,M,p){return WK.prototype.X.call(this,z,K,f,M,p)};var AN={},Q6=(AN.FAIRPLAY="fairplay",AN.PLAYREADY="playready",AN.WIDEVINE="widevine",AN.CLEARKEY=null,AN.FLASHACCESS=null,AN.UNKNOWN=null,AN.WIDEVINE_CLASSIC=null,AN);FI.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var jZ={},nX=(jZ.WIDTH={name:"width",video:!0,valid:640,VJ:99999},jZ.HEIGHT={name:"height",video:!0,valid:360,VJ:99999},jZ.FRAMERATE={name:"framerate",video:!0,valid:30,VJ:9999},jZ.BITRATE={name:"bitrate",video:!0,valid:3E5,VJ:2E9},jZ.EOTF={name:"eotf",video:!0,valid:"bt709",VJ:"catavision"},jZ.CHANNELS={name:"channels",video:!1,valid:2,VJ:99},jZ.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",VJ:"invalidformat"},jZ.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", VJ:"nope"},jZ.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",VJ:"av99.0.05M.08"},jZ.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",VJ:"invalid"},jZ);var LN8=["h","H"],E0T=["9","("],Pp4=["9h","(h"],HsT=["8","*"],Qo7=["a","A"],qZ1=["o","O"],m07=["m","M"],lZ2=["mac3","MAC3"],VT8=["meac3","MEAC3"],Yd={},iwS=(Yd.h=LN8,Yd.H=LN8,Yd["9"]=E0T,Yd["("]=E0T,Yd["9h"]=Pp4,Yd["(h"]=Pp4,Yd["8"]=HsT,Yd["*"]=HsT,Yd.a=Qo7,Yd.A=Qo7,Yd.o=qZ1,Yd.O=qZ1,Yd.m=m07,Yd.M=m07,Yd.mac3=lZ2,Yd.MAC3=lZ2,Yd.meac3=VT8,Yd.MEAC3=VT8,Yd),n0_=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),Sqp=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var U={},T5=(U["0"]="f",U["160"]="h",U["133"]="h",U["134"]="h",U["135"]="h",U["136"]="h",U["137"]="h",U["264"]="h",U["266"]="h",U["138"]="h",U["298"]="h",U["299"]="h",U["304"]="h",U["305"]="h",U["214"]="h",U["216"]="h",U["374"]="h",U["375"]="h",U["140"]="a",U["141"]="a",U["327"]="sa",U["258"]="m",U["380"]="mac3",U["328"]="meac3",U["161"]="H",U["142"]="H",U["143"]="H",U["144"]="H",U["222"]="H",U["223"]="H",U["145"]="H",U["224"]="H",U["225"]="H",U["146"]="H",U["226"]="H",U["227"]="H",U["147"]="H",U["384"]= "H",U["376"]="H",U["385"]="H",U["377"]="H",U["149"]="A",U["261"]="M",U["381"]="MAC3",U["329"]="MEAC3",U["598"]="9",U["278"]="9",U["242"]="9",U["243"]="9",U["244"]="9",U["775"]="9",U["776"]="9",U["777"]="9",U["778"]="9",U["779"]="9",U["780"]="9",U["781"]="9",U["782"]="9",U["783"]="9",U["247"]="9",U["248"]="9",U["353"]="9",U["355"]="9",U["356"]="9",U["271"]="9",U["577"]="9",U["313"]="9",U["579"]="9",U["272"]="9",U["302"]="9",U["303"]="9",U["407"]="9",U["408"]="9",U["308"]="9",U["315"]="9",U["330"]= "9h",U["331"]="9h",U["332"]="9h",U["333"]="9h",U["334"]="9h",U["335"]="9h",U["336"]="9h",U["337"]="9h",U["338"]="so",U["600"]="o",U["250"]="o",U["251"]="o",U["774"]="o",U["194"]="*",U["195"]="*",U["220"]="*",U["221"]="*",U["196"]="*",U["197"]="*",U["279"]="(",U["280"]="(",U["317"]="(",U["318"]="(",U["273"]="(",U["274"]="(",U["357"]="(",U["358"]="(",U["275"]="(",U["359"]="(",U["360"]="(",U["276"]="(",U["583"]="(",U["584"]="(",U["314"]="(",U["585"]="(",U["561"]="(",U["277"]="(",U["361"]="(h",U["362"]= "(h",U["363"]="(h",U["364"]="(h",U["365"]="(h",U["366"]="(h",U["591"]="(h",U["592"]="(h",U["367"]="(h",U["586"]="(h",U["587"]="(h",U["368"]="(h",U["588"]="(h",U["562"]="(h",U["409"]="(",U["410"]="(",U["411"]="(",U["412"]="(",U["557"]="(",U["558"]="(",U["394"]="1",U["395"]="1",U["396"]="1",U["397"]="1",U["398"]="1",U["399"]="1",U["720"]="1",U["721"]="1",U["400"]="1",U["401"]="1",U["571"]="1",U["402"]="1",U["694"]="1h",U["695"]="1h",U["696"]="1h",U["697"]="1h",U["698"]="1h",U["699"]="1h",U["700"]="1h", U["701"]="1h",U["702"]="1h",U["703"]="1h",U["386"]="3",U["387"]="w",U["406"]="6",U["787"]="1",U["788"]="1",U["548"]="1e",U["549"]="1e",U["550"]="1e",U["551"]="1e",U["809"]="1e",U["810"]="1e",U["552"]="1e",U["811"]="1e",U["812"]="1e",U["553"]="1e",U["813"]="1e",U["814"]="1e",U["554"]="1e",U["815"]="1e",U["816"]="1e",U["555"]="1e",U["817"]="1e",U["818"]="1e",U["572"]="1e",U["556"]="1e",U["645"]="(",U["646"]="(",U["647"]="(",U["648"]="(",U["649"]="(",U["650"]="(",U["651"]="(",U["652"]="(",U["653"]="(", U["654"]="(",U["655"]="(",U["656"]="(",U["657"]="(",U["658"]="(",U["659"]="(",U["660"]="(",U["661"]="(",U["662"]="(",U["663"]="(",U["664"]="(",U["665"]="(",U["666"]="(",U["667"]="(",U["668"]="(",U["669"]="(",U["670"]="(",U["671"]="(",U["672"]="(",U["673"]="(",U["674"]="(h",U["675"]="(h",U["676"]="(h",U["677"]="(h",U["678"]="(h",U["679"]="(h",U["680"]="(h",U["681"]="(h",U["682"]="(h",U["683"]="(h",U["684"]="(h",U["685"]="(h",U["686"]="(h",U["687"]="(h",U["688"]="A",U["689"]="A",U["690"]="A",U["691"]= "MEAC3",U["773"]="i",U["806"]="I",U["805"]="I",U["829"]="9",U["830"]="9",U["831"]="9",U["832"]="9",U["833"]="9",U["834"]="9",U["835"]="9",U["836"]="9",U["837"]="9",U["838"]="9",U["839"]="9",U["840"]="9",U["841"]="(",U["842"]="(",U["843"]="(",U["844"]="(",U["845"]="(",U["846"]="(",U["847"]="(",U["848"]="(",U["849"]="(",U["850"]="(",U["851"]="(",U["852"]="(",U["865"]="9",U["866"]="9",U["867"]="9",U["868"]="9",U["869"]="9",U["870"]="9",U["871"]="9",U["872"]="9",U["873"]="9",U["874"]="9",U["875"]="9", U["876"]="9",U["877"]="(",U["878"]="(",U["879"]="(",U["880"]="(",U["881"]="(",U["882"]="(",U["883"]="(",U["884"]="(",U["885"]="(",U["886"]="(",U["887"]="(",U["888"]="(",U);var XD={},kxg=(XD.STEREO_LAYOUT_UNKNOWN=0,XD.STEREO_LAYOUT_LEFT_RIGHT=1,XD.STEREO_LAYOUT_TOP_BOTTOM=2,XD);var xd,hH;xd={};g.rI=(xd.auto=0,xd.tiny=144,xd.light=144,xd.small=240,xd.medium=360,xd.large=480,xd.hd720=720,xd.hd1080=1080,xd.hd1440=1440,xd.hd2160=2160,xd.hd2880=2880,xd.highres=4320,xd);hH={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var oA="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");Z8.prototype.isHdr=function(){return this.S==="smpte2084"||this.S==="arib-std-b67"};Uq.prototype.qT=function(){return this.containerType===2}; Uq.prototype.isEncrypted=function(){return!!this.UW}; Uq.prototype.ev=function(){return!!this.audio}; Uq.prototype.Zf=function(){return!!this.video}; var $r=!1;g.h(Z0,g.Dv);g.k=Z0.prototype;g.k.appendBuffer=function(z,K,f){if(this.oF.IR()!==this.appendWindowStart+this.start||this.oF.MU()!==this.appendWindowEnd+this.start||this.oF.MB()!==this.timestampOffset+this.start)this.oF.supports(1),this.oF.ZY(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.oF.nG(this.timestampOffset+this.start);this.oF.appendBuffer(z,K,f)}; g.k.abort=function(){this.oF.abort()}; g.k.remove=function(z,K){this.oF.remove(z+this.start,K+this.start)}; g.k.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.k.clear=function(){this.oF.clear()}; g.k.ZY=function(z,K){this.appendWindowStart=z;this.appendWindowEnd=K}; g.k.dj=function(){return this.timestampOffset+this.start}; g.k.IR=function(){return this.appendWindowStart}; g.k.MU=function(){return this.appendWindowEnd}; g.k.nG=function(z){this.timestampOffset=z}; g.k.MB=function(){return this.timestampOffset}; g.k.NL=function(z){z=this.oF.NL(z===void 0?!1:z);return rn(z,this.start,this.end)}; g.k.IH=function(){return this.oF.IH()}; g.k.h4=function(){return this.oF.h4()}; g.k.WE=function(){return this.oF.WE()}; g.k.wj=function(){return this.oF.wj()}; g.k.RA=function(){this.oF.RA()}; g.k.Xs=function(z){return this.oF.Xs(z)}; g.k.AO=function(){return this.oF.AO()}; g.k.NU=function(){return this.oF.NU()}; g.k.gq=function(z,K,f){this.oF.gq(z,K,f)}; g.k.f1=function(z,K,f){this.oF.f1(z,K,f)}; g.k.My=function(z,K){return this.oF.My(z,K)}; g.k.supports=function(z){return this.oF.supports(z)}; g.k.a7=function(){return this.oF.a7()}; g.k.isView=function(){return!0}; g.k.Y0=function(){return this.oF.Y0()?this.isActive:!1}; g.k.isLocked=function(){return this.tq&&!this.isActive}; g.k.S3=function(z){z=this.oF.S3(z);z.vw=this.start+"-"+this.end;return z}; g.k.y$=function(){return this.oF.y$()}; g.k.Xv=function(){return this.oF.Xv()}; g.k.Tq=function(){return this.oF.Tq()}; g.k.JL=function(){this.oF.s9(this.Yz);g.Dv.prototype.JL.call(this)};var hI=!1;g.h(CZ,g.Dv);g.k=CZ.prototype;g.k.appendBuffer=function(z,K,f){this.g9=!1;f&&(this.Uh=f);if(z.length){var M;((M=this.P1)==null?0:M.appendBuffer)?this.P1.appendBuffer(z):this.P1?this.P1.append(z):this.Ur&&this.Ur.webkitSourceAppend(this.id,z)}K&&(K.isEncrypted()&&(this.Hp=this.Uh),K.type===3&&(this.NT=K),this.h7.push(K.H8()),this.h7.length>4&&this.h7.shift());this.mF&&(this.mF.length>=2||z.length>1048576?delete this.mF:this.mF.push(z))}; g.k.abort=function(){try{this.P1?this.P1.abort():this.Ur&&this.Ur.webkitSourceAbort(this.id)}catch(K){if(i4q){var z=new g.UT("Error while abort the source buffer: "+K.name+", "+K.message);g.sm(z)}}this.Uh=this.NT=null}; g.k.remove=function(z,K,f){this.g9=!1;var M;if((M=this.P1)==null?0:M.remove)f&&f({b:D0(this.NL()),s:z,e:K}),this.P1.remove(z,K)}; g.k.removeAll=function(){this.remove(this.IR(),this.MU())}; g.k.clear=function(){this.WE()||(this.abort(),this.removeAll(),this.Hp=this.Uh=this.NT=null,this.appendWindowStart=this.timestampOffset=0,this.mX=wn([],[]),this.g9=!1,this.mF=oC?[]:void 0,this.zp=!0)}; g.k.IR=function(){if(hI&&this.Zf)return this.appendWindowStart;var z;return((z=this.P1)==null?void 0:z.appendWindowStart)||0}; g.k.MU=function(){var z;return((z=this.P1)==null?void 0:z.appendWindowEnd)||0}; g.k.ZY=function(z,K){this.P1&&(hI&&this.Zf?(this.appendWindowStart=z,this.P1.appendWindowEnd=K):z>this.IR()?(this.P1.appendWindowEnd=K,this.P1.appendWindowStart=z):(this.P1.appendWindowStart=z,this.P1.appendWindowEnd=K))}; g.k.dj=function(){return this.timestampOffset}; g.k.nG=function(z){hI?this.timestampOffset=z:this.supports(1)&&(this.P1.timestampOffset=z)}; g.k.MB=function(){return hI?this.timestampOffset:this.supports(1)?this.P1.timestampOffset:0}; g.k.NL=function(z){if(z===void 0?0:z)return this.g9||this.IH()||(this.mX=this.NL(!1),this.g9=!0),this.mX;try{return this.P1?this.P1.buffered:this.Ur?this.Ur.webkitSourceBuffered(this.id):wn([0],[Infinity])}catch(K){return wn([],[])}}; g.k.IH=function(){var z;return((z=this.P1)==null?void 0:z.updating)||!1}; g.k.WE=function(){return this.zp}; g.k.wj=function(){return!this.zp&&this.IH()}; g.k.RA=function(){this.zp=!1}; g.k.Xs=function(z){var K=z==null?void 0:z.Ra;z=z==null?void 0:z.containerType;return!K&&!z||K===this.Ra&&z===this.containerType}; g.k.AO=function(){return this.Uh}; g.k.NU=function(){return this.Hp}; g.k.My=function(z,K){return this.containerType!==z||this.Ra!==K}; g.k.gq=function(z,K,f){if(this.containerType!==z||f&&this.My(z,f))this.supports(4),Tr()&&this.P1.changeType(K),f&&(this.Ra=f);this.containerType=z}; g.k.f1=function(z,K,f){this.containerType&&this.My(z,K)&&Tr()&&this.P1.changeType(f);this.containerType=z;this.Ra=K}; g.k.a7=function(){return this.NT}; g.k.isView=function(){return!1}; g.k.supports=function(z){switch(z){case 1:var K;return((K=this.P1)==null?void 0:K.timestampOffset)!==void 0;case 0:var f;return!((f=this.P1)==null||!f.appendBuffer);case 2:var M;return!((M=this.P1)==null||!M.remove);case 3:var p,t;return!!(((p=this.P1)==null?0:p.addEventListener)&&((t=this.P1)==null?0:t.removeEventListener));case 4:return!(!this.P1||!this.P1.changeType);default:return!1}}; g.k.Y0=function(){return!this.IH()}; g.k.isLocked=function(){return!1}; g.k.S3=function(z){z.to=this.MB();z.up=this.IH();var K,f=((K=this.P1)==null?void 0:K.appendWindowStart)||0,M;K=((M=this.P1)==null?void 0:M.appendWindowEnd)||Infinity;z.aw=f.toFixed(3)+"-"+K.toFixed(3);return z}; g.k.h4=function(){var z;return((z=this.P1)==null?void 0:z.writeHead)||0}; g.k.y$=function(){for(var z={},K=0;K=7&&Hd8(this,function(){g.Sg(function(){XPd(z,z.getCurrentTime(),0)},500)}); return K}; g.k.seekTo=function(z){this.S_()>0&&(d1&&Zd<4&&(z=Math.max(.1,z)),this.setCurrentTime(z))}; g.k.ZM=function(){if(!this.Y&&this.u_)if(this.u_.C)try{var z;fw(this,{l:"mer",sr:(z=this.AL)==null?void 0:z.o1(),rs:pw(this.u_)});this.u_.clear();this.Y=this.u_;this.u_=void 0}catch(K){z=new g.UT("Error while clearing Media Source in MediaElement: "+K.name+", "+K.message),g.sm(z),this.stopVideo()}else this.stopVideo()}; g.k.stopVideo=function(){var z=this;if(!this.Y){var K;(K=this.u_)==null||APS(K);if(WJS){if(!this.T){var f=new BC;f.then(void 0,function(){}); this.T=f;JF5&&this.pause();g.Sg(function(){z.T===f&&(Gx(z),f.resolve())},200)}}else Gx(this)}}; g.k.jo=function(){var z=this.MV();return RC(z)&&this.getDuration()?hn(z,this.getCurrentTime()):0}; g.k.qq=function(){var z=this.getDuration();return z===Infinity?1:z?this.jo()/z:0}; g.k.S3=function(){try{var z=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:D0(this.zS(),",",3),vbu:D0(this.MV()),vbs:D0(this.F3()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.S_(),vns:""+this.A4(),vec:""+this.Ko(),vemsg:this.qV(),vvol:""+this.getVolume(),vdom:""+ +this.Rm(),vsrc:""+ +!!this.yc(),vw:""+z.width,vh:""+z.height}}catch(K){return{}}}; g.k.hasError=function(){return this.Ko()>0}; g.k.addEventListener=function(z,K){this.J.listen(z,K,!1,this);this.Hw(z)}; g.k.removeEventListener=function(z,K){this.J.W8(z,K,!1,this)}; g.k.dispatchEvent=function(z){if(this.T&&z.type==="pause")return!1;if(guv){var K,f=((K=z.S)==null?void 0:K.timeStamp)||Infinity;K=f>performance.now()?f-Date.now()+performance.now():f;f=this.Y||this.u_;if((f==null?0:f.WE())||K<=((f==null?void 0:f.W)||0)){var M;fw(this,{l:"mede",sr:(M=this.AL)==null?void 0:M.o1(),et:z.type});return!1}if(this.FZ)return fw(this,{l:"medes",et:z.type}),f&&z.type==="seeking"&&(f.W=performance.now(),this.FZ=!1),!1}return this.J.dispatchEvent(z)}; g.k.nL=function(){this.W=!1}; g.k.qO=function(){this.W=!0;this.i7(!0)}; g.k.Ew=function(){this.W&&!this.Sj()&&this.i7(!0)}; g.k.equals=function(z){return!!z&&z.H1()===this.H1()}; g.k.JL=function(){this.G&&this.removeEventListener("volumechange",this.Ew);WJS&&Gx(this);g.J.prototype.JL.call(this)}; var WJS=!1,JF5=!1,guv=!1,OdT=!1;g.k=g.ex.prototype;g.k.isPaused=function(){return g.Z(this,4)}; g.k.isPlaying=function(){return g.Z(this,8)&&!g.Z(this,512)&&!g.Z(this,64)&&!g.Z(this,2)}; g.k.isOrWillBePlaying=function(){return g.Z(this,8)&&!g.Z(this,2)&&!g.Z(this,1024)}; g.k.isCued=function(){return g.Z(this,64)&&!g.Z(this,8)&&!g.Z(this,4)}; g.k.isBuffering=function(){return g.Z(this,1)&&!g.Z(this,2)}; g.k.isError=function(){return g.Z(this,128)}; g.k.isSuspended=function(){return g.Z(this,512)}; g.k.gZ=function(){return g.Z(this,64)&&g.Z(this,4)}; g.k.toString=function(){return"PSt."+this.state.toString(16)}; var FD={},Ov=(FD.BUFFERING="buffering-mode",FD.CUED="cued-mode",FD.ENDED="ended-mode",FD.PAUSED="paused-mode",FD.PLAYING="playing-mode",FD.SEEKING="seeking-mode",FD.UNSTARTED="unstarted-mode",FD);g.h(Lw,g.J);g.k=Lw.prototype;g.k.GR=function(){return this.T}; g.k.u8=function(){return this.slot}; g.k.gE=function(){return this.layout}; g.k.init=function(){var z=Dx(this.layout.clientMetadata,"metadata_type_video_length_seconds"),K=Dx(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");n6(this.layout.qB)&&f7(this.E3.get(),this.layout.layoutId,{bO:K,s5:z,listener:this,sP:this.xd()});C3a(this.Gh.get(),this);z=this.DU;K=this.layout.layoutId;var f={sP:this.xd()};z.S.set(K,f);this.XZ()}; g.k.w5=function(){}; g.k.release=function(){n6(this.layout.qB)&&MH(this.E3.get(),this.layout.layoutId);Ttd(this.Gh.get(),this);this.DU.S.delete(this.layout.layoutId);this.Zg()}; g.k.TK=function(){}; g.k.eD=function(){}; g.k.startRendering=function(z){lB(EL(this));if(PC(this,z)){var K=this.S;VR(K.params.OT.Ef.get(),!0)&&EkW(K,"p_sr",{});HC(this);this.AP(z);this.xd()||this.r0(!1)}}; g.k.Rp=function(z,K){if(K.layoutId===this.layout.layoutId){this.yh="rendering";this.Y=this.Uf.get().isMuted()||this.Uf.get().getVolume()===0;this.fI("impression");this.fI("start");if(this.Uf.get().isMuted()){nw(this,"mute");var f;z=((f=uq(this))==null?void 0:f.muteCommands)||[];zw(this.v1.get(),z,this.layout.layoutId)}if(this.Uf.get().isFullscreen()){this.ZU("fullscreen");var M;f=((M=uq(this))==null?void 0:M.fullscreenCommands)||[];zw(this.v1.get(),f,this.layout.layoutId)}this.xd()||(M=this.c8.get(), M.T&&!M.Y&&(M.C=!1,M.Y=!0,M.actionType!=="ad_to_video"&&(UG("pbs",void 0,M.actionType),g.Hg("finalize_all_timelines")&&MLo(M.actionType))));this.iy(1);this.z9(K);var p;K=((p=uq(this))==null?void 0:p.impressionCommands)||[];zw(this.v1.get(),K,this.layout.layoutId)}}; g.k.D4=function(z,K,f){this.G={JG:3,VF:z==="load_timeout"?402:400,errorMessage:K.message};this.fI("error");var M;z=((M=uq(this))==null?void 0:M.errorCommands)||[];zw(this.v1.get(),z,this.layout.layoutId);this.xd()||this.xR.aX(this.slot,this.layout,K,f)}; g.k.Q9=function(){if(this.yh==="rendering"){nw(this,"pause");var z,K=((z=uq(this))==null?void 0:z.pauseCommands)||[];zw(this.v1.get(),K,this.layout.layoutId);this.iy(2)}}; g.k.V9=function(){if(this.yh==="rendering"){nw(this,"resume");var z,K=((z=uq(this))==null?void 0:z.resumeCommands)||[];zw(this.v1.get(),K,this.layout.layoutId)}}; g.k.EV=function(z,K){K=K===void 0?!1:K;if(this.yh==="rendering"){var f={currentTimeSec:z,flush:K};nn(this.S,"p_ip",f);AA(this.Mc,z*1E3,K);this.Y||AA(this.Mc,z*1E3,K===void 0?!1:K);var M=this.B$();if(M){M/=1E3;if(z>=M*.25||K)this.fI("first_quartile"),nn(this.S,"p_fq",f);if(z>=M*.5||K)this.fI("midpoint"),nn(this.S,"p_sq",f);if(z>=M*.75||K)this.fI("third_quartile"),nn(this.S,"p_tq",f);this.Ef.get().U.Z().experiments.sf("enable_progress_command_flush_on_kabuki")?oI(this.J,z*1E3,K):oI(this.J,z*1E3,USg(this)? K:!1)}}}; g.k.nJ=function(){var z;return((z=QW(this.i_.get(),1))==null?void 0:z.clientPlaybackNonce)||""}; g.k.pR=function(z,K){z.layoutId!==this.layout.layoutId?this.xR.aX(this.slot,z,new ei("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):K()}; g.k.e3=function(z,K,f){if(K.layoutId===this.layout.layoutId)switch(this.yh="not_rendering",this.layoutExitReason=void 0,this.xd()||(z=f!=="normal"||this.position+1===this.W)&&this.r0(z),this.ZB(f),this.iy(0),f){case "abandoned":if(jN(this.Mc,"impression")){var M,p=((M=uq(this))==null?void 0:M.abandonCommands)||[];zw(this.v1.get(),p,this.layout.layoutId)}break;case "normal":M=((p=uq(this))==null?void 0:p.completeCommands)||[];zw(this.v1.get(),M,this.layout.layoutId);break;case "skipped":var t;M=((t= uq(this))==null?void 0:t.skipCommands)||[];zw(this.v1.get(),M,this.layout.layoutId)}}; g.k.GA=function(){return this.layout.layoutId}; g.k.DZ=function(){return this.G}; g.k.jN=function(){if(this.yh==="rendering"){this.Mc.fI("active_view_measurable");var z,K=((z=uq(this))==null?void 0:z.activeViewMeasurableCommands)||[];zw(this.v1.get(),K,this.layout.layoutId)}}; g.k.p9=function(){if(this.yh==="rendering"){this.Mc.fI("active_view_fully_viewable_audible_half_duration");var z,K=((z=uq(this))==null?void 0:z.activeViewFullyViewableAudibleHalfDurationCommands)||[];zw(this.v1.get(),K,this.layout.layoutId)}}; g.k.Hd=function(){if(this.yh==="rendering"){this.Mc.fI("active_view_viewable");var z,K=((z=uq(this))==null?void 0:z.activeViewViewableCommands)||[];zw(this.v1.get(),K,this.layout.layoutId)}}; g.k.zr=function(){if(this.yh==="rendering"){this.Mc.fI("audio_audible");var z,K=((z=uq(this))==null?void 0:z.activeViewAudioAudibleCommands)||[];zw(this.v1.get(),K,this.layout.layoutId)}}; g.k.n9=function(){if(this.yh==="rendering"){this.Mc.fI("audio_measurable");var z,K=((z=uq(this))==null?void 0:z.activeViewAudioMeasurableCommands)||[];zw(this.v1.get(),K,this.layout.layoutId)}}; g.k.r0=function(z){this.c8.get().r0(Dx(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,z,this.position,this.W,!1)}; g.k.onFullscreenToggled=function(z){if(this.yh==="rendering")if(z){this.ZU("fullscreen");var K,f=((K=uq(this))==null?void 0:K.fullscreenCommands)||[];zw(this.v1.get(),f,this.layout.layoutId)}else this.ZU("end_fullscreen"),K=((f=uq(this))==null?void 0:f.endFullscreenCommands)||[],zw(this.v1.get(),K,this.layout.layoutId)}; g.k.onVolumeChange=function(){if(this.yh==="rendering")if(this.Uf.get().isMuted()){nw(this,"mute");var z,K=((z=uq(this))==null?void 0:z.muteCommands)||[];zw(this.v1.get(),K,this.layout.layoutId)}else nw(this,"unmute"),z=((K=uq(this))==null?void 0:K.unmuteCommands)||[],zw(this.v1.get(),z,this.layout.layoutId)}; g.k.Hj=function(){}; g.k.GN=function(){}; g.k.bj=function(){}; g.k.If=function(){}; g.k.KW=function(){}; g.k.ZU=function(z){this.Mc.ZU(z,!this.Y)}; g.k.fI=function(z){this.Mc.fI(z,!this.Y)}; g.k.xd=function(){var z=Dx(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return z===void 0?(R3("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Ef.get().xd(z)};g.h(df,Lw);g.k=df.prototype;g.k.XZ=function(){}; g.k.Zg=function(){var z=this.Gh.get();z.IC===this&&(z.IC=null);this.QR.stop()}; g.k.TK=function(){this.QR.stop();Lw.prototype.Q9.call(this)}; g.k.eD=function(){sL(this);Lw.prototype.V9.call(this)}; g.k.B$=function(){return Dx(this.gE().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.k.wO=function(z,K){var f=this;this.pR(z,function(){f.yh!=="rendering_stop_requested"&&(f.yh="rendering_stop_requested",f.layoutExitReason=K,qB(f,K),f.QR.stop())})}; g.k.C6=function(){var z=Date.now(),K=z-this.Wp;this.Wp=z;this.Ae+=K;this.Ae>=this.B$()?this.Ln():(this.EV(this.Ae/1E3),cC(this,this.Ae))}; g.k.ZB=function(){}; g.k.P7=function(){}; g.h(Aj,df);g.k=Aj.prototype;g.k.Fo=function(z){if(this.yh!=="not_rendering"){z=mf(this,z);var K=this.Uf.get().getPresentingPlayerType()===2;this.yh==="rendering_start_requested"?K&&RA(z)&&this.jf():K?g.Ld(z,2)?R3("Receive player ended event during MediaBreak",this.u8(),this.gE()):lq(this,z):this.u1()}}; g.k.AP=function(){Csv(this);NOS(this.Uf.get());this.Gh.get().IC=this;Cp("pbp")||Cp("pbs")||UG("pbp");Cp("pbp","watch")||Cp("pbs","watch")||UG("pbp",void 0,"watch");this.jf()}; g.k.z9=function(z){this.c8.get();var K=Dx(z.clientMetadata,"metadata_type_ad_placement_config").kind,f=this.position===0;z=Dx(z.clientMetadata,"metadata_type_linked_in_player_layout_type");z={adBreakType:VW(K),adType:IEp(z)};var M=void 0;f?K!=="AD_PLACEMENT_KIND_START"&&(M="video_to_ad"):M="ad_to_ad";rl("ad_mbs",void 0,M);g.ZE(z,M);sL(this)}; g.k.u1=function(){this.bZ()}; g.k.Ln=function(){K$I(this);this.bZ()}; g.h(jx,df);g.k=jx.prototype;g.k.Fo=function(z){this.yh!=="not_rendering"&&(z=mf(this,z),lq(this,z))}; g.k.AP=function(){R3("Not used in SSAP")}; g.k.z9=function(){sL(this)}; g.k.u1=function(){R3("Not used in SSAP")}; g.k.Ln=function(){K$I(this);this.xR.UH(this.u8(),this.gE(),"normal")}; g.h(Ym,jx);Ym.prototype.wO=function(z,K){var f=this;this.pR(z,function(){Pf(f.T,K)&&(f.yh="rendering_stop_requested",f.layoutExitReason=K,qB(f,K),f.QR.stop())})}; Ym.prototype.startRendering=function(z){lB(EL(this));PC(this,z)&&(HC(this),this.Gh.get().IC=this)};g.h(Fv,Lw);g.k=Fv.prototype;g.k.u1=function(){this.bZ()}; g.k.Fo=function(z){if(this.yh!=="not_rendering"){z=mf(this,z);var K=this.Uf.get().getPresentingPlayerType()===2;this.yh==="rendering_start_requested"?K&&RA(z)&&this.jf():!K||g.Ld(z,2)?this.bZ():lq(this,z)}}; g.k.XZ=function(){Dx(this.gE().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=Dx(this.gE().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.k.Zg=function(){Dx(this.gE().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.xX){var z=this.context.OT,K=this.xX,f=this.gE().layoutId;if(VR(z.Ef.get(),!0)){var M={};z.Nc("mccru",(M.cid=K,M.p_ac=f,M))}this.P8.get().removeCueRange(this.xX)}this.xX=void 0;var p;(p=this.eB)==null||p.dispose();this.Gn&&this.Gn.dispose()}; g.k.AP=function(z){var K=Xv(this.Ef.get()),f=xm(this.Ef.get());if(K&&f&&!this.xd()){f=Dx(z.clientMetadata,"metadata_type_preload_player_vars");var M=this.Ef.get();M=g.uY(M.U.Z().experiments,"html5_preload_wait_time_secs");f&&this.Gn&&this.Gn.start(M*1E3)}MXS(this,z);Csv(this);K?(f=this.j3.get(),z=Dx(z.clientMetadata,"metadata_type_player_vars"),f.U.loadVideoByPlayerVars(z,!1,2)):L_8(this.j3.get(),Dx(z.clientMetadata,"metadata_type_player_vars"));var p;(p=this.eB)==null||p.start();K||this.j3.get().U.playVideo(2)}; g.k.z9=function(){var z;(z=this.eB)==null||z.stop();this.xX="adcompletioncuerange:"+this.gE().layoutId;this.P8.get().addCueRange(this.xX,0x7ffffffffffff,0x8000000000000,!1,this,2,2);z=this.context.OT;var K=this.xX,f=this.gE().layoutId;if(VR(z.Ef.get(),!0)){var M={};z.Nc("mccr",(M.cid=K,M.p_ac=f,M))}(this.adCpn=okS(this))||R3("Media layout confirmed started, but ad CPN not set.");this.VW.get().x$("onAdStart",this.adCpn);this.PT=Date.now()}; g.k.B$=function(){var z;return(z=QW(this.i_.get(),2))==null?void 0:z.Mo}; g.k.s$=function(){this.Mc.ZU("clickthrough")}; g.k.wO=function(z,K){var f=this;this.pR(z,function(){if(f.yh!=="rendering_stop_requested"){f.yh="rendering_stop_requested";f.layoutExitReason=K;qB(f,K);var M;(M=f.eB)==null||M.stop();f.Gn&&f.Gn.stop();pRW(f)}})}; g.k.onCueRangeEnter=function(z){if(z!==this.xX)R3("Received CueRangeEnter signal for unknown layout.",this.u8(),this.gE(),{cueRangeId:z});else{var K=this.context.OT,f=this.gE().layoutId;if(VR(K.Ef.get(),!0)){var M={};K.Nc("mccre",(M.cid=z,M.p_ac=f,M))}this.P8.get().removeCueRange(this.xX);this.xX=void 0;MI(this.context.Ef.get(),"html5_ssap_flush_at_stop_rendering")&&this.xd()||(z=Dx(this.gE().clientMetadata,"metadata_type_video_length_seconds"),this.EV(z,!0),this.fI("complete"))}}; g.k.ZB=function(z){z!=="abandoned"&&this.VW.get().x$("onAdComplete");this.VW.get().x$("onAdEnd",this.adCpn)}; g.k.onCueRangeExit=function(){}; g.k.P7=function(z){this.yh==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&z>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Uf.get().u4(!0),this.EV(z))}; g.k.EV=function(z,K){Lw.prototype.EV.call(this,z,K===void 0?!1:K);K=Date.now()-this.PT;var f=z*1E3,M={contentCpn:this.nJ(),adCpn:okS(this)};if(z-this.kz>=5){var p=K=2||(this.f6.wO(this.layout,K),z=MI(this.params.context.Ef.get(),"html5_ssap_pass_transition_reason")&&K==="abandoned",this.Zp()&&!z&&(MI(this.params.context.Ef.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(K)||R3("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:K})),this.n6.get().finishSegmentByCpn(this.layout.layoutId, QW(this.i_.get(),1).clientPlaybackNonce,Jj(K,this.params.context.Ef))),this.Uf.get().removeListener(this),this.KK()&&Hf(this.f6.GR())&&this.Pn.e3(this.slot,this.layout,this.f6.GR().S))}; g.k.Nw=function(z,K,f){uNo({cpn:z,Sv:this.i_.get(),Mb:!0});this.gE().layoutId!==z||MI(this.params.context.Ef.get(),"html5_ssap_pass_transition_reason")&&f===5||(this.f6.GR().currentState<2&&(z=gf(f,this.params.context.Ef),z==="error"?this.Pn.aX(this.slot,this.layout,new ei("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:f},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):$q(this.jt, this.layout,z)),MI(this.params.context.Ef.get(),"html5_ssap_exit_without_waiting_for_transition")||this.Pn.e3(this.slot,this.layout,this.f6.GR().S))};g.h(Cw,g.J);g.k=Cw.prototype;g.k.u8=function(){return this.slot}; g.k.gE=function(){return this.layout}; g.k.ov=function(){}; g.k.rh=function(){return this.g$[this.C5]}; g.k.zD=function(){return this.C5}; g.k.TK=function(z,K){var f=this.rh();K.layoutId!==UL(f,z,K)?R3("pauseLayout for a PlayerBytes layout that is not currently active",z,K):f.TK()}; g.k.eD=function(z,K){var f=this.rh();K.layoutId!==UL(f,z,K)?R3("resumeLayout for a PlayerBytes layout that is not currently active",z,K):f.eD()}; g.k.mL=function(z,K){var f=this.rh();DPT(this,z,K);yES(f,z,K)&&this.ZF(f.u8(),f.gE(),"skipped")}; g.k.zZ=function(z,K){var f=this.rh();k9d(this);hPI(f,z,K)&&(z=aEu(this,f,z,K),z!==void 0&&(this.xd()?R3("Should not happen. Should delete"):SGT(this,f.u8(),f.gE(),z)))}; g.k.Bt=function(z,K){var f=Object.assign({},Tx(this),{layoutId:K.layoutId}),M=f.layoutId,p=f.Mb;if(f.sP){var t={};mE(f.Sv,"wrse",(t.ec=M,t.is=p,t.ctp=qT(M),t))}d3(this.Hg,z,K)}; g.k.Rp=function(z,K){var f;(f=this.rh())==null||f.Rp(z,K)}; g.k.e3=function(z,K,f){K.layoutId===this.gE().layoutId&&(this.mB=!1,Hd(this.Yb(),this));var M;(M=this.rh())==null||M.e3(z,K,f)}; g.k.P7=function(z){var K;(K=this.rh())==null||K.P7(z)}; g.k.m7=function(z,K,f){this.zD()===-1&&(this.callback.Rp(this.slot,this.layout),this.C5++);var M=this.rh();M?(M.D4(z,K,f),this.xd()&&this.callback.aX(this.slot,this.layout,K,f)):R3("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.zD()),layoutId:this.gE().layoutId})}; g.k.onFullscreenToggled=function(z){var K;(K=this.rh())==null||K.onFullscreenToggled(z)}; g.k.Hj=function(z){var K;(K=this.rh())==null||K.Hj(z)}; g.k.bj=function(z){var K;(K=this.rh())==null||K.bj(z)}; g.k.onVolumeChange=function(){var z;(z=this.rh())==null||z.onVolumeChange()}; g.k.MN=function(z,K,f){cd(this.Hg,z,K,f)}; g.k.eL=function(z){z.startRendering(z.gE())}; g.k.init=function(){var z=Dx(this.gE().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");z&&(z.current=this);if(this.g$.length<1)throw new C("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.g$.length)});if(z=Dx(this.gE().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))z.current=this;z=g.a(this.g$);for(var K=z.next();!K.done;K=z.next())K=K.value,K.init(),Ymv(this.Hg,this.slot,K.gE()),XMd(this.Hg,this.slot,K.gE()); if(this.xd())for(this.i_.get().addListener(this),yPI(wRp(this),this.i_.get()),z=wRp(this),z=g.a(z),K=z.next();!K.done;K=z.next())this.zj(K.value)}; g.k.zj=function(z){var K=Dx(z.clientMetadata,"metadata_type_player_vars");K?(z.layoutType!=="LAYOUT_TYPE_MEDIA"&&R3("Non-video ad contains playerVars",this.slot,z),this.j3.get().addPlayerResponseForAssociation({playerVars:K})):(z=G9u(z),this.j3.get().addPlayerResponseForAssociation({Gl:z}))}; g.k.release=function(){var z=Dx(this.gE().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");z&&(z.current=null);if(z=Dx(this.gE().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))z.current=null;z=g.a(this.g$);for(var K=z.next();!K.done;K=z.next())K=K.value,xea(this.Hg,this.slot,K.gE()),K.release();this.xd()&&(this.i_.get().removeListener(this),ks8())}; g.k.pR=function(z){return z.layoutId!==this.gE().layoutId?(this.callback.aX(this.u8(),z,new ei("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.gE().layoutId+("and LayoutType: "+this.gE().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.k.ON=function(){this.Uf.get().addListener(this);Pd(this.Yb(),this)}; g.k.Fo=function(z){if(z.state.isError()){var K,f;this.m7((K=z.state.Pj)==null?void 0:K.errorCode,new ei("There was a player error during this media layout.",{playerErrorCode:(f=z.state.Pj)==null?void 0:f.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(K=this.rh())&&K.Fo(z)}; g.k.xd=function(){var z=Dx(this.u8().clientMetadata,"metadata_type_eligible_for_ssap");return z===void 0?(R3("Expected SSAP eligibility in PlayerBytes slots",this.u8(),this.gE()),!1):this.Ef.get().xd(z)}; g.k.GN=function(){}; g.k.DX=function(){}; g.k.cj=function(){}; g.k.eF=function(){}; g.k.WA=function(){}; g.k.mV=function(){}; g.k.x3=function(){}; g.k.hJ=function(){}; g.k.R5=function(){}; g.k.zH=function(){}; g.k.iW=function(){}; g.k.If=function(){}; g.k.KW=function(){}; g.h(fb,Cw);g.k=fb.prototype;g.k.Pt=function(z,K,f){this.ZF(z,K,f)}; g.k.GC=function(z,K){this.ZF(z,K,"error")}; g.k.ZF=function(z,K,f){var M=this;RPd(this,z,K,f,function(){zp(M,M.zD()+1)})}; g.k.startRendering=function(z){this.pR(z)&&(this.ON(),R_p(this.c8.get()),Q1u(this.Ef.get())||NOS(this.Uf.get()),this.zD()===-1&&zp(this,this.zD()+1))}; g.k.wO=function(z,K){var f=this;this.mB=!0;this.zD()===this.g$.length?this.callback.e3(this.slot,this.layout,K):(z=this.rh(),z.wO(z.gE(),K),this.Ub=function(){f.callback.e3(f.slot,f.layout,K)}); this.Uf.get().U.OI();L_8(this.j3.get(),{});z=$X(this.Uf.get(),1);z.isPaused()&&!g.Z(z,2)&&this.Uf.get().playVideo();this.Uf.get().removeListener(this);this.mB&&u25(this)}; g.k.Nw=function(){}; g.k.R_=function(){}; g.k.UH=function(){}; g.h(MZ,Cw);g.k=MZ.prototype;g.k.Pt=function(z,K,f){z=Object.assign({},Tx(this),{layoutId:K.layoutId,layoutExitReason:f});K=z.layoutId;f=z.layoutExitReason;var M={};mE(z.Sv,"prse",(M.xc=K,M.ler=f,M.ctp=qT(K),M))}; g.k.GC=function(){R3("onSubLayoutError in SSAP")}; g.k.ZF=function(){R3("exitSubLayoutAndPlayNext in SSAP")}; g.k.rh=function(){return this.h$}; g.k.zD=function(){var z=this;return this.g$.findIndex(function(K){var f;return K.gE().layoutId===((f=z.h$)==null?void 0:f.gE().layoutId)})}; g.k.eL=function(z){a3(this.h$===void 0,"replacing another adapter");this.h$=z;z.startRendering(z.gE())}; g.k.MN=function(z,K,f){cd(this.Hg,z,K,f);var M;a3(K.layoutId===((M=this.h$)==null?void 0:M.gE().layoutId),"currentAdapter does not match exiting layout",{slot:z?"slot: "+z.slotType:"",subLayout:hP(K)})&&(this.h$=void 0)}; g.k.release=function(){Cw.prototype.release.call(this);a3(this.h$===void 0,"currentAdapter is still active during release");this.h$=void 0}; g.k.Zp=function(){return this.Uf.get().getPresentingPlayerType()===2}; g.k.wO=function(z,K){function f(){pb(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(K)||R3("Composite stopRendering: Unexpected layout exit reason",this.slot,z,{layoutExitReason:K}))} function M(){this.h$&&tQ(this,this.h$,K);if(this.Zp()&&(!pb(this)||K!=="abandoned")){f.call(this);var t;var B=((t=this.i_.get().U.getVideoData())==null?void 0:t.clientPlaybackNonce)||"";t=QW(this.i_.get(),1).clientPlaybackNonce;this.n6.get().finishSegmentByCpn(B,t,Jj(K,this.Ef))}L$S(this,K)} function p(){if(this.h$){var t=this.h$;t.GR().currentState<2&&t.wO(t.gE(),K);t=pb(this)&&K==="abandoned";this.Zp()&&!t&&(f.call(this),this.n6.get().finishSegmentByCpn(this.h$.gE().layoutId,QW(this.i_.get(),1).clientPlaybackNonce,Jj(K,this.Ef)))}} a3(z.layoutId===this.gE().layoutId,"StopRendering for wrong layout")&&Pf(this.oD.Y,K)&&(this.KK()?M.call(this):p.call(this))}; g.k.e3=function(z,K,f){Cw.prototype.e3.call(this,z,K,f);K.layoutId===this.gE().layoutId&&this.Uf.get().removeListener(this)}; g.k.nJ=function(){return QW(this.i_.get(),1).clientPlaybackNonce}; g.k.Nw=function(z,K,f){uNo(Object.assign({},Tx(this),{cpn:z}));if(!pb(this)||f!==5)if(this.KK()){if(this.h$&&this.h$.gE().layoutId!==K){var M=this.h$.gE().layoutId;M!==z&&R3("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:M,exitingCpn:z,enteringCpn:K});z=gf(f,this.Ef);tQ(this,this.h$,z)}else this.h$&&R3("onClipExited: active layout is entering again");K===this.nJ()&&PzS(this,f)}else{if(this.h$&&this.h$.gE().layoutId===z)E5q(this,this.h$,f);else{var p;R3("Exiting cpn does not match active cpn", this.slot,(M=this.h$)==null?void 0:M.gE(),{exitingCpn:z,transitionReason:f,activeCpn:(p=this.h$)==null?void 0:p.gE().layoutId})}K===this.nJ()&&(this.h$!==void 0&&(R3("active adapter is not properly exited",this.slot,this.layout,{activeLayout:hP(this.h$.gE())}),E5q(this,this.h$,f)),PzS(this,f),L$S(this,this.oD.Y.S))}}; g.k.KK=function(){return MI(this.Ef.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.k.startRendering=function(z){this.pR(z)&&(z=this.oD,a3(z.S===1,"tickStartRendering: state is not initial"),z.S=2,this.ON())}; g.k.R_=function(z){S$g(Object.assign({},Tx(this),{cpn:z}));var K=this.g$.find(function(f){return f.gE().layoutId===z}); K?(this.oD.S!==2&&(pdu(this.h9,this.slot.slotId),a3(this.oD.S===2,"Expect started"),this.callback.Rp(this.slot,this.layout)),this.eL(K),d3(this.Hg,this.slot,K.gE())):Hpd(this,z)}; g.k.mL=function(z,K){DPT(this,z,K);var f=this.rh();f?yES(f,z,K)&&QVg(this,"skipped"):qGq(this,"onSkipRequested")}; g.k.zZ=function(z,K){var f;a:{if(f=this.rh()){if(k9d(this),hPI(f,z,K)&&(z=aEu(this,f,z,K),z!==void 0)){f={wy:f,GHH:this.g$[z]};break a}}else qGq(this,"SkipWithAdPodSkip");f=void 0}if(z=f)f=z.wy,K=z.GHH,z=f.gE().layoutId,this.KK()?tQ(this,f,"skipped"):f.wO(f.gE(),"skipped"),f=K.gE().layoutId,this.n6.get().finishSegmentByCpn(z,f,Jj("skipped",this.Ef))}; g.k.Bt=function(){R3("Not used in html5_ssap_fix_layout_exit")}; g.k.Fo=function(z){var K;(K=this.rh())==null||K.Fo(z)}; g.k.m7=function(){R3("Not used in html5_ssap_fix_layout_exit")}; g.k.UH=function(z,K,f){var M;if(((M=this.rh())==null?void 0:M.gE().layoutId)!==K.layoutId)return void R3("requestToExitSubLayout: wrong layout");QVg(this,f)};g.h(Bp,g.J);g.k=Bp.prototype;g.k.u8=function(){return this.f6.u8()}; g.k.gE=function(){return this.f6.gE()}; g.k.init=function(){var z=Dx(this.gE().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");z&&(z.current=this);this.XZ()}; g.k.XZ=function(){this.f6.init()}; g.k.release=function(){var z=Dx(this.gE().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");z&&(z.current=null);this.Zg()}; g.k.Zg=function(){this.f6.release()}; g.k.TK=function(){this.f6.TK()}; g.k.eD=function(){this.f6.eD()}; g.k.mL=function(z,K){R3("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.u8(),this.gE(),{requestingSlot:z,requestingLayout:K})}; g.k.startRendering=function(z){z.layoutId!==this.gE().layoutId?this.callback.aX(this.u8(),z,new ei("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.gE().layoutId+("and LayoutType: "+this.gE().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Uf.get().addListener(this),Pd(this.Yb(),this),R_p(this.c8.get()),Q1u(this.Ef.get())||NOS(this.Uf.get()),this.f6.startRendering(z))}; g.k.wO=function(z,K){this.mB=!0;this.f6.wO(z,K);this.Uf.get().U.OI();L_8(this.j3.get(),{});z=$X(this.Uf.get(),1);z.isPaused()&&!g.Z(z,2)&&this.Uf.get().playVideo();this.Uf.get().removeListener(this);this.mB&&this.f6.u1()}; g.k.Rp=function(z,K){this.f6.Rp(z,K)}; g.k.e3=function(z,K,f){K.layoutId===this.gE().layoutId&&(this.mB=!1,Hd(this.Yb(),this));this.f6.e3(z,K,f);K.layoutId===this.gE().layoutId&&Kb(this.c8.get())}; g.k.P7=function(z){this.f6.P7(z)}; g.k.Fo=function(z){if(z.state.isError()){var K,f;this.m7((K=z.state.Pj)==null?void 0:K.errorCode,new ei("There was a player error during this media layout.",{playerErrorCode:(f=z.state.Pj)==null?void 0:f.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.f6.Fo(z)}; g.k.m7=function(z,K,f){this.f6.D4(z,K,f)}; g.k.onFullscreenToggled=function(z){this.f6.onFullscreenToggled(z)}; g.k.Hj=function(z){this.f6.Hj(z)}; g.k.bj=function(z){this.f6.bj(z)}; g.k.onVolumeChange=function(){this.f6.onVolumeChange()}; g.k.GN=function(){}; g.k.DX=function(){}; g.k.cj=function(){}; g.k.eF=function(){}; g.k.WA=function(){}; g.k.mV=function(){}; g.k.x3=function(){}; g.k.hJ=function(){}; g.k.R5=function(){}; g.k.zH=function(){}; g.k.iW=function(){}; g.k.If=function(){}; g.k.KW=function(){};g.k=NZ.prototype;g.k.u8=function(){return this.slot}; g.k.gE=function(){return this.layout}; g.k.init=function(){this.ML.get().addListener(this);this.Uf.get().addListener(this);var z=Dx(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var K=Dx(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.J){var f=this.ML.get().yX.slice(-1)[0];f!==void 0&&(z=f.startSecs*1E3,K=(f.startSecs+f.mP)*1E3)}this.w5(z,K);var M;f=(M=this.i_.get().wc)==null?void 0:M.clientPlaybackNonce;M=this.layout.GP.adClientDataEntry;vp(this.Gh.get(),{daiStateTrigger:{filledAdsDurationMs:K-z,contentCpn:f, adClientData:M}});var p=this.ML.get();p=VXS(p.T,z,K);p!==null&&(vp(this.Gh.get(),{daiStateTrigger:{filledAdsDurationMs:p-z,contentCpn:f,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:M}}),this.n6.get().wv(p,K))}; g.k.release=function(){this.Zg();this.ML.get().removeListener(this);this.Uf.get().removeListener(this)}; g.k.startRendering=function(){this.AP();this.callback.Rp(this.slot,this.layout)}; g.k.wO=function(z,K){this.EK(K);this.driftRecoveryMs!==null&&(I$(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(n5I(this)-Dx(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.Uf.get().U.dL()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.e3(this.slot,this.layout,K)}; g.k.UX=function(){return!1}; g.k.NR=function(z){var K=Dx(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),f=Dx(this.layout.clientMetadata,"metadata_type_layout_exit_ms");z*=1E3;if(K<=z&&z0&&s5(this.S(),K)}; g.k.cj=function(z){this.C.delete(z.slotId);for(var K=[],f=g.a(this.m9.values()),M=f.next();!M.done;M=f.next()){M=M.value;var p=M.trigger;p instanceof pU&&p.triggeringSlotId===z.slotId&&K.push(M)}K.length>0&&s5(this.S(),K)}; g.k.eF=function(z){for(var K=[],f=g.a(this.m9.values()),M=f.next();!M.done;M=f.next()){M=M.value;var p=M.trigger;p instanceof ZM&&p.slotType===z.slotType&&p.S!==z.slotId&&K.push(M)}K.length>0&&s5(this.S(),K)}; g.k.WA=function(z){this.T.add(z.slotId);for(var K=[],f=g.a(this.m9.values()),M=f.next();!M.done;M=f.next())M=M.value,M.trigger instanceof zc&&z.slotId===M.trigger.triggeringSlotId&&K.push(M);K.length>0&&s5(this.S(),K)}; g.k.mV=function(z){this.T.delete(z.slotId);this.J.add(z.slotId);for(var K=[],f=g.a(this.m9.values()),M=f.next();!M.done;M=f.next())if(M=M.value,M.trigger instanceof KU)z.slotId===M.trigger.triggeringSlotId&&K.push(M);else if(M.trigger instanceof di){var p=M.trigger;z.slotId===p.slotId&&this.Y.has(p.triggeringLayoutId)&&K.push(M)}K.length>0&&s5(this.S(),K)}; g.k.x3=function(z){for(var K=[],f=g.a(this.m9.values()),M=f.next();!M.done;M=f.next())M=M.value,M.trigger instanceof $P&&z.slotId===M.trigger.triggeringSlotId&&K.push(M);K.length>0&&s5(this.S(),K)}; g.k.hJ=function(z){for(var K=[],f=g.a(this.m9.values()),M=f.next();!M.done;M=f.next())M=M.value,M.trigger instanceof fU&&z.slotId===M.trigger.triggeringSlotId&&K.push(M);K.length>0&&s5(this.S(),K)}; g.k.R5=function(z,K){this.W.add(K.layoutId)}; g.k.zH=function(z,K){this.W.delete(K.layoutId)}; g.k.Rp=function(z,K){this.Y.add(K.layoutId);for(var f=[],M=g.a(this.m9.values()),p=M.next();!p.done;p=M.next())if(p=p.value,p.trigger instanceof cp)K.layoutId===p.trigger.triggeringLayoutId&&f.push(p);else if(p.trigger instanceof ri){var t=p.trigger;z.slotType===t.slotType&&K.layoutType===t.layoutType&&K.layoutId!==t.S&&f.push(p)}else p.trigger instanceof di&&(t=p.trigger,K.layoutId===t.triggeringLayoutId&&this.J.has(t.slotId)&&f.push(p));f.length>0&&s5(this.S(),f)}; g.k.e3=function(z,K,f){this.Y.delete(K.layoutId);z=[];for(var M=g.a(this.m9.values()),p=M.next();!p.done;p=M.next())if(p=p.value,p.trigger instanceof AQ&&K.layoutId===p.trigger.triggeringLayoutId&&z.push(p),p.trigger instanceof sS){var t=p.trigger;K.layoutId===t.triggeringLayoutId&&t.S.includes(f)&&z.push(p)}z.length>0&&s5(this.S(),z)}; g.k.iW=function(){}; g.k.BW=function(){this.J.clear()}; g.k.CY=function(){};g.h(rU,g.J);rU.prototype.f7=function(z,K,f,M){if(this.m9.has(K.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(K instanceof gi))throw new C("Incorrect TriggerType: Tried to register trigger of type "+K.triggerType+" in CloseRequestedTriggerAdapter");this.m9.set(K.triggerId,new Nv(z,K,f,M))}; rU.prototype.VL=function(z){this.m9.delete(z.triggerId)};g.h(od,g.J);od.prototype.f7=function(z,K,f,M){if(this.m9.has(K.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(K instanceof JQ||K instanceof Cb))throw new C("Incorrect TriggerType: Tried to register trigger of type "+K.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.m9.set(K.triggerId,new Nv(z,K,f,M))}; od.prototype.VL=function(z){this.m9.delete(z.triggerId)}; od.prototype.BW=function(z){for(var K=[],f=K.push,M=f.apply,p=[],t=g.a(this.m9.values()),B=t.next();!B.done;B=t.next())B=B.value,B.trigger instanceof JQ&&B.trigger.bv===z&&p.push(B);M.call(f,K,g.P(p));f=K.push;M=f.apply;p=[];t=g.a(this.m9.values());for(B=t.next();!B.done;B=t.next())B=B.value,B.trigger instanceof Cb&&B.trigger.S!==z&&p.push(B);M.call(f,K,g.P(p));K.length&&s5(this.S(),K)}; od.prototype.CY=function(z){for(var K=[],f=K.push,M=f.apply,p=[],t=g.a(this.m9.values()),B=t.next();!B.done;B=t.next()){B=B.value;var v=B.trigger;v instanceof Cb&&v.S===z&&p.push(B)}M.call(f,K,g.P(p));K.length&&s5(this.S(),K)};g.h(C9,g.J);g.k=C9.prototype;g.k.f7=function(z,K,f,M){if(this.m9.has(K.triggerId))throw new C("Tried to register duplicate trigger for slot.");var p="adtriggercuerange:"+K.triggerId;if(K instanceof F0)o9I(this,z,K,f,M,p,K.S.start,K.S.end,K.bv,K.visible);else if(K instanceof ib)o9I(this,z,K,f,M,p,0x7ffffffffffff,0x8000000000000,K.bv,K.visible);else throw new C("Incorrect TriggerType: Tried to register trigger of type "+K.triggerType+" in CueRangeTriggerAdapter");}; g.k.VL=function(z){var K=this.m9.get(z.triggerId);K&&this.P8.get().removeCueRange(K.cueRangeId);this.m9.delete(z.triggerId)}; g.k.onCueRangeEnter=function(z){var K=C5a(this,z);if(K&&(K=this.m9.get(K)))if(g.Z($X(this.Uf.get()),32))this.S.add(K.cueRangeId);else{var f=K==null?void 0:K.DT.trigger;if(f instanceof F0||f instanceof ib){if(VR(this.context.Ef.get())){var M=K.DT.slot,p=K.DT.layout,t={};this.context.OT.Nc("cre",(t.ca=K.DT.category,t.tt=f.triggerType,t.st=M.slotType,t.lt=p==null?void 0:p.layoutType,t.cid=z,t))}s5(this.Y(),[K.DT])}}}; g.k.onCueRangeExit=function(z){(z=C5a(this,z))&&(z=this.m9.get(z))&&this.S.delete(z.cueRangeId)}; g.k.Fo=function(z){if(us(z,16)<0){z=g.a(this.S);for(var K=z.next();!K.done;K=z.next())this.onCueRangeEnter(K.value,!0);this.S.clear()}}; g.k.DX=function(){}; g.k.cj=function(){}; g.k.eF=function(){}; g.k.WA=function(){}; g.k.mV=function(){}; g.k.x3=function(){}; g.k.hJ=function(){}; g.k.R5=function(){}; g.k.zH=function(){}; g.k.Rp=function(){}; g.k.e3=function(){}; g.k.iW=function(){}; g.k.P7=function(){}; g.k.onFullscreenToggled=function(){}; g.k.Hj=function(){}; g.k.GN=function(){}; g.k.bj=function(){}; g.k.onVolumeChange=function(){}; g.k.If=function(){}; g.k.KW=function(){};g.h(T6,g.J);g.k=T6.prototype; g.k.f7=function(z,K,f,M){if(this.Y.has(K.triggerId)||this.T.has(K.triggerId))throw new C("Tried to re-register the trigger.");z=new Nv(z,K,f,M);if(z.trigger instanceof xq)this.Y.set(z.trigger.triggerId,z);else if(z.trigger instanceof j7)this.T.set(z.trigger.triggerId,z);else throw new C("Incorrect TriggerType: Tried to register trigger of type "+z.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.Y.has(z.trigger.triggerId)&&z.slot.slotId===this.S&&s5(this.J(),[z])}; g.k.VL=function(z){this.Y.delete(z.triggerId);this.T.delete(z.triggerId)}; g.k.ov=function(z){z=z.slotId;if(this.S!==z){var K=[];this.S!=null&&K.push.apply(K,g.P(Tw8(this.T,this.S)));z!=null&&K.push.apply(K,g.P(Tw8(this.Y,z)));this.S=z;K.length&&s5(this.J(),K)}}; g.k.Nw=function(){}; g.k.R_=function(){};g.h(Ul,g.J);g.k=Ul.prototype;g.k.f7=function(z,K,f,M){if(this.m9.has(K.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(K instanceof o$))throw new C("Incorrect TriggerType: Tried to register trigger of type "+K.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.m9.set(K.triggerId,new Nv(z,K,f,M))}; g.k.VL=function(z){this.m9.delete(z.triggerId)}; g.k.Rp=function(){}; g.k.e3=function(){}; g.k.DX=function(){}; g.k.cj=function(){}; g.k.eF=function(){}; g.k.WA=function(){}; g.k.mV=function(){}; g.k.x3=function(){}; g.k.hJ=function(){}; g.k.R5=function(){}; g.k.zH=function(){}; g.k.iW=function(){};g.h(zI,g.J);g.k=zI.prototype;g.k.iW=function(z,K){for(var f=[],M=g.a(this.m9.values()),p=M.next();!p.done;p=M.next()){p=p.value;var t=p.trigger;t.opportunityType===z&&(t.associatedSlotId&&t.associatedSlotId!==K||f.push(p))}f.length&&s5(this.S(),f)}; g.k.f7=function(z,K,f,M){if(this.m9.has(K.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(K instanceof BM5))throw new C("Incorrect TriggerType: Tried to register trigger of type "+K.triggerType+" in OpportunityEventTriggerAdapter");this.m9.set(K.triggerId,new Nv(z,K,f,M))}; g.k.VL=function(z){this.m9.delete(z.triggerId)}; g.k.DX=function(){}; g.k.cj=function(){}; g.k.eF=function(){}; g.k.WA=function(){}; g.k.mV=function(){}; g.k.x3=function(){}; g.k.hJ=function(){}; g.k.R5=function(){}; g.k.zH=function(){}; g.k.Rp=function(){}; g.k.e3=function(){};g.h(Kg,g.J);g.k=Kg.prototype;g.k.f7=function(z,K,f,M){z=new Nv(z,K,f,M);if(K instanceof Yq||K instanceof OS||K instanceof X0||K instanceof Tp||K instanceof Bzd){if(this.m9.has(K.triggerId))throw new C("Tried to register duplicate trigger for slot.");this.m9.set(K.triggerId,z)}else throw new C("Incorrect TriggerType: Tried to register trigger of type "+K.triggerType+" in PrefetchTriggerAdapter");}; g.k.VL=function(z){this.m9.delete(z.triggerId)}; g.k.DX=function(z){var K=z.slotFulfillmentTriggers.find(function(f){return f instanceof Yq}); K&&($$(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",K.breakDurationMs,new Set([z.slotId]),!0),bb(this.Gh.get(),"ads_css","sid."+z.slotId+";bd."+K.breakDurationMs))}; g.k.cj=function(){}; g.k.eF=function(){}; g.k.WA=function(){}; g.k.mV=function(){}; g.k.x3=function(){}; g.k.hJ=function(){}; g.k.R5=function(){}; g.k.zH=function(){}; g.k.Rp=function(){}; g.k.e3=function(){}; g.k.iW=function(){}; g.k.UX=function(z){var K=this;if(!this.S)return R3("Unexpected cue break before fetch instructions are available"),!1;this.Y&&this.Y.stop();this.T&&g.$4(this.T);var f=K0a(this,z);if(!f){for(var M=[],p=g.a(this.m9.values()),t=p.next();!t.done;t=p.next())t=t.value.trigger,t instanceof Yq&&M.push(t.breakDurationMs);bb(this.Gh.get(),"ads_ncfs","cid."+z.identifier+";cd."+z.mP.toFixed(3)+M.slice(0,6).map(function(B){return";bd."+B}).join("")); return!1}(new g.Kl(function(){var B=f.trigger,v=f.slot;$$(K,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",B.breakDurationMs,new Set,!0);$$(K,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",B.breakDurationMs,new Set,!1);for(var I=0,G=g.a(K.m9.values()),b=G.next();!b.done;b=G.next()){b=b.value;var e=b.trigger;b.slot.slotId===v.slotId&&(K.m9.delete(e.triggerId),I++)}bb(K.Gh.get(),"ads_csf","sid."+v.slotId+";bd."+B.breakDurationMs+";dt."+I)},10)).start(); return!0}; g.k.NR=function(){}; g.k.BW=function(z){this.S&&this.S.contentCpn!==z?(R3("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:z,fetchInstructionsCpn:this.S.contentCpn}),fg(this)):zHd(this)}; g.k.CY=function(z){this.S&&this.S.contentCpn!==z&&R3("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:z,fetchInstructionsCpn:this.S.contentCpn},!0);fg(this)}; g.k.Sw=function(z){var K=this;if(this.S)R3("Unexpected multiple fetch instructions for the current content");else{this.S=z;z=fxg(z);this.Y=new g.Kl(function(){zHd(K)},z?z:6E5); this.Y.start();this.T=new g.Kl(function(){K.S&&(K.Y&&(K.Y.stop(),K.Y.start()),U3W(K,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},$aa(this.S)); z=this.Uf.get().getCurrentTimeSec(1,!1);for(var f=g.a(this.ML.get().yX),M=f.next();!M.done;M=f.next())M=M.value,bb(this.Gh.get(),"nocache","ct."+Date.now()+";cmt."+z+";d."+M.mP.toFixed(3)+";tw."+(M.startSecs-z)+";cid."+M.identifier+";")}}; g.k.JL=function(){g.J.prototype.JL.call(this);fg(this)};g.h(Mf,g.J);g.k=Mf.prototype;g.k.f7=function(z,K,f,M){if(this.m9.has(K.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(K instanceof BI))throw new C("Incorrect TriggerType: Tried to register trigger of type "+K.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.m9.set(K.triggerId,new Nv(z,K,f,M));z=this.S.has(K.triggeringLayoutId)?this.S.get(K.triggeringLayoutId):new Set;z.add(K);this.S.set(K.triggeringLayoutId,z)}; g.k.VL=function(z){this.m9.delete(z.triggerId);if(!(z instanceof BI))throw new C("Incorrect TriggerType: Tried to unregister trigger of type "+z.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var K=this.Y.get(z.triggerId);K&&(K.dispose(),this.Y.delete(z.triggerId));if(K=this.S.get(z.triggeringLayoutId))K.delete(z),K.size===0&&this.S.delete(z.triggeringLayoutId)}; g.k.DX=function(){}; g.k.cj=function(){}; g.k.eF=function(){}; g.k.WA=function(){}; g.k.mV=function(){}; g.k.x3=function(){}; g.k.hJ=function(){}; g.k.R5=function(){}; g.k.zH=function(){}; g.k.iW=function(){}; g.k.Rp=function(z,K){var f=this;if(this.S.has(K.layoutId)){z=this.S.get(K.layoutId);z=g.a(z);var M=z.next();for(K={};!M.done;K={MX:void 0},M=z.next())K.MX=M.value,M=new g.Kl(function(p){return function(){var t=f.m9.get(p.MX.triggerId);s5(f.T(),[t])}}(K),K.MX.durationMs),M.start(),this.Y.set(K.MX.triggerId,M)}}; g.k.e3=function(){};g.h(pg,g.J);pg.prototype.f7=function(z,K,f,M){if(this.m9.has(K.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(K instanceof nb))throw new C("Incorrect TriggerType: Tried to register trigger of type "+K.triggerType+" in VideoTransitionTriggerAdapter.");this.m9.set(K.triggerId,new Nv(z,K,f,M))}; pg.prototype.VL=function(z){this.m9.delete(z.triggerId)};vl.prototype.ZO=function(z){return z.kind==="AD_PLACEMENT_KIND_START"};g.h(bV,g.J);g.k=bV.prototype;g.k.logEvent=function(z){this.s_(z)}; g.k.Nr=function(z,K,f){this.s_(z,void 0,void 0,void 0,K,void 0,void 0,void 0,K.adSlotLoggingData,void 0,void 0,f)}; g.k.MZ=function(z,K,f,M){this.s_(z,void 0,void 0,void 0,K,f?f:void 0,void 0,void 0,K.adSlotLoggingData,f?f.adLayoutLoggingData:void 0,void 0,M)}; g.k.gJ=function(z,K,f,M){MI(this.Ef.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+z,"trigger:",f,"slot:",K,"layout:",M);Rf(this.S.get())&&this.s_(z,void 0,void 0,void 0,K,M?M:void 0,void 0,f,K.adSlotLoggingData,M?M.adLayoutLoggingData:void 0)}; g.k.HY=function(z,K,f,M,p){this.s_(z,K,f,M,void 0,void 0,void 0,void 0,void 0,void 0,void 0,p)}; g.k.ye=function(z,K,f,M){this.s_("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,f,M,void 0,void 0,f.adSlotLoggingData,M?M.adLayoutLoggingData:void 0,{errorType:z,errorMessage:K})}; g.k.s_=function(z,K,f,M,p,t,B,v,I,G,b,e){var w=this;e=e===void 0?0:e;MI(this.Ef.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+z,"slot:",p,"layout:",t,"ping:",B,"Opportunity:",{opportunityType:K,associatedSlotId:f,daH:M,e8f:v,adSlotLoggingData:I,adLayoutLoggingData:G});try{var D=function(){if(!w.Ef.get().U.Z().B("html5_disable_client_tmp_logs")&&z!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){z||R3("Empty PACF event type",p,t);var y=Rf(w.S.get()),R={eventType:z,eventOrder:++w.eventCount},S={}; p&&(S.slotData=af(y,p));t&&(S.layoutData=de8(y,t));B&&(S.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:B.S.serializedAdPingMetadata,pingIndex:B.index});v&&(S.triggerData=hK(v.trigger,v.category));K&&(S.opportunityData=clI(y,K,f,M));y={organicPlaybackContext:{contentCpn:QW(w.i_.get(),1).clientPlaybackNonce}};y.organicPlaybackContext.isLivePlayback=QW(w.i_.get(),1).CI;var E;y.organicPlaybackContext.isMdxPlayback=(E=QW(w.i_.get(),1))==null?void 0:E.isMdxPlayback; var L;if((L=QW(w.i_.get(),1))==null?0:L.daiEnabled)y.organicPlaybackContext.isDaiContent=!0;var q;if(E=(q=QW(w.i_.get(),2))==null?void 0:q.clientPlaybackNonce)y.adVideoPlaybackContext={adVideoCpn:E};y&&(S.externalContext=y);R.adClientData=S;I&&(R.serializedSlotAdServingData=I.serializedSlotAdServingDataEntry);G&&(R.serializedAdServingData=G.serializedAdServingDataEntry);b&&(R.errorInfo=b);g.Ds("adsClientStateChange",{adsClientEvent:R})}}; e&&e>0?g.Mg(g.tO(),function(){return D()},e):D()}catch(y){MI(this.Ef.get(),"html5_log_pacf_logging_errors")&&g.Mg(g.tO(),function(){R3(y instanceof Error?y:String(y),p,t,{pacf_message:"exception during pacf logging"})})}};var J$S=new Set("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED".split(" "));g.h(eR,bV);g.k=eR.prototype; g.k.Nr=function(z,K,f){bV.prototype.Nr.call(this,z,K,f);VR(this.Ef.get())&&(f={},this.context.OT.Nc("pacf",(f.et=z,f.st=K.slotType,f.si=K.slotId,f)))}; g.k.MZ=function(z,K,f,M){var p=J$S.has(z);bV.prototype.MZ.call(this,z,K,f,M);VR(this.Ef.get(),p)&&(M={},this.context.OT.Nc("pacf",(M.et=z,M.st=K.slotType,M.si=K.slotId,M.lt=f==null?void 0:f.layoutType,M.li=f==null?void 0:f.layoutId,M.p_ac=f==null?void 0:f.layoutId,M)))}; g.k.HY=function(z,K,f,M,p){bV.prototype.HY.call(this,z,K,f,M,p);VR(this.Ef.get())&&(f={},this.context.OT.Nc("pacf",(f.et=z,f.ot=K,f.ss=M==null?void 0:M.length,f)))}; g.k.gJ=function(z,K,f,M){bV.prototype.gJ.call(this,z,K,f,M);if(VR(this.Ef.get())){var p={};this.context.OT.Nc("pacf",(p.et=z,p.tt=f.trigger.triggerType,p.tc=f.category,p.st=K.slotType,p.si=K.slotId,p.lt=M==null?void 0:M.layoutType,p.li=M==null?void 0:M.layoutId,p.p_ac=M==null?void 0:M.layoutId,p))}}; g.k.ye=function(z,K,f,M){bV.prototype.ye.call(this,z,K,f,M);if(VR(this.Ef.get(),!0)){var p={};this.context.OT.Nc("perror",(p.ert=z,p.erm=K,p.st=f.slotType,p.si=f.slotId,p.lt=M==null?void 0:M.layoutType,p.li=M==null?void 0:M.layoutId,p.p_ac=M==null?void 0:M.layoutId,p))}}; g.k.s_=function(z,K,f,M,p,t,B,v,I,G,b){var e=this.Ef.get();g.iY(e.U.Z())?(e=this.Ef.get(),e=g.uY(e.U.Z().experiments,"H5_async_logging_delay_ms")):e=void 0;bV.prototype.s_.call(this,z,K,f,M,p,t,B,v,I,G,b,e)};w8.prototype.clear=function(){this.S.clear()};Dw.prototype.state=function(){return this.S==="fulfilled"?{state:"fulfilled",value:this.result}:this.S==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; Dw.prototype.J=function(z){k$(z)||ym(z)?uV(h3(z),this.J.bind(this),this.reject.bind(this)):(this.S="fulfilled",this.result=z,SR(this))}; Dw.prototype.reject=function(z){this.S="rejected";this.error=z;SR(this)}; var ym=Xj(function(z){return C8H(z)?z instanceof Dw:!1});Object.freeze({IOf:function(z){var K=qf(z);return uV(Qm(K,function(f){return K[f].S==="rejected"}),function(f){return Number.isNaN(f)?K.map(function(M){return M.state().value}):K[f]})}, C0_:function(z){var K=qf(z);return uV(Qm(K),function(){return K.map(function(f){return f.state()})})}, BZc:function(z){var K=qf(z);return uV(Qm(K,function(f){return K[f].S==="fulfilled"}),function(f){return Number.isNaN(f)?ae(new AggregateError(K.map(function(M){return M.state().reason}))):K[f].state().value})}, GbL:function(z){var K=qf(z);return uV(Qm(K,function(){return!0}),function(f){return K[f]})}});var mG=window.vRf||"vi";Wl.prototype.oG=function(z){this.client=z}; Wl.prototype.S=function(){this.clear();this.csn=g.Vz()}; Wl.prototype.clear=function(){this.T.clear();this.Y.clear();this.J.clear();this.csn=null};g8.prototype.oG=function(z){g.Mu(J3().oG).bind(J3())(z)}; g8.prototype.clear=function(){g.Mu(J3().clear).bind(J3())()};g.k=iV.prototype;g.k.oG=function(z){this.client=z}; g.k.Bo=function(z,K){var f=this;K=K===void 0?{}:K;g.Mu(function(){var M,p,t,B=((M=g.A(z==null?void 0:z.commandMetadata,g.SZ))==null?void 0:M.rootVe)||((p=g.A(z==null?void 0:z.commandMetadata,zF2))==null?void 0:(t=p.screenVisualElement)==null?void 0:t.uiType);if(B){M=g.A(z==null?void 0:z.commandMetadata,ayo);if(M==null?0:M.parentTrackingParams){var v=g.qe(M.parentTrackingParams);if(M.parentCsn)var I=M.parentCsn}else K.clickedVisualElement?v=K.clickedVisualElement:z.clickTrackingParams&&(v=g.qe(z.clickTrackingParams)); a:{M=g.A(z,g.f5);p=g.A(z,bmT);if(M){if(p=uev(M,"VIDEO")){M={token:p,videoId:M.videoId};break a}}else if(p&&(M=uev(p,"PLAYLIST"))){M={token:M,playlistId:p.playlistId};break a}M=void 0}K=Object.assign({},{cttAuthInfo:M,parentCsn:I},K);if(g.Hg("expectation_logging")){var G;K.loggingExpectations=((G=g.A(z==null?void 0:z.commandMetadata,zF2))==null?void 0:G.loggingExpectations)||void 0}cl(f,B,v,K)}else g.Al(new g.UT("Error: Trying to create a new screen without a rootVeType",z))})()}; g.k.clickCommand=function(z,K,f){z=z.clickTrackingParams;f=f===void 0?0:f;z?(f=g.Vz(f===void 0?0:f))?(tt(this.client,f,g.qe(z),K),K=!0):K=!1:K=!1;return K}; g.k.stateChanged=function(z,K,f){this.visualElementStateChanged(g.qe(z),K,f===void 0?0:f)}; g.k.visualElementStateChanged=function(z,K,f){f=f===void 0?0:f;f===0&&this.Y.has(f)?this.D.push([z,K]):q5T(this,z,K,f)};Y$.prototype.fetch=function(z,K,f){var M=this,p=Vio(z,K,f);return new Promise(function(t,B){function v(){if(f==null?0:f.vX)try{var G=M.handleResponse(z,p.status,p.response,f);t(G)}catch(b){B(b)}else t(M.handleResponse(z,p.status,p.response,f))} p.onerror=v;p.onload=v;var I;p.send((I=K.body)!=null?I:null)})}; Y$.prototype.handleResponse=function(z,K,f,M){f=f.replace(")]}'","");try{var p=JSON.parse(f)}catch(t){g.Al(new g.UT("JSON parsing failed after XHR fetch",z,K,f));if((M==null?0:M.vX)&&f)throw new g.IU(1,"JSON parsing failed after XHR fetch");p={}}K!==200&&(g.Al(new g.UT("XHR API fetch failed",z,K,f)),p=Object.assign({},p,{errorMetadata:{status:K}}));return p};X9.getInstance=function(){var z=g.CW("ytglobal.storage_");z||(z=new X9,g.ov("ytglobal.storage_",z));return z}; X9.prototype.estimate=function(){var z,K,f;return g.n(function(M){z=navigator;return((K=z.storage)==null?0:K.estimate)?M.return(z.storage.estimate()):((f=z.webkitTemporaryStorage)==null?0:f.queryUsageAndQuota)?M.return(nzo()):M.return()})}; g.ov("ytglobal.storageClass_",X9);eO.prototype.Bc=function(z){this.handleError(z)}; eO.prototype.logEvent=function(z,K){switch(z){case "IDB_DATA_CORRUPTED":g.Hg("idb_data_corrupted_killswitch")||this.S("idbDataCorrupted",K);break;case "IDB_UNEXPECTEDLY_CLOSED":this.S("idbUnexpectedlyClosed",K);break;case "IS_SUPPORTED_COMPLETED":g.Hg("idb_is_supported_completed_killswitch")||this.S("idbIsSupportedCompleted",K);break;case "QUOTA_EXCEEDED":JKI(this,K);break;case "TRANSACTION_ENDED":this.T&&Math.random()<=.1&&this.S("idbTransactionEnded",K);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":z= Object.assign({},K,{hasWindowUnloaded:this.Y}),this.S("idbTransactionAborted",z)}};var r6={},Riq=g.pR("yt-player-local-media",{Nb:(r6.index={qt:2},r6.media={qt:2},r6.captions={qt:5},r6),shared:!1,upgrade:function(z,K){K(2)&&(g.JO(z,"index"),g.JO(z,"media"));K(5)&&g.JO(z,"captions");K(6)&&(gg(z,"metadata"),gg(z,"playerdata"))}, version:5});var g0T={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1,kitkat:4.4,lollipop:5.1,marshmallow:6,nougat:7.1},Z3;a:{var ob=g.H4();ob=ob.toLowerCase();if(g.a9(ob,"android")){var iso=ob.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(iso){var d0H=parseFloat(iso[1]);if(d0H<100){Z3=d0H;break a}}var c$1=ob.match("("+Object.keys(g0T).join("|")+")");Z3=c$1?g0T[c$1[0]]:0}else Z3=void 0}var cZ=Z3,d7=cZ>=0;var U7S=window;var gzp=ye(function(){var z,K;return(K=(z=window).matchMedia)==null?void 0:K.call(z,"(prefers-reduced-motion: reduce)").matches});var F9;g.x$=new sI;F9=0;var BZ=Y55()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.Ux?!0:!1;var Zw={Hi:function(z){z[N[72]]()}, gk:function(z,K){var f=z[0];z[0]=z[K%z[N[8]]];z[K%z[N[8]]]=f}, dD:function(z,K){z[N[7]](0,K)}};var kp8={KMf:"adunit",Soe:"detailpage",HWH:"editpage",xrH:"embedded",Loe:"leanback",Smd:"previewpage",Yma:"profilepage",ME:"unplugged",yDH:"playlistoverview",r01:"sponsorshipsoffer",fxc:"shortspage",N2e:"handlesclaiming",dDh:"immersivelivepage",NSd:"creatormusic",jLE:"immersivelivepreviewpage",v3L:"admintoolyurt",gqx:"shortsaudiopivot",s1E:"consumption"};var xad=2592E3;var Ci,soH,HE;Ci={};g.$6=(Ci.STOP_EVENT_PROPAGATION="html5-stop-propagation",Ci.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",Ci.IV_DRAWER_OPEN="ytp-iv-drawer-open",Ci.MAIN_VIDEO="html5-main-video",Ci.VIDEO_CONTAINER="html5-video-container",Ci.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",Ci.HOUSE_BRAND="house-brand",Ci);soH={};HE=(soH.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",soH.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",soH);var zD5={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var tav={ANDROID:3,ANDROID_KIDS:18,ANDROID_MUSIC:21,ANDROID_UNPLUGGED:29,WEB:1,WEB_REMIX:67,WEB_UNPLUGGED:41,IOS:5,IOS_KIDS:19,IOS_MUSIC:26,IOS_UNPLUGGED:33},BII={android:"ANDROID","android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB","youtube.m":"WEB_REMIX","youtube.up":"WEB_UNPLUGGED",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},vx8={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var sxa={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.eA.prototype.getLanguageInfo=function(){return this.b8}; g.eA.prototype.getXtags=function(){if(!this.xtags){var z=this.id.split(";");z.length>1&&(this.xtags=z[1])}return this.xtags}; g.eA.prototype.toString=function(){return this.b8.name}; g.eA.prototype.getLanguageInfo=g.eA.prototype.getLanguageInfo;wp.prototype.equals=function(z){return this.Y===z.Y&&this.S===z.S&&this.T===z.T&&this.reason===z.reason&&(!yO||this.yE===z.yE)}; wp.prototype.isLocked=function(){return this.T&&!!this.Y&&this.Y===this.S}; wp.prototype.compose=function(z){if(z.T&&k6(z))return ZY;if(z.T||k6(this))return z;if(this.T||k6(z))return this;var K=this.Y&&z.Y?Math.max(this.Y,z.Y):this.Y||z.Y,f=this.S&&z.S?Math.min(this.S,z.S):this.S||z.S;K=Math.min(K,f);var M=0;yO&&(M=this.yE!==0&&z.yE!==0?Math.min(this.yE,z.yE):this.yE===0?z.yE:this.yE);return yO&&K===this.Y&&f===this.S&&M===this.yE||!yO&&K===this.Y&&f===this.S?this:yO?new wp(K,f,!1,f===this.S&&M===this.yE?this.reason:z.reason,M):new wp(K,f,!1,f===this.S?this.reason:z.reason)}; wp.prototype.J=function(z){return!z.video||yO&&this.yE!==0&&this.yE=0}; g.k.xa=function(){var z=this.segments[this.segments.length-1];return z?z.endTime:NaN}; g.k.L6=function(){return this.segments[0].startTime}; g.k.P$=function(){return this.segments.length}; g.k.e1=function(){return 0}; g.k.NZ=function(z){return(z=this.jg(z))?z.Ia:-1}; g.k.E6=function(z){return(z=this.It(z))?z.sourceURL:""}; g.k.getStartTime=function(z){return(z=this.It(z))?z.startTime:0}; g.k.sE=function(z){return this.getStartTime(z)+this.getDuration(z)}; g.k.jj=zo(1);g.k.isLoaded=function(){return this.segments.length>0}; g.k.It=function(z){if(this.S&&this.S.Ia===z)return this.S;z=g.l_(this.segments,new AH(z,0,0,0,""),function(K,f){return K.Ia-f.Ia}); return this.S=z>=0?this.segments[z]:null}; g.k.jg=function(z){if(this.S&&this.S.startTime<=z&&z=0?this.segments[z]:this.segments[Math.max(0,-z-2)]}; g.k.append=function(z){if(z.length)if(z=g.L1(z),this.segments.length){var K=this.segments.length?g.eS(this.segments).endTime:0,f=z[0].Ia-this.Mv();f>1&&ugp(this.segments);for(f=f>0?0:-f+1;fz.Ia&&this.index.PV()<=z.Ia+1}; g.k.update=function(z,K,f){this.index.append(z);inu(this.index,f);z=this.index;z.Y=K;z.T="update"}; g.k.x9=function(){return this.Et()?!0:ir.prototype.x9.call(this)}; g.k.M0=function(z,K){var f=this.index.E6(z),M=this.index.getStartTime(z),p=this.index.getDuration(z),t;K?p=t=0:t=this.info.yE>0?this.info.yE*p:1E3;return new Z1([new jK(3,this,void 0,"liveCreateRequestInfoForSegment",z,M,p,0,t,!K)],f)}; g.k.y8=function(){return this.Et()?0:this.initRange.length}; g.k.kJ=function(){return!1};$y.prototype.update=function(z){var K=void 0;this.Y&&(K=this.Y);var f=new $y,M=Array.from(z.getElementsByTagName("S"));if(M.length){var p=+zO(z,"timescale")||1,t=(+M[0].getAttribute("t")||0)/p,B=+zO(z,"startNumber")||0;f.J=t;var v=K?K.startSecs+K.mP:0,I=Date.parse(Vlq(zO(z,"yt:segmentIngestTime")))/1E3;f.C=z.parentElement.tagName==="SegmentTemplate";f.C&&(f.G=zO(z,"media"));z=K?B-K.Ia:1;f.W=z>0?0:-z+1;z=g.a(M);for(M=z.next();!M.done;M=z.next()){M=M.value;for(var G=+M.getAttribute("d")/p,b=(+M.getAttribute("yt:sid")|| 0)/p,e=+M.getAttribute("r")||0,w=0;w<=e;w++)if(K&&B<=K.Ia)B++;else{var D=new mhu(B,v,G,I+b,t);f.S.push(D);var y=M;var R=p,S=D.startSecs;D=y.getAttribute("yt:cuepointTimeOffset");var E=y.getAttribute("yt:cuepointDuration");if(D&&E){D=Number(D);S=-D/R+S;R=Number(E)/R;E=y.getAttribute("yt:cuepointContext")||null;var L=y.getAttribute("yt:cuepointIdentifier")||"";y=y.getAttribute("yt:cuepointEvent")||"";y=new CX(S,R,E,L,jo2[y]||"unknown",D)}else y=null;y&&f.T.push(y);B++;v+=G;t+=G;I+=G+b}}f.S.length&& (f.Y=g.eS(f.S))}this.W=f.W;this.Y=f.Y||this.Y;g.Po(this.S,f.S);g.Po(this.T,f.T);this.C=f.C;this.G=f.G;this.J===-1&&(this.J=f.getStreamTimeOffset())}; $y.prototype.getStreamTimeOffset=function(){return this.J===-1?0:this.J};g.h(Mp,g.jA);g.k=Mp.prototype;g.k.bS=function(){return this.ma}; g.k.Zz=function(z,K){z=px(this,z);return z>=0&&(K||!this.segments[z].pending)}; g.k.PV=function(){return this.Jr?this.segments.length?this.jg(this.L6()).Ia:-1:g.jA.prototype.PV.call(this)}; g.k.L6=function(){if(this.Ca)return 0;if(!this.Jr)return g.jA.prototype.L6.call(this);if(!this.segments.length)return 0;var z=Math.max(g.eS(this.segments).endTime-this.cX,0);return this.dh>0&&this.jg(z).Ia0)return this.Um/1E3;if(!this.segments.length)return g.jA.prototype.xa.call(this);var z=this.Mv();if(!this.Jr||z<=this.segments[this.segments.length-1].Ia)z=this.segments[this.segments.length-1];else{var K=this.segments[this.segments.length-1];z=new AH(z,Math.max(0,K.startTime-(K.Ia-z)*this.ma),this.ma,0,"sq/"+z,void 0,void 0,!0)}return this.Ca?Math.min(this.cX,z.endTime):z.endTime}; g.k.P$=function(){return this.Jr?this.segments.length?this.Mv()-this.PV()+1:0:g.jA.prototype.P$.call(this)}; g.k.Mv=function(){var z=Math.min(this.Tm,Math.max(g.jA.prototype.Mv.call(this),this.Ye)),K=this.cX*1E3;K=this.Um>0&&this.Um0&&this.Ye>0&&!K&&(K=this.jg(this.cX))&&(z=Math.min(K.Ia-1,z));return z}; g.k.YF=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.k.xB=function(z){var K=px(this,z.Ia);if(K>=0)this.segments[K]=z;else if(this.segments.splice(-(K+1),0,z),this.Ce&&z.Ia%(300/this.ma)===0){var f=this.segments[0].Ia,M=Math.floor(this.Ce/this.ma);z=z.Ia-M;K=-(K+1)-M;K>0&&z>f&&(this.segments=this.segments.slice(K))}}; g.k.wB=function(){return this.Ye}; g.k.pT=function(z){return fx?!this.Y&&z>=0&&this.Mv()<=z:g.jA.prototype.pT.call(this,z)}; g.k.jg=function(z){if(!this.Jr)return g.jA.prototype.jg.call(this,z);if(!this.segments.length)return null;var K=this.segments[this.segments.length-1];if(z=K.endTime)K=K.Ia+Math.floor((z-K.endTime)/this.ma+1);else{K=Wo(this.segments,function(M){return z=M.endTime?1:0}); if(K>=0)return this.segments[K];var f=-(K+1);K=this.segments[f-1];f=this.segments[f];K=Math.floor((z-K.endTime)/((f.startTime-K.endTime)/(f.Ia-K.Ia-1))+1)+K.Ia}return this.It(K)}; g.k.It=function(z){if(!this.Jr)return g.jA.prototype.It.call(this,z);if(!this.segments.length)return null;var K=px(this,z);if(K>=0)return this.segments[K];var f=-(K+1);K=this.ma;if(f===0)var M=Math.max(0,this.segments[0].startTime-(this.segments[0].Ia-z)*K);else f===this.segments.length?(M=this.segments[this.segments.length-1],M=M.endTime+(z-M.Ia-1)*K):(M=this.segments[f-1],K=this.segments[f],K=(K.startTime-M.endTime)/(K.Ia-M.Ia-1),M=M.endTime+(z-M.Ia-1)*K);return new AH(z,M,K,0,"sq/"+z,void 0,void 0, !0)}; var fx=!1;g.h(t5,Ud);g.k=t5.prototype;g.k.At=function(){return!0}; g.k.x9=function(){return!0}; g.k.VH=function(z){return this.Pr()&&z.T&&!z.C||!z.S.index.pT(z.Ia)}; g.k.JO=function(){}; g.k.WD=function(z,K){return typeof z!=="number"||isFinite(z)?Ud.prototype.WD.call(this,z,K===void 0?!1:K):new Z1([new jK(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.fW,void 0,this.fW*this.info.yE)],"")}; g.k.M0=function(z,K){var f=f===void 0?!1:f;if(this.index.Zz(z))return Ud.prototype.M0.call(this,z,K);var M=this.index.getStartTime(z),p=Math.round(this.fW*this.info.yE),t=this.fW;K&&(t=p=0);return new Z1([new jK(f?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",z,M,t,void 0,p,!K)],z>=0?"sq/"+z:"")};g.h(Br,ir);g.k=Br.prototype;g.k.mz=function(){return!1}; g.k.Pr=function(){return!1}; g.k.At=function(){return!1}; g.k.JO=function(){return new Z1([new jK(1,this,void 0,"otfInit")],this.C)}; g.k.KR=function(){return null}; g.k.Ll=function(z){this.VH(z);return sCg(this,Fk(z),!1)}; g.k.WD=function(z,K){K=K===void 0?!1:K;z=this.index.NZ(z);K&&(z=Math.min(this.index.Mv(),z+1));return sCg(this,z,!0)}; g.k.v3=function(z){z.info.type===1&&(this.S||(this.S=VN(z.Y)),z.S&&z.S.uri==="http://youtube.com/streaming/otf/durations/112015"&&AnI(this,z.S))}; g.k.VH=function(z){return z.T===0?!0:this.index.Mv()>z.Ia&&this.index.PV()<=z.Ia+1}; g.k.y8=function(){return 0}; g.k.kJ=function(){return!1};g.Np.prototype.info=function(){}; g.Np.prototype.debug=function(){}; g.Np.prototype.S=function(z){vr.apply(null,[5,this.tag,z].concat(g.P(g.i8.apply(1,arguments))))}; var XAp=new Map,OZI=new Map,xho=new function(){var z=this;this.S=new Map;this.dO={FAf:function(){return z.S}}};g.k=g.ky.prototype;g.k.Zz=function(z){return z<=this.Mv()}; g.k.e1=function(z){return this.offsets[z]}; g.k.getStartTime=function(z){return this.startTicks[z]/this.S}; g.k.sE=function(z){return this.getStartTime(z)+this.getDuration(z)}; g.k.jj=zo(0);g.k.ll=function(){return NaN}; g.k.getDuration=function(z){z=this.dn(z);return z>=0?z/this.S:-1}; g.k.dn=function(z){return z+1=0}; g.k.xa=function(){return this.Y?this.startTicks[this.count]/this.S:NaN}; g.k.L6=function(){return 0}; g.k.P$=function(){return this.count}; g.k.E6=function(){return""}; g.k.NZ=function(z){z=g.l_(this.startTicks.subarray(0,this.count),z*this.S);return z>=0?z:Math.max(0,-z-2)}; g.k.isLoaded=function(){return this.Mv()>=0}; g.k.m6=function(z,K){if(z>=this.Mv())return 0;var f=0;for(K=this.getStartTime(z)+K;zthis.getStartTime(z);z++)f=Math.max(f,$Bd(this,z)/this.getDuration(z));return f}; g.k.resize=function(z){z+=2;var K=this.offsets;this.offsets=new Float64Array(z+1);var f=this.startTicks;this.startTicks=new Float64Array(z+1);for(z=0;z0&&z&&(f=f.range.end+1,z=Math.min(z,this.info.contentLength-f),z>0&&M.push(new jK(4,this,sd(f,z),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,K)));return new Z1(M)}; g.k.v3=function(z){if(z.info.type===1){if(this.S)return;this.S=VN(z.Y)}else if(z.info.type===2){if(this.C||this.index.Mv()>=0)return;if(g.tn(this.info)){var K=this.index,f=g.GO(z);z=z.info.range.start;var M=g.KN(f,0,1936286840);f=oI8(M);K.S=f.timescale;var p=f.pp;K.offsets[0]=f.Qt+z+M.size;K.startTicks[0]=p;K.Y=!0;z=f.cN.length;for(M=0;M0&&z===t[0].dB)for(z=0;z=K+f)break}p.length||(z=new g.UT("b189619593",""+z,""+K,""+f),g.sm(z));return new Z1(p)}; g.k.vM=function(z){for(var K=this.Ws(z.info),f=z.info.range.start+z.info.Y,M=[],p=0;p=this.index.e1(f+1);)f++;return this.Vg(f,K,z.T).tL}; g.k.VH=function(z){z.cW();return this.x9()?!0:z.range.end+1this.info.contentLength&&(K=new dP(K.start,this.info.contentLength-1)),new Z1([new jK(4,z.S,K,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,z.clipId)]);z.type===4&&(z=this.Ws(z),z=z[z.length-1]);var f=0,M=z.range.start+z.Y+z.T;z.type===3&&(z.cW(),f=z.Ia,M===z.range.end+1&&(f+=1));return this.Vg(f,M,K)}; g.k.Ll=function(){return null}; g.k.WD=function(z,K){K=K===void 0?!1:K;z=this.index.NZ(z);K&&(z=Math.min(this.index.Mv(),z+1));return this.Vg(z,this.index.e1(z),0,void 0)}; g.k.mz=function(){return!0}; g.k.Pr=function(){return!0}; g.k.At=function(){return!1}; g.k.y8=function(){return this.indexRange.length+this.initRange.length}; g.k.kJ=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var Uv={},hau=(Uv.COLOR_PRIMARIES_BT709="bt709",Uv.COLOR_PRIMARIES_BT2020="bt2020",Uv.COLOR_PRIMARIES_UNKNOWN=null,Uv.COLOR_PRIMARIES_UNSPECIFIED=null,Uv),zy={},MxS=(zy.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",zy.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",zy.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",zy.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",zy.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,zy.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,zy);g.R6.prototype.getName=function(){return this.name}; g.R6.prototype.getId=function(){return this.id}; g.R6.prototype.getIsDefault=function(){return this.isDefault}; g.R6.prototype.toString=function(){return this.name}; g.R6.prototype.getName=g.R6.prototype.getName;g.R6.prototype.getId=g.R6.prototype.getId;g.R6.prototype.getIsDefault=g.R6.prototype.getIsDefault;var Nfd=/action_display_post/;var vmd,Lx,EQ;g.h(Pr,g.Dv);g.k=Pr.prototype;g.k.isLoading=function(){return this.state===1}; g.k.vC=function(){return this.state===3}; g.k.uL1=function(z){var K=z.getElementsByTagName("Representation");if(z.getElementsByTagName("SegmentList").length>0||z.getElementsByTagName("SegmentTemplate").length>0){this.CI=this.Y=!0;this.timeline||(this.timeline=new W1d);dh5(this.timeline,z);this.publish("refresh");for(z=0;z=0?b=ce(w):e=e+"?range="+w}I.call(v,new AH(G.Ia,G.startSecs,G.mP,G.S,e,b,G.Y))}M=p}f.update(M,this.isLive,this.Xc)}cnS(this.timeline);return!0}this.duration=l0g(zO(z,"mediaPresentationDuration")); a:{for(z=0;z0))return this.eU()-z}}z=this.S;for(var K in z){var f=z[K].index;if(f.isLoaded()&&!Gr(z[K].info.mimeType))return f.L6()}return 0}; g.k.getStreamTimeOffset=function(){return this.G}; g.k.ll=function(z){for(var K in this.S){var f=this.S[K].index;if(f.isLoaded()){var M=f.NZ(z),p=f.ll(M);if(p)return p+z-f.getStartTime(M)}}return NaN}; var sQ=null,YZ4,A5=!((YZ4=navigator.mediaCapabilities)==null||!YZ4.decodingInfo),Em8={commentary:1,alternate:2,dub:3,main:4};var Nj=new Set,jn=new Map;F7.prototype.clone=function(z){return new F7(this.flavor,z,this.Y,this.experiments)}; F7.prototype.S3=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; F7.prototype.getInfo=function(){switch(this.keySystem){case "com.youtube.playready":return"PRY";case "com.microsoft.playready":return"PRM";case "com.widevine.alpha":return"WVA";case "com.youtube.widevine.l3":return"WVY";case "com.youtube.fairplay":return"FPY";case "com.youtube.fairplay.sbdl":return"FPC";case "com.apple.fps.1_0":return"FPA";default:return this.keySystem}}; var X67={},$v=(X67.playready=["com.youtube.playready","com.microsoft.playready"],X67.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],X67),KT={},d4g=(KT.widevine="DRM_SYSTEM_WIDEVINE",KT.fairplay="DRM_SYSTEM_FAIRPLAY",KT.playready="DRM_SYSTEM_PLAYREADY",KT),$A={},x08=($A.widevine=1,$A.fairplay=2,$A.playready=3,$A);var pO;g.h(fO,g.J); fO.prototype.initialize=function(z,K){for(var f=this,M=g.a(Object.keys(z)),p=M.next();!p.done;p=M.next()){p=g.a(z[p.value]);for(var t=p.next();!t.done;t=p.next())if(t=t.value,t.UW)for(var B=g.a(Object.keys(t.UW)),v=B.next();!v.done;v=B.next()){var I=v.value;v=I;I=$v[I];!I&&this.B("html5_enable_vp9_fairplay")&&v==="fairplay"&&(I=["com.youtube.fairplay.sbdl"]);if(I){I=g.a(I);for(var G=I.next();!G.done;G=I.next())G=G.value,this.T[G]=this.T[G]||new F7(v,G,t.UW[v],this.pH.experiments),this.S[v]=this.S[v]|| {},this.S[v][t.mimeType]=!0}}}TM()&&(this.T["com.youtube.fairplay"]=new F7("fairplay","com.youtube.fairplay","",this.pH.experiments),this.B("html5_enable_vp9_fairplay")||(this.S.fairplay=this.S.fairplay||{},this.S.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.S.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.Y=dBg(K,this.useCobaltWidevine,this.B("html5_enable_safari_fairplay")&&!0,this.B("html5_enable_vp9_fairplay")).filter(function(b){return!!f.T[b]})}; fO.prototype.B=function(z){return this.pH.experiments.sf(z)};var FN_={"":"LIVE_STREAM_MODE_UNKNOWN",dvr:"LIVE_STREAM_MODE_DVR",lp:"LIVE_STREAM_MODE_LP",post:"LIVE_STREAM_MODE_POST",window:"LIVE_STREAM_MODE_WINDOW",live:"LIVE_STREAM_MODE_LIVE"};XCS.prototype.B=function(z){return this.experiments.sf(z)};var aMq={RED:"red",hI_:"white"};xBg.prototype.sf=function(z){z=this.flags[z];JSON.stringify(z);return z==="true"};var rjI=Promise.resolve(),Tfv=window.queueMicrotask?window.queueMicrotask.bind(window):Zwo;vZ.prototype.canPlayType=function(z,K){z=z.canPlayType?z.canPlayType(K):!1;TN?z=z||Os2[K]:cZ===2.2?z=z||r$_[K]:ow()&&(z=z||ZsZ[K]);return!!z}; vZ.prototype.isTypeSupported=function(z){return this.N?window.cast.receiver.platform.canDisplayType(z):Aq(z)}; var r$_={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},ZsZ={"application/x-mpegURL":"maybe"},Os2={"application/x-mpegURL":"maybe"};g.h(bI,g.Dv);bI.prototype.add=function(z,K){if(!this.items[z]&&(K.Tp||K.PS||K.gQ)){var f=this.items,M=K;Object.isFrozen&&!Object.isFrozen(K)&&(M=Object.create(K),Object.freeze(M));f[z]=M;this.publish("vast_info_card_add",z)}}; bI.prototype.remove=function(z){var K=this.get(z);delete this.items[z];return K}; bI.prototype.get=function(z){return this.items[z]||null}; bI.prototype.isEmpty=function(){return g.U9(this.items)};var w7;D5.prototype.add=function(z){if(this.pos+20>this.data.length){var K=new Uint8Array(this.data.length*2);K.set(this.data);this.data=K}for(;z>31;)this.data[this.pos++]=w7[(z&31)+32],z>>=5;this.data[this.pos++]=w7[z|0]}; D5.prototype.yv=function(){return g.dz(this.data.subarray(0,this.pos))}; D5.prototype.reset=function(){this.pos=0};kv.prototype.uj=function(z,K){var f=Math.pow(this.alpha,z);this.S=K*(1-f)+f*this.S;this.Y+=z}; kv.prototype.k9=function(){return this.S/(1-Math.pow(this.alpha,this.Y))};hw.prototype.uj=function(z,K){for(var f=0;f<10;f++){var M=this.S[f],p=M+(f===0?z:0),t=1*Math.pow(2,f);if(p<=t)break;M=Math.min(1,(p-t*.5)/M);for(p=0;p<16;p++)t=this.values[f*16+p]*M,this.values[(f+1)*16+p]+=t,this.S[f+1]+=t,this.values[f*16+p]-=t,this.S[f]-=t}M=f=0;p=8192;K>8192&&(f=Math.ceil(Math.log(K/8192)/Math.log(2)),M=8192*Math.pow(2,f-1),p=M*2);f+2>16?this.values[15]+=z:(K=(K-M)/(p-M),this.values[f]+=z*(1-K),this.values[f+1]+=z*K);this.S[0]+=z}; hw.prototype.k9=function(){var z=z===void 0?this.Y:z;var K=K===void 0?.02:K;var f=f===void 0?.98:f;for(var M=this.T,p=0;p<16;p++)M[p]=this.values[p];p=this.S[0];for(var t=1;t<11;t++){var B=this.S[t];if(B===0)break;for(var v=Math.min(1,(z-p)/B),I=0;I<16;I++)M[I]+=this.values[t*16+I]*v;p+=B*v;if(v<1)break}for(t=z=B=0;t<16;t++){v=B+M[t]/p;z+=Math.max(0,Math.min(v,f)-Math.max(B,K))*(t>0?8192*Math.pow(2,t-1):0);if(v>f)break;B=v}return z/(f-K)};aQ.prototype.uj=function(z,K){z=Math.min(this.S,Math.max(1,Math.round(z*this.resolution)));z+this.Y>=this.S&&(this.T=!0);for(;z--;)this.values[this.Y]=K,this.Y=(this.Y+1)%this.S;this.hn=!0}; aQ.prototype.percentile=function(z){var K=this;if(!this.T&&this.Y===0)return 0;this.hn&&(g.J2(this.C,function(f,M){return K.values[f]-K.values[M]}),this.hn=!1); return this.values[this.C[Math.round(z*((this.T?this.S:this.Y)-1))]]||0}; aQ.prototype.k9=function(){return this.W?(this.percentile(this.J-this.W)+this.percentile(this.J)+this.percentile(this.J+this.W))/3:this.percentile(this.J)};g.h(RQ,g.J);RQ.prototype.QE=function(){var z;(z=this.Px)==null||z.start();if(qw(this)&&this.policy.D){var K;(K=this.G5)==null||K.Y$()}};IMS.prototype.B=function(z){return this.experiments.sf(z)};g.h(bb5,g.J);var hST="blogger ads-preview gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),Eqg={o3h:"caoe",STE:"capsv",cox:"cbrand",UMf:"cbr",mML:"cbrver",X7e:"cchip",Q1f:"ccappver",VY_:"ccrv",gvf:"cfrmver",ekH:"c",cUh:"cver",hk1:"ctheme",xDx:"cplayer",xC_:"cmodel",Gv:"cnetwork",OJ1:"cos",OS_VERSION:"cosver",rDx:"cplatform",hsf:"crqyear"};g.h(Z5,g.J);g.k=Z5.prototype;g.k.B=function(z){return this.experiments.sf(z)}; g.k.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.k.getVideoUrl=function(z,K,f,M,p,t,B){K={list:K};f&&(p?K.time_continue=f:K.t=f);f=B?"music.youtube.com":g.CO(this);p=f==="www.youtube.com";!t&&M&&p?t="https://youtu.be/"+z:g.jo(this)?(t="https://"+f+"/fire",K.v=z):(t&&p?(t=this.protocol+"://"+f+"/shorts/"+z,M&&(K.feature="share")):(t=this.protocol+"://"+f+"/watch",K.v=z),TN&&(z=AmW())&&(K.ebc=z));return g.V8(t,K)}; g.k.getVideoEmbedCode=function(z,K,f,M){K="https://"+g.CO(this)+"/embed/"+K;M&&(K=g.V8(K,{list:M}));M=f.width;f=f.height;K=k7(K);z=k7(z!=null?z:"YouTube video player");return'')}; g.k.supportsGaplessAudio=function(){return g.sq&&!TN&&OJ()>=74||g.z0&&g.Qw(68)?!0:!1}; g.k.supportsGaplessShorts=function(){return!this.B("html5_enable_short_gapless")||this.QE||g.PJ?!1:!0}; g.k.getPlayerType=function(){return this.S.cplayer}; g.k.i8=function(){return this.K3}; var qSu=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],L38=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],HbS=[19];var fT={},V7S=(fT["140"]={numChannels:2},fT["141"]={numChannels:2},fT["251"]={audioSampleRate:48E3,numChannels:2},fT["774"]={audioSampleRate:48E3,numChannels:2},fT["380"]={numChannels:6},fT["328"]={numChannels:6},fT["773"]={},fT),M_={},mZo=(M_["1"]='video/mp4; codecs="av01.0.08M.08"',M_["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',M_["1e"]='video/mp4; codecs="av01.0.08M.08"',M_["9"]='video/webm; codecs="vp9"',M_["("]='video/webm; codecs="vp9"',M_["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', M_.h='video/mp4; codecs="avc1.64001e"',M_.H='video/mp4; codecs="avc1.64001e"',M_.o='audio/webm; codecs="opus"',M_.a='audio/mp4; codecs="mp4a.40.2"',M_.ah='audio/mp4; codecs="mp4a.40.2"',M_.mac3='audio/mp4; codecs="ac-3"; channels=6',M_.meac3='audio/mp4; codecs="ec-3"; channels=6',M_.i='audio/mp4; codecs="iamf.001.001.Opus"',M_),pT={},lMq=(pT["337"]={width:3840,height:2160,bitrate:3E7,fps:30},pT["336"]={width:2560,height:1440,bitrate:15E6,fps:30},pT["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, pT["702"]={width:7680,height:4320,bitrate:4E7,fps:60},pT["701"]={width:3840,height:2160,bitrate:2E7,fps:60},pT["700"]={width:2560,height:1440,bitrate:1E7,fps:60},pT["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},pT["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},pT["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},pT["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, pT["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},pT["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},pT["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},pT["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},pT["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},pT["315"]={width:3840,height:2160,bitrate:2E7,fps:60},pT["308"]={width:2560, height:1440,bitrate:1E7,fps:60},pT["303"]={width:1920,height:1080,bitrate:5E6,fps:60},pT["302"]={width:1280,height:720,bitrate:25E5,fps:60},pT["299"]={width:1920,height:1080,bitrate:75E5,fps:60},pT["298"]={width:1280,height:720,bitrate:35E5,fps:60},pT["571"]={width:7680,height:4320,bitrate:3E7,fps:60},pT["401"]={width:3840,height:2160,bitrate:15E6,fps:60},pT["400"]={width:2560,height:1440,bitrate:75E5,fps:60},pT["399"]={width:1920,height:1080,bitrate:2E6,fps:60},pT["398"]={width:1280,height:720,bitrate:1E6, fps:60},pT["397"]={width:854,height:480,bitrate:4E5,fps:30},pT["396"]={width:640,height:360,bitrate:25E4,fps:30},pT["787"]={width:1080,height:608,bitrate:2E5,fps:30},pT["788"]={width:1080,height:608,bitrate:4E5,fps:30},pT["572"]={width:7680,height:4320,bitrate:3E7,fps:60},pT["555"]={width:3840,height:2160,bitrate:15E6,fps:60},pT["554"]={width:2560,height:1440,bitrate:75E5,fps:60},pT["553"]={width:1920,height:1080,bitrate:2E6,fps:60},pT["552"]={width:1280,height:720,bitrate:1E6,fps:60},pT["551"]={width:854, height:480,bitrate:4E5,fps:30},pT["550"]={width:640,height:360,bitrate:25E4,fps:30},pT["313"]={width:3840,height:2160,bitrate:8E6,fps:30},pT["271"]={width:2560,height:1440,bitrate:4E6,fps:30},pT["248"]={width:1920,height:1080,bitrate:2E6,fps:30},pT["247"]={width:1280,height:720,bitrate:15E5,fps:30},pT["244"]={width:854,height:480,bitrate:52E4,fps:30},pT["243"]={width:640,height:360,bitrate:28E4,fps:30},pT["137"]={width:1920,height:1080,bitrate:4E6,fps:30},pT["136"]={width:1280,height:720,bitrate:3E6, fps:30},pT["135"]={width:854,height:480,bitrate:1E6,fps:30},pT["385"]={width:1920,height:1080,bitrate:6503313,fps:60},pT["376"]={width:1280,height:720,bitrate:5706960,fps:60},pT["384"]={width:1280,height:720,bitrate:3660979,fps:60},pT["225"]={width:1280,height:720,bitrate:5805E3,fps:30},pT["224"]={width:1280,height:720,bitrate:453E4,fps:30},pT["145"]={width:1280,height:720,bitrate:2682052,fps:30},pT);g.k=e1.prototype;g.k.getInfo=function(){return this.S}; g.k.rG=function(){return null}; g.k.H4=function(){var z=this.rG();return z?(z=g.Iw(z.eE),Number(z.expire)):NaN}; g.k.gH=function(){}; g.k.getHeight=function(){return this.S.video.height};gq5.prototype.build=function(){cQg(this);var z=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],K={};a:if(this.S)var f=this.S;else{f="";for(var M=g.a(this.T),p=M.next();!p.done;p=M.next())if(p=p.value,p.b8){if(p.b8.getIsDefault()){f=p.b8.getId();break a}f||(f=p.b8.getId())}}M=g.a(this.T);for(p=M.next();!p.done;p=M.next())if(p=p.value,this.W||!p.b8||p.b8.getId()===f)K[p.itag]||(K[p.itag]=[]),K[p.itag].push(p);f=g.a(this.Y);for(M=f.next();!M.done;M=f.next())if(M=M.value,p=K[M.S]){p=g.a(p);for(var t=p.next();!t.done;t= p.next()){var B=z,v=B.push;t=t.value;var I="#EXT-X-MEDIA:TYPE=AUDIO,",G="YES",b="audio";if(t.b8){b=t.b8;var e=b.getId().split(".")[0];e&&(I+='LANGUAGE="'+e+'",');(this.S?this.S===b.getId():b.getIsDefault())||(G="NO");b=b.getName()}e="";M!==null&&(e=M.itag.toString());e=DY(this,t.url,e);I=I+('NAME="'+b+'",DEFAULT='+(G+',AUTOSELECT=YES,GROUP-ID="'))+(dZT(t,M)+'",URI="'+(e+'"'));v.call(B,I)}}f=g.a(this.C);for(M=f.next();!M.done;M=f.next())M=M.value,p=o02,M=(B=M.b8)?'#EXT-X-MEDIA:URI="'+DY(this,M.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+p+'",LANGUAGE="'+B.getId()+'",NAME="'+B.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,M&&z.push(M);f=this.C.length>0?o02:void 0;M=g.a(this.Y);for(p=M.next();!p.done;p=M.next())p=p.value,v=K[p.S],B=void 0,((B=v)==null?void 0:B.length)>0&&(B=p,v=v[0],v="#EXT-X-STREAM-INF:BANDWIDTH="+(B.bitrate+v.bitrate)+',CODECS="'+(B.codecs+","+v.codecs+'",RESOLUTION=')+(B.width+"x"+B.height+',AUDIO="')+(dZT(v,B)+'",')+(f?'SUBTITLES="'+f+'",':"")+"CLOSED-CAPTIONS=NONE",B.fps>1&&(v+= ",FRAME-RATE="+B.fps),B.TV&&(v+=",VIDEO-RANGE="+B.TV),z.push(v),z.push(DY(this,p.url,"")));return z.join("\n")}; var o02="text";g.h(yJ,e1);yJ.prototype.H4=function(){return this.expiration}; yJ.prototype.rG=function(){if(!this.eE||this.eE.CH()){var z=this.Y.build();z="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(z);this.eE=new U3(z)}return this.eE};g.h(kt,e1);kt.prototype.rG=function(){return new U3(this.Y.Ic())}; kt.prototype.gH=function(){this.Y=cN(this.Y)};g.h(hX,e1);hX.prototype.rG=function(){return new U3(this.Y)};var tD={},Zbg=(tD.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",tD.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",tD.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",tD);g.k=g.aB.prototype;g.k.getId=function(){return this.id}; g.k.getName=function(){return this.name}; g.k.isServable=function(){return this.S}; g.k.Ic=function(){return this.url}; g.k.getXtags=function(){return this.xtags}; g.k.toString=function(){return this.languageCode+": "+g.RB(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.k.equals=function(z){return z?this.toString()===z.toString():!1}; g.k.bl=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var Kso={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},$vT={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},fIW=/^(\d*)_((\d*)_?(\d*))$/;var pIS={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},te5={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var Bn={},Cp7=(Bn.ALWAYS=1,Bn.BY_REQUEST=3,Bn.UNKNOWN=void 0,Bn),N_={},TWf=(N_.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",N_.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",N_.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",N_.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",N_);var ivT; ivT=function(z){for(var K=Object.keys(z),f={},M=0;MM-K?-1:z}; g.k.iA=function(){return this.Y.Mv()}; g.k.ZH=function(){return this.Y.PV()}; g.k.IU=function(z){this.Y=z};g.h(rA,Fq);rA.prototype.Y=function(z,K){return Fq.prototype.Y.call(this,"$N|"+z,K)}; rA.prototype.C=function(z,K,f){return new ON(z,K,f,this.isLive)};var XI5=[],zP=new Set;g.h(g.oB,g.Dv);g.k=g.oB.prototype; g.k.setData=function(z){z=z||{};var K=z.errordetail;K!=null&&(this.errorDetail=K);var f=z.errorcode;f!=null?this.errorCode=f:z.status==="fail"&&(this.errorCode="auth");var M=z.reason;M!=null&&(this.errorReason=M);var p=z.subreason;p!=null&&(this.WV=p);this.B("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=z.cpn||(this.pH.i8()?"r"+g.q1(15):g.q1(16)));this.oa=vK(this.pH.oa,z.livemonitor);iUW(this,z);var t=z.raw_player_response;if(t)this.d4=t;else{var B=z.player_response; B&&(t=JSON.parse(B))}if(this.B("html5_enable_ssap_entity_id")){var v=z.cached_load;v&&(this.gU=vK(this.gU,v));if(!this.clientPlaybackNonce){var I=z.cpn;I?(this.Hs("ssei","shdc"),this.clientPlaybackNonce=I):this.clientPlaybackNonce=this.pH.i8()?"r"+g.q1(15):g.q1(16)}}t&&(this.playerResponse=t);if(this.playerResponse){var G=this.playerResponse.annotations;if(G)for(var b=g.a(G),e=b.next();!e.done;e=b.next()){var w=e.value.playerAnnotationsUrlsRenderer;if(w){w.adsOnly&&(this.lY=!0);var D=w.loadPolicy; D&&(this.annotationsLoadPolicy=Cp7[D]);var y=w.invideoUrl;y&&(this.Px=II(y));break}}var R=this.playerResponse.attestation;R&&Nbo(this,R);var S=this.playerResponse.cotn;S&&(this.cotn=S);var E=this.playerResponse.heartbeatParams;if(E){Jkv(this)&&(this.aJ=!0);var L=E.heartbeatToken;L&&(this.drmSessionId=E.drmSessionId||"",this.heartbeatToken=L,this.xr=Number(E.intervalMilliseconds),this.iE=Number(E.maxRetries),this.DR=!!E.softFailOnError,this.UF=!!E.useInnertubeHeartbeatsForDrm,this.Gc=!0);this.heartbeatServerData= E.heartbeatServerData;var q;this.w8=!((q=E.heartbeatAttestationConfig)==null||!q.requiresAttestation)}var V=this.playerResponse.messages;V&&bUq(this,V);var c=this.playerResponse.overlay;if(c){var O=c.playerControlsOverlayRenderer;if(O)if(wIT(this,O.controlBgHtml),O.mutedAutoplay){var x=g.A(O.mutedAutoplay,Dt8);if(x&&x.endScreen){var T=g.A(x.endScreen,yR4);T&&T.text&&(this.A2=g.Lc(T.text))}}else this.mutedAutoplay=!1}var M8=this.playerResponse.playabilityStatus;if(M8){var $S=M8.backgroundability;$S&& $S.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var td,r;if((td=M8.offlineability)==null?0:(r=td.offlineabilityRenderer)==null?0:r.offlineable)this.offlineable=!0;var yI=M8.contextParams;yI&&(this.contextParams=yI);var H5=M8.pictureInPicture;H5&&H5.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);M8.playableInEmbed&&(this.allowEmbed=!0);var ra=M8.ypcClickwrap;if(ra){var Ho=ra.playerLegacyDesktopYpcClickwrapRenderer,I8=ra.ypcRentalActivationRenderer;if(Ho)this.zc=Ho.durationMessage|| "",this.Hm=!0;else if(I8){var q8=I8.durationMessage;this.zc=q8?g.Lc(q8):"";this.Hm=!0}}var P5=M8.errorScreen;if(P5){if(P5.playerLegacyDesktopYpcTrailerRenderer){var t2=P5.playerLegacyDesktopYpcTrailerRenderer;this.NP=t2.trailerVideoId||"";var u=P5.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var N8=u&&u.ypcTrailerRenderer}else if(P5.playerLegacyDesktopYpcOfferRenderer)t2=P5.playerLegacyDesktopYpcOfferRenderer;else if(P5.ypcTrailerRenderer){N8=P5.ypcTrailerRenderer;var rZ=N8.fullVideoMessage;this.nN= rZ?g.Lc(rZ):"";var LL,VQ;this.NP=((LL=g.A(N8,kmQ))==null?void 0:(VQ=LL.videoDetails)==null?void 0:VQ.videoId)||""}t2&&(this.du=t2.itemTitle||"",t2.itemUrl&&(this.H0=t2.itemUrl),t2.itemBuyUrl&&(this.lA=t2.itemBuyUrl),this.zQ=t2.itemThumbnail||"",this.xn=t2.offerHeadline||"",this.ke=t2.offerDescription||"",this.S1=t2.offerId||"",this.e8=t2.offerButtonText||"",this.TT=t2.offerButtonFormattedText||null,this.wu=t2.overlayDurationMsec||NaN,this.nN=t2.fullVideoMessage||"",this.Zh=!0);if(N8){var wZ=g.A(N8, kmQ);if(wZ)this.A0={raw_player_response:wZ};else{var jq=g.A(N8,Qz4);this.A0=jq?Nu(jq):null}this.Zh=!0}}}var i_=this.playerResponse.playbackTracking;if(i_){var n1=z,H=PG(i_.googleRemarketingUrl);H&&(this.googleRemarketingUrl=H);var Q=PG(i_.youtubeRemarketingUrl);Q&&(this.youtubeRemarketingUrl=Q);var m={},W=PG(i_.ptrackingUrl);if(W){var Y=HG(W),LW=Y.oid;LW&&(this.lr=LW);var KW=Y.pltype;KW&&(this.TI=KW);var hd=Y.ptchn;hd&&(this.Y7=hd);var fW=Y.ptk;fW&&(this.Wf=encodeURIComponent(fW));var l8=Y.m;l8&& (this.dc=l8)}var To=PG(i_.qoeUrl);if(To){for(var E9=g.Iw(To),EP=g.a(Object.keys(E9)),gr=EP.next();!gr.done;gr=EP.next()){var zz=gr.value,ZK=E9[zz];E9[zz]=Array.isArray(ZK)?ZK.join(","):ZK}this.PY=E9;var Ke=E9.cat;Ke&&(this.B("html5_enable_qoe_cat_list")?this.Sm=this.Sm.concat(Ke.split(",")):this.q8=Ke);var EU=E9.live;EU&&(this.vF=EU);var yV=E9.drm_product;yV&&(this.drmProduct=yV)}var i6=PG(i_.videostatsPlaybackUrl);if(i6){var Rz=HG(i6),d4=Rz.adformat;if(d4){n1.adformat=d4;var Z9=this.Z(),ou=Meq(d4, this.FR,Z9.J,Z9.D);ou&&(this.adFormat=ou)}var ld=Rz.aqi;ld&&(n1.ad_query_id=ld);var B9=Rz.autoplay;B9&&(this.NV=B9=="1",this.X9=B9=="1");var $p=Rz.autonav;$p&&(this.isAutonav=$p=="1");var Nn=Rz.delay;Nn&&(this.nI=S8(Nn));var gh=Rz.ei;gh&&(this.eventId=gh);if(Rz.adcontext||d4)this.NV=!0;var TE=Rz.feature;TE&&(this.Ar=TE);var ko=Rz.list;ko&&(this.playlistId=ko);var uh=Rz.of;uh&&(this.r4=uh);var LZ=Rz.osid;LZ&&(this.osid=LZ);var E3=Rz.referrer;E3&&(this.referrer=E3);var NP=Rz.sdetail;NP&&(this.a9=NP); var h8=Rz.ssrt;h8&&(this.Pg=h8=="1");var PA=Rz.subscribed;PA&&(this.subscribed=PA=="1");var vR=Rz.uga;vR&&(this.userGenderAge=vR);var HA=Rz.upt;HA&&(this.uT=HA);var Qr=Rz.vm;Qr&&(this.videoMetadata=Qr);m.playback=Rz}var qh=PG(i_.videostatsWatchtimeUrl);if(qh){var m1=HG(qh),lh=m1.ald;lh&&(this.Sq=lh);m.watchtime=m1}var Vr=PG(i_.atrUrl);if(Vr){var fq=HG(Vr);m.atr=fq}var i2=PG(i_.engageUrl);if(i2){var Ms=HG(i2);m.engage=Ms}this.yw=m;if(i_.promotedPlaybackTracking){var rj=i_.promotedPlaybackTracking; rj.startUrls&&(this.I9=rj.startUrls);rj.firstQuartileUrls&&(this.RC=rj.firstQuartileUrls);rj.secondQuartileUrls&&(this.Ni=rj.secondQuartileUrls);rj.thirdQuartileUrls&&(this.yF=rj.thirdQuartileUrls);rj.completeUrls&&(this.D$=rj.completeUrls);rj.engagedViewUrls&&(rj.engagedViewUrls.length>1&&g.Al(new g.UT("There are more than one engaged_view_urls.")),this.u2=rj.engagedViewUrls[0])}}var IV=this.playerResponse.playerCueRanges;IV&&IV.length>0&&(this.cueRanges=IV);var nZ=this.playerResponse.playerCueRangeSet; nZ&&g.K5(this,nZ);a:{var G9=this.playerResponse.adPlacements;if(G9)for(var WA=g.a(G9),bz=WA.next();!bz.done;bz=WA.next()){var Jn=void 0,gn=void 0,ih=(Jn=bz.value.adPlacementRenderer)==null?void 0:(gn=Jn.renderer)==null?void 0:gn.videoAdTrackingRenderer;if(ih){var dn=ih;break a}}dn=null}var eX=dn;i_&&i_.promotedPlaybackTracking&&eX&&g.Al(new g.UT("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var En;if(!(En=eX))a:{for(var cA=g.a(this.playerResponse.adSlots||[]), wl=cA.next();!wl.done;wl=cA.next()){var DE=g.A(wl.value,ZI);if(DE===void 0||!Vhq(DE))break;var s3=void 0,pq=(s3=DE.fulfillmentContent)==null?void 0:s3.fulfilledLayout,An=g.A(pq,sF);if(An&&gb(An)){En=!0;break a}}En=!1}En&&(this.t4=!0);var jl=this.playerResponse.playerAds;if(jl)for(var tT=z,Yr=g.a(jl),Pk=Yr.next();!Pk.done;Pk=Yr.next()){var Xb=Pk.value;if(Xb){var xr=Xb.playerLegacyDesktopWatchAdsRenderer;if(xr){var dh=xr.playerAdParams;if(dh){dh.autoplay=="1"&&(this.X9=this.NV=!0);this.YX=dh.encodedAdSafetyReason|| null;dh.showContentThumbnail!==void 0&&(this.ND=!!dh.showContentThumbnail);tT.enabled_engage_types=dh.enabledEngageTypes;break}}}}var jT=this.playerResponse.playerConfig;if(jT){var CD=jT.manifestlessWindowedLiveConfig;if(CD){var Fb=Number(CD.minDvrSequence),yx=Number(CD.maxDvrSequence),Hk=Number(CD.minDvrMediaTimeMs),Q5=Number(CD.maxDvrMediaTimeMs),k5=Number(CD.startWalltimeMs);Fb&&(this.dh=Fb);Hk&&(this.nH=Hk/1E3,this.B("html5_sabr_parse_live_metadata_playback_boundaries")&&bv(this)&&(this.Bg=Hk/ 1E3));yx&&(this.Tm=yx);Q5&&(this.LI=Q5/1E3,this.B("html5_sabr_parse_live_metadata_playback_boundaries")&&bv(this)&&(this.RL=Q5/1E3));k5&&(this.Z2=k5/1E3);(Fb||Hk)&&(yx||Q5)&&(this.allowLiveDvr=this.isLivePlayback=this.Y1=!0,this.Ca=!1)}var T7=jT.daiConfig;if(T7){if(T7.enableDai){this.RX=!0;var qJ=T7.enableServerStitchedDai;qJ&&(this.enableServerStitchedDai=qJ);var O3=T7.enablePreroll;O3&&(this.pk=O3)}var Ns;if(T7.daiType==="DAI_TYPE_SS_DISABLED"||((Ns=T7.debugInfo)==null?0:Ns.isDisabledUnpluggedChannel))this.hx= !0;T7.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.u6=!0)}var Rk=jT.audioConfig;if(Rk){var Up=Rk.loudnessDb;Up!=null&&(this.SU=Up);var ms5=Rk.trackAbsoluteLoudnessLkfs;ms5!=null&&(this.GW=ms5);var loI=Rk.loudnessTargetLkfs;loI!=null&&(this.loudnessTargetLkfs=loI);Rk.audioMuted&&(this.L7=!0);Rk.muteOnStart&&(this.C2=!0);var Rx=Rk.loudnessNormalizationConfig;if(Rx){Rx.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);Rx.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget= !0);var VzS=Rx.minimumLoudnessTargetLkfs;VzS!=null&&(this.minimumLoudnessTargetLkfs=VzS);var nOp=Rx.maxStatefulTimeThresholdSec;nOp!=null&&(this.maxStatefulTimeThresholdSec=nOp)}Rk.playAudioOnly&&(this.XK=!0)}var ajp=jT.playbackEndConfig;if(ajp){var W8a=ajp.endSeconds,JT8=ajp.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(W8a&&(this.endSeconds=W8a),JT8&&(this.limitedPlaybackDurationInSeconds=JT8))}var Lo=jT.fairPlayConfig;if(Lo){var gOv=Lo.certificate;gOv&&(this.Xc=eo(gOv));var iqW=Number(Lo.keyRotationPeriodMs); iqW>0&&(this.Hf=iqW);var dsI=Number(Lo.keyPrefetchMarginMs);dsI>0&&(this.jl=dsI)}var v_=jT.playbackStartConfig;if(v_){this.ai=Number(v_.startSeconds);var cTS=v_.liveUtcStartSeconds,sN5=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;cTS&&!sN5&&(this.liveUtcStartSeconds=Number(cTS));var RYu=v_.startPosition;if(RYu){var AT5=RYu.utcTimeMillis;AT5&&!sN5&&(this.liveUtcStartSeconds=Number(AT5)*.001);var jNI=RYu.streamTimeMillis;jNI&&(this.t9=Number(jNI)*.001)}this.progressBarStartPosition=v_.progressBarStartPosition; this.progressBarEndPosition=v_.progressBarEndPosition}else{var SH8=jT.skippableSegmentsConfig;if(SH8){var Yh8=SH8.introSkipDurationMs;Yh8&&(this.w_=Number(Yh8)/1E3);var XD8=SH8.outroSkipDurationMs;XD8&&(this.I_=Number(XD8)/1E3)}}var uY8=jT.skippableIntroConfig;if(uY8){var xsg=Number(uY8.startMs),F8q=Number(uY8.endMs);isNaN(xsg)||isNaN(F8q)||(this.w$=xsg,this.PA=F8q)}var Oq8=jT.streamSelectionConfig;Oq8&&(this.RF=Number(Oq8.maxBitrate));var rTI=jT.vrConfig;rTI&&(this.Yo=rTI.partialSpherical=="1"); var Se=jT.webDrmConfig;if(Se){Se.skipWidevine&&(this.eS=!0);var ZqS=Se.widevineServiceCert;ZqS&&(this.oH=eo(ZqS));Se.useCobaltWidevine&&(this.useCobaltWidevine=!0);Se.startWithNoQualityConstraint&&(this.LW=!0)}var fl=jT.mediaCommonConfig;if(fl){var Eg=fl.dynamicReadaheadConfig;if(Eg){this.maxReadAheadMediaTimeMs=Eg.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=Eg.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=Eg.readAheadGrowthRateMs||NaN;var oO8,CDa=fl==null?void 0:(oO8=fl.mediaUstreamerRequestConfig)== null?void 0:oO8.videoPlaybackUstreamerConfig;CDa&&(this.xx=eo(CDa));var Ld8=fl==null?void 0:fl.sabrContextUpdates;if(Ld8&&Ld8.length>0)for(var Tq5=g.a(Ld8),EN8=Tq5.next();!EN8.done;EN8=Tq5.next()){var RP=EN8.value;if(RP.type&&RP.value){var qJf={type:RP.type,scope:RP.scope,value:eo(RP.value)||void 0,sendByDefault:RP.sendByDefault};this.sabrContextUpdates.set(RP.type,qJf)}}}var UsS=fl.serverPlaybackStartConfig;UsS&&(this.serverPlaybackStartConfig=UsS);fl.useServerDrivenAbr&&(this.Dh=!0);var zQS=fl.requestPipeliningConfig; zQS&&(this.requestPipeliningConfig=zQS)}var KIT=jT.inlinePlaybackConfig;KIT&&(this.I7=!!KIT.showAudioControls);var P0=jT.embeddedPlayerConfig;if(P0){this.embeddedPlayerConfig=P0;var Pg8=P0.embeddedPlayerMode;if(Pg8){var $$S=this.Z();$$S.Hx=Pg8;$$S.T=Pg8==="EMBEDDED_PLAYER_MODE_PFL"}var fST=P0.permissions;fST&&(this.allowImaMonetization=!!fST.allowImaMonetization)}var H0=jT.webPlayerConfig;H0&&(H0.gatewayExperimentGroup&&(this.gatewayExperimentGroup=H0.gatewayExperimentGroup),H0.isProximaEligible&& (this.isProximaLatencyEligible=!0))}var Mi=this.playerResponse.streamingData;if(Mi){var HCS=Mi.formats;if(HCS){for(var uJ=[],M9o=g.a(HCS),Qj5=M9o.next();!Qj5.done;Qj5=M9o.next()){var qHT=Qj5.value;uJ.push(qHT.itag+"/"+qHT.width+"x"+qHT.height)}this.d9=uJ.join(",");uJ=[];for(var p18=g.a(HCS),mWI=p18.next();!mWI.done;mWI=p18.next()){var LU=mWI.value,EF={itag:LU.itag,type:LU.mimeType,quality:LU.quality},t9g=LU.url;t9g&&(EF.url=t9g);var Qi=se(LU),mu8=Qi.ZT,lQT=Qi.eI,Vg5=Qi.s;Qi.T6&&(EF.url=mu8,EF.sp= lQT,EF.s=Vg5);uJ.push(g.l6(EF))}this.FK=uJ.join(",")}var ljg=Mi.hlsFormats;if(ljg&&!this.B("safari_live_drm_captions_fix")){var BKv=jT||null,q7={};if(BKv){var VGg=BKv.audioPairingConfig;if(VGg&&VGg.pairs)for(var NK8=g.a(VGg.pairs),nNS=NK8.next();!nNS.done;nNS=NK8.next()){var vMS=nNS.value,Wdd=vMS.videoItag;q7[Wdd]||(q7[Wdd]=[]);q7[Wdd].push(vMS.audioItag)}}for(var ISS={},GDo=g.a(ljg),J4a=GDo.next();!J4a.done;J4a=GDo.next()){var bET=J4a.value;ISS[bET.itag]=bET.bitrate}for(var eQI=[],w1S=g.a(ljg),gNa= w1S.next();!gNa.done;gNa=w1S.next()){var IW=gNa.value,gB={itag:IW.itag,type:IW.mimeType,url:IW.url,bitrate:IW.bitrate,width:IW.width,height:IW.height,fps:IW.fps},lT=IW.audioTrack;if(lT){var D$a=lT.displayName;D$a&&(gB.name=D$a,gB.audio_track_id=lT.id,lT.audioIsDefault&&(gB.is_default="1"))}if(IW.drmFamilies){for(var y1g=[],kD8=g.a(IW.drmFamilies),iCa=kD8.next();!iCa.done;iCa=kD8.next())y1g.push(Q6[iCa.value]);gB.drm_families=y1g.join(",")}var Vi=q7[IW.itag];if(Vi&&Vi.length){gB.audio_itag=Vi.join(","); var hQ8=ISS[Vi[0]];hQ8&&(gB.bitrate+=hQ8)}var aSp=pCo(IW);aSp&&(gB.eotf=aSp);IW.audioChannels&&(gB.audio_channels=IW.audioChannels);eQI.push(g.l6(gB))}this.hlsFormats=eQI.join(",")}var dWp=Mi.licenseInfos;if(dWp&&dWp.length>0){for(var RQq={},S7I=g.a(dWp),c4q=S7I.next();!c4q.done;c4q=S7I.next()){var uxv=c4q.value,LIv=uxv.drmFamily,EMp=uxv.url;LIv&&EMp&&(RQq[Q6[LIv]]=EMp)}this.UW=RQq}var P4p=Mi.drmParams;P4p&&(this.drmParams=P4p);var HEI=Mi.dashManifestUrl;HEI&&(this.E0=g.V8(HEI,{cpn:this.clientPlaybackNonce})); var Q0S=Mi.hlsManifestUrl;Q0S&&(this.hlsvp=Q0S);var q7o=Mi.probeUrl;q7o&&(this.probeUrl=II(g.V8(q7o,{cpn:this.clientPlaybackNonce})));var m$S=Mi.serverAbrStreamingUrl;m$S&&(this.Fa=new g.WN(m$S,!0))}var lSd=this.playerResponse.trackingParams;lSd&&(this.vx=lSd);var Nt=this.playerResponse.videoDetails;if(Nt){var iL=z,sjS=Nt.videoId;sjS&&(this.videoId=sjS,iL.video_id||(iL.video_id=sjS));var A48=Nt.title;A48&&(this.title=A48,iL.title||(iL.title=A48));var jj8=Nt.lengthSeconds;jj8&&(this.lengthSeconds= Number(jj8),iL.length_seconds||(iL.length_seconds=jj8));var V9d=Nt.keywords;V9d&&(this.keywords=jxS(V9d));var YH8=Nt.channelId;YH8&&(this.rL=YH8,iL.ucid||(iL.ucid=YH8));var nMu=Nt.viewCount;nMu&&(this.rawViewCount=Number(nMu));var Xid=Nt.author;Xid&&(this.author=Xid,iL.author||(iL.author=Xid));var WIp=Nt.shortDescription;WIp&&(this.shortDescription=WIp);var J15=Nt.isCrawlable;J15&&(this.isListed=J15);var gM8=Nt.musicVideoType;gM8&&(this.musicVideoType=gM8);var xW8=Nt.isLive;xW8!=null&&(this.isLivePlayback= xW8);if(xW8||Nt.isUpcoming)this.isPremiere=!Nt.isLiveContent;var iEv=Nt.thumbnail;iEv&&(this.D=EN(iEv));var d$S=Nt.isExternallyHostedPodcast;d$S&&(this.isExternallyHostedPodcast=d$S);var Fd5=Nt.viewerLivestreamJoinPosition;if(Fd5==null?0:Fd5.utcTimeMillis)this.XR=S8(Fd5.utcTimeMillis);var c1v=jT||null,OCp=z;Nt.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);Nt.isUpcoming&&(this.isUpcoming=!0);if(Nt.isPostLiveDvr){this.Ca=!0;var s0a=Nt.latencyClass;s0a&&(this.latencyClass=TWf[s0a]||"UNKNOWN"); Nt.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var r4S=!1;this.oa?(this.allowLiveDvr=IQ()?!0:f3&&Zd<5?!1:!0,this.isLivePlayback=!0):Nt.isLive?(OCp.livestream="1",this.allowLiveDvr=Nt.isLiveDvrEnabled?IQ()?!0:f3&&Zd<5?!1:!0:!1,this.partnerId=27,r4S=!0):Nt.isUpcoming&&(r4S=!0);if(Nt.isLive||this.oa){Nt.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var A1T=Nt.latencyClass;A1T&&(this.latencyClass=TWf[A1T]||"UNKNOWN");var j08=Nt.liveChunkReadahead;j08&&(this.liveChunkReadahead= j08);var I7=c1v&&c1v.livePlayerConfig;if(I7){I7.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);I7.hasSubfragmentedWebm&&(this.Nh=!0);I7.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var Y78=I7.liveExperimentalContentId;Y78&&(this.liveExperimentalContentId=Number(Y78));var X18=I7.isLiveHeadPlayable;this.B("html5_live_head_playable")&&X18!=null&&(this.isLiveHeadPlayable=X18)}}r4S&&(this.isLivePlayback=!0,OCp.adformat&&OCp.adformat.split("_")[1]!=="8"||this.l_.push("heartbeat"), this.Gc=!0)}var x$5=Nt.isPrivate;x$5!==void 0&&(this.isPrivate=vK(this.isPrivate,x$5))}if(M8){var FIT=Nt||null,OEa=!1,GL=M8.errorScreen;OEa=GL&&(GL.playerLegacyDesktopYpcOfferRenderer||GL.playerLegacyDesktopYpcTrailerRenderer||GL.ypcTrailerRenderer)?!0:FIT&&FIT.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(M8.status);if(!OEa){this.errorCode=oqT(M8.errorCode)||"auth";var no=GL&&GL.playerErrorMessageRenderer;if(no){this.playerErrorMessageRenderer=no;var r1a=no.reason;r1a&&(this.errorReason= g.Lc(r1a));var ZCu=no.subreason;ZCu&&(this.WV=g.Lc(ZCu),this.x4=ZCu)}else this.errorReason=M8.reason||null;var oN8=M8.status;if(oN8==="LOGIN_REQUIRED")this.errorDetail="1";else if(oN8==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(oN8==="AGE_CHECK_REQUIRED"){var ZET=M8.errorScreen,oMg=ZET&&ZET.playerKavRenderer;this.errorDetail=oMg&&oMg.kavUrl?"4":"3"}else this.errorDetail=M8.isBlockedInRestrictedMode?"5":"0"}}var C4u=this.playerResponse.interstitialPods;C4u&&Gcv(this,C4u);this.Px&&this.eventId&& (this.Px=bm(this.Px,{ei:this.eventId}));var CgW=this.playerResponse.captions;if(CgW&&CgW.playerCaptionsTracklistRenderer)a:{var dB=CgW.playerCaptionsTracklistRenderer;this.captionTracks=[];if(dB.captionTracks)for(var TKu=g.a(dB.captionTracks),Tku=TKu.next();!Tku.done;Tku=TKu.next()){var cO=Tku.value,U$q=cvg(cO.baseUrl);if(!U$q)break a;var UWg={is_translateable:!!cO.isTranslatable,languageCode:cO.languageCode,languageName:cO.name&&g.Lc(cO.name),url:U$q,vss_id:cO.vssId,kind:cO.kind};UWg.name=cO.trackName; UWg.displayName=cO.name&&g.Lc(cO.name);this.captionTracks.push(new g.aB(UWg))}this.Kl=dB.audioTracks||[];this.FD=dB.defaultAudioTrackIndex||0;this.q_=[];if(dB.translationLanguages)for(var z4u=g.a(dB.translationLanguages),zrg=z4u.next();!zrg.done;zrg=z4u.next()){var bR=zrg.value,SL={};SL.languageCode=bR.languageCode;SL.languageName=g.Lc(bR.languageName);if(bR.translationSourceTrackIndices){SL.translationSourceTrackIndices=[];for(var Kzv=g.a(bR.translationSourceTrackIndices),KuI=Kzv.next();!KuI.done;KuI= Kzv.next())SL.translationSourceTrackIndices.push(KuI.value)}if(bR.excludeAudioTrackIndices){SL.excludeAudioTrackIndices=[];for(var $Lv=g.a(bR.excludeAudioTrackIndices),$Q8=$Lv.next();!$Q8.done;$Q8=$Lv.next())SL.excludeAudioTrackIndices.push($Q8.value)}this.q_.push(SL)}this.FN=[];if(dB.defaultTranslationSourceTrackIndices)for(var f$a=g.a(dB.defaultTranslationSourceTrackIndices),feo=f$a.next();!feo.done;feo=f$a.next())this.FN.push(feo.value);this.Ns=!!dB.contribute&&!!dB.contribute.captionsMetadataRenderer}(this.clipConfig= this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.ai=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&eiW(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var MWu;this.compositeLiveIngestionOffsetToken=(MWu=this.playerResponse.playbackTracking)==null?void 0:MWu.compositeLiveIngestionOffsetToken; var pB8;this.compositeLiveStatusToken=(pB8=this.playerResponse.playbackTracking)==null?void 0:pB8.compositeLiveStatusToken}Tt(this,z);z.queue_info&&(this.queueInfo=z.queue_info);var tWu=z.hlsdvr;tWu!=null&&(this.allowLiveDvr=Number(tWu)===1?IQ()?!0:f3&&Zd<5?!1:!0:!1);this.adQueryId=z.ad_query_id||null;this.YX||(this.YX=z.encoded_ad_safety_reason||null);this.L7=vK(this.L7,z.infringe||z.muted);this.O7=z.authkey;this.vB=z.authuser;this.mutedAutoplay=vK(this.mutedAutoplay,z&&z.playmuted);this.mutedAutoplayDurationMode= GC(this.mutedAutoplayDurationMode,z&&z.muted_autoplay_duration_mode);this.Iz=vK(this.Iz,z&&z.mutedautoplay);var W0=z.length_seconds;W0&&(this.lengthSeconds=typeof W0==="string"?S8(W0):W0);if(this.isAd()||this.LY||!g.yS(g.Xf(this.pH)))this.endSeconds=GC(this.endSeconds,this.I_||z.end||z.endSeconds);else{var nB8=g.Xf(this.pH),Jr=this.lengthSeconds;switch(nB8){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":Jr>30?this.limitedPlaybackDurationInSeconds=30:Jr<30&&Jr>10&&(this.limitedPlaybackDurationInSeconds= 10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=Jr*.2}}this.vx=bu(this.vx,z.itct);this.Uu=vK(this.Uu,z.is_live_destination);this.isLivePlayback=vK(this.isLivePlayback,z.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.CI();z.isUpcoming&&(this.isUpcoming=vK(this.isUpcoming,z.isUpcoming));this.Ca=vK(this.Ca,z.post_live_playback);this.Y1&&(this.Ca=!1);this.isMdxPlayback=vK(this.isMdxPlayback,z.mdx);var gX=z.mdx_control_mode; gX&&(this.mdxControlMode=typeof gX==="number"?gX:S8(gX));this.isInlinePlaybackNoAd=vK(this.isInlinePlaybackNoAd,z.is_inline_playback_no_ad);this.Ft=GC(this.Ft,z.reload_count);this.reloadReason=bu(this.reloadReason,z.reload_reason);this.ND=vK(this.ND,z.show_content_thumbnail);this.cycToken=z.cyc||null;var B_v=La(z);Object.keys(B_v).length>0&&(this.D=B_v);this.Hx=bu(this.Hx,z.vvt);this.mdxEnvironment=bu(this.mdxEnvironment,z.mdx_environment);z.source_container_playlist_id&&(this.sourceContainerPlaylistId= z.source_container_playlist_id);z.serialized_mdx_metadata&&(this.serializedMdxMetadata=z.serialized_mdx_metadata);this.zO=z.osig;this.eventId||(this.eventId=z.eventid);this.osid||(this.osid=z.osid);this.playlistId=bu(this.playlistId,z.list);z.index&&(this.playlistIndex=this.playlistIndex===void 0?GC(0,z.index):GC(this.playlistIndex,z.index));this.RU=z.pyv_view_beacon_url;this.AE=z.pyv_quartile25_beacon_url;this.Ys=z.pyv_quartile50_beacon_url;this.lR=z.pyv_quartile75_beacon_url;this.SS=z.pyv_quartile100_beacon_url; var N_g=z.session_data;!this.Te&&N_g&&(this.Te=ta(N_g,"&").feature);this.isFling=GC(this.isFling?1:0,z.is_fling)===1;this.vnd=GC(this.vnd,z.vnd);this.forceAdsUrl=bu(this.forceAdsUrl,z.force_ads_url);this.ya=bu(this.ya,z.ctrl);this.O8=bu(this.O8,z.ytr);this.M$=z.ytrcc;this.qS=z.ytrexp;this.jK=z.ytrext;this.K3=bu(this.K3,z.adformat);this.FR=bu(this.FR,z.attrib);this.slotPosition=GC(this.slotPosition,z.slot_pos);this.breakType=z.break_type;this.Pg=vK(this.Pg,z.ssrt);this.videoId=w0(z)||this.videoId; this.W=bu(this.W,z.vss_credentials_token);this.kq=bu(this.kq,z.vss_credentials_token_type);this.XK=vK(this.XK,z.audio_only);this.QE=vK(this.QE,z.aac_high);this.eK=vK(this.eK,z.prefer_low_quality_audio);this.XN=vK(this.XN,z.uncap_inline_quality);this.B("html5_enable_qoe_cat_list")?z.qoe_cat&&(this.Sm=this.Sm.concat(z.qoe_cat.split(","))):this.q8=bu(this.q8,z.qoe_cat);this.nk=vK(this.nk,z.download_media);var vCS=z.prefer_gapless;this.G=vCS!=null?vK(this.G,vCS):this.G?this.G:this.pH.preferGapless&&this.pH.supportsGaplessShorts(); B38(this.playerResponse)&&this.l_.push("ad");var I$u=z.adaptive_fmts;I$u&&(this.adaptiveFormats=I$u,this.Th("adpfmts",{},!0));var GeS=z.allow_embed;GeS&&(this.allowEmbed=Number(GeS)===1);var b08=z.backgroundable;b08&&(this.backgroundable=Number(b08)===1);var e4u=z.autonav;e4u&&(this.isAutonav=Number(e4u)===1);var wB8=z.autoplay;wB8&&(this.NV=this.X9=Number(wB8)===1);var DLo=z.iv_load_policy;DLo&&(this.annotationsLoadPolicy=IZ(this.annotationsLoadPolicy,DLo,xv));var ypo=z.cc_lang_pref;ypo&&(this.captionsLanguagePreference= bu(ypo,this.captionsLanguagePreference));var ke8=z.cc_load_policy;ke8&&(this.EZ=IZ(this.EZ,ke8,xv));var h4I;this.deviceCaptionsOn=(h4I=z.device_captions_on)!=null?h4I:void 0;var a$8;this.L2=(a$8=z.device_captions_lang_pref)!=null?a$8:"";var R48;this.Yk=(R48=z.viewer_selected_caption_langs)!=null?R48:[];if(!this.B("html5_enable_ssap_entity_id")){var SKv=z.cached_load;SKv&&(this.gU=vK(this.gU,SKv))}if(z.dash==="0"||z.dash===0||z.dash===!1)this.lZ=!0;var u1a=z.dashmpd;u1a&&(this.E0=g.V8(u1a,{cpn:this.clientPlaybackNonce})); var Lz8=z.delay;Lz8&&(this.nI=S8(Lz8));var M2S=this.I_||z.end;if(this.O3?M2S!=null:M2S!=void 0)this.clipEnd=GC(this.clipEnd,M2S);var EC8=z.fmt_list;EC8&&(this.d9=EC8);z.heartbeat_preroll&&this.l_.push("heartbeat");this.hP=-Math.floor(Math.random()*10);this.UV=-Math.floor(Math.random()*40);var PWT=z.is_listed;PWT&&(this.isListed=vK(this.isListed,PWT));var H0d=z.is_private;H0d&&(this.isPrivate=vK(this.isPrivate,H0d));var QS8=z.is_dni;QS8&&(this.f3=vK(this.f3,QS8));var qKu=z.dni_color;qKu&&(this.kR= bu(this.kR,qKu));var mLS=z.pipable;mLS&&(this.pipable=vK(this.pipable,mLS));this.xs=(this.vY=this.pipable&&this.pH.TY)&&!this.pH.showMiniplayerButton;var l$q=z.paid_content_overlay_duration_ms;l$q&&(this.paidContentOverlayDurationMs=S8(l$q));var VW8=z.paid_content_overlay_text;VW8&&(this.paidContentOverlayText=VW8);var nCu=z.url_encoded_fmt_stream_map;nCu&&(this.FK=nCu);var Wzo=z.hls_formats;Wzo&&(this.hlsFormats=Wzo);var Jpq=z.hlsvp;Jpq&&(this.hlsvp=Jpq);var iT=z.live_start_walltime;iT&&(this.KQ= typeof iT==="number"?iT:S8(iT));var dX=z.live_manifest_duration;dX&&(this.hf=typeof dX==="number"?dX:S8(dX));var gCd=z.player_params;gCd&&(this.playerParams=gCd);var i0o=z.partnerid;i0o&&(this.partnerId=GC(this.partnerId,i0o));var dLd=z.probe_url;dLd&&(this.probeUrl=II(g.V8(dLd,{cpn:this.clientPlaybackNonce})));var p7S=z.pyv_billable_url;p7S&&DbI(p7S)&&(this.u2=p7S);var t2g=z.pyv_conv_url;t2g&&DbI(t2g)&&(this.NQ=t2g);YFq(this,z);this.startSeconds>0?this.B("html5_log_start_seconds_inconsistency")&& this.startSeconds!==(this.ai||this.w_||z.start||z.startSeconds)&&this.Th("lss",{css:this.startSeconds,pcss:this.ai,iss:this.w_,ps:z.start||void 0,pss:z.startSeconds||void 0}):this.W1=this.startSeconds=GC(this.startSeconds,this.ai||this.w_||z.start||z.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var cpW=z.live_utc_start;if(cpW!=null)this.liveUtcStartSeconds=Number(cpW);else{var Bjq=this.startSeconds;Bjq&&isFinite(Bjq)&&Bjq>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&& this.liveUtcStartSeconds>0)){var sSu=z.utc_start_millis;sSu&&(this.liveUtcStartSeconds=Number(sSu)*.001)}var ApI=z.stream_time_start_millis;ApI&&(this.t9=Number(ApI)*.001);var NjW=this.w_||z.start;(this.O3?NjW==null||Number(z.resume)===1:NjW==void 0||z.resume=="1")||this.isLivePlayback||(this.clipStart=GC(this.clipStart,NjW));var jS5=z.url_encoded_third_party_media;jS5&&(this.aH=vg(jS5));var vgu=z.ypc_offer_button_formatted_text;if(vgu){var YKI=JSON.parse(vgu);this.TT=YKI!=null?YKI:null;this.FM=vgu}var XBu= z.ypc_offer_button_text;XBu&&(this.e8=XBu);var xLW=z.ypc_offer_description;xLW&&(this.ke=xLW);var Fza=z.ypc_offer_headline;Fza&&(this.xn=Fza);var O0d=z.ypc_full_video_message;O0d&&(this.nN=O0d);var rpW=z.ypc_offer_id;rpW&&(this.S1=rpW);var Z0u=z.ypc_buy_url;Z0u&&(this.lA=Z0u);var oCS=z.ypc_item_thumbnail;oCS&&(this.zQ=oCS);var CWd=z.ypc_item_title;CWd&&(this.du=CWd);var T_v=z.ypc_item_url;T_v&&(this.H0=T_v);var ULS=z.ypc_vid;ULS&&(this.NP=ULS);z.ypc_overlay_timeout&&(this.wu=Number(z.ypc_overlay_timeout)); var z9g=z.ypc_trailer_player_vars;z9g&&(this.A0=Nu(z9g));var KRv=z.ypc_original_itct;KRv&&(this.eu1=KRv);this.rL=bu(this.rL,z.ucid);this.ez=z.storyboard_spec||null;this.cf=z.live_storyboard_spec||null;this.Kv=z.iv_endscreen_url||null;this.Gc=vK(this.Gc,z.ypc_license_checker_module);this.Zh=vK(this.Zh,z.ypc_module);this.Hm=vK(this.Hm,z.ypc_clickwrap_module);this.Zh&&this.l_.push("ypc");this.Hm&&this.l_.push("ypc_clickwrap");this.pA={video_id:z.video_id,eventid:z.eventid,cbrand:z.cbrand,cbr:z.cbr,cbrver:z.cbrver, c:z.c,cver:z.cver,ctheme:z.ctheme,cplayer:z.cplayer,cmodel:z.cmodel,cnetwork:z.cnetwork,cos:z.cos,cosver:z.cosver,cplatform:z.cplatform,user_age:z.user_age,user_display_image:z.user_display_image,user_display_name:z.user_display_name,user_gender:z.user_gender,csi_page_type:z.csi_page_type,csi_service_name:z.csi_service_name,enablecsi:z.enablecsi,enabled_engage_types:z.enabled_engage_types};dv8(this,z);var $48=z.cotn;$48&&(this.cotn=$48);if($GT(this))DA(this)&&(this.isLivePlayback&&this.E0&&(this.tJ= !0),this.Xc&&(this.Ri=!0));else if(fXS(this))this.tJ=!0;else{var fcW,Mwg,pzg=((fcW=this.playerResponse)==null?void 0:(Mwg=fcW.streamingData)==null?void 0:Mwg.adaptiveFormats)||[];if(pzg.length>0)var PI=Koq(this,pzg);else{var twp=this.adaptiveFormats;if(twp&&!DA(this)){this.pH.C.T&&(A5=!0);var ev=uv(twp),Ieu=this.UW,BGp=this.lengthSeconds,Ww4=this.isLivePlayback,HI=this.Ca,wQ=this.pH,Ja2=abS(ev);if(Ww4||HI){var NGu=wQ==null?void 0:wQ.experiments,rs=new Pr("",NGu,!0);rs.CI=!0;rs.isManifestless=!0;rs.Y= !HI;rs.isLive=!HI;rs.Ca=HI;for(var vYI=g.a(ev),Ggp=vYI.next();!Ggp.done;Ggp=vYI.next()){var DR=Ggp.value,Icd=mj(DR,Ieu),ui=lj(DR.url,DR.sp,DR.s),GV8=ui.get("id");GV8&&GV8.includes("%7E")&&(rs.N=!0);var bMa=void 0,gBZ=(bMa=NGu)==null?void 0:bMa.sf("html5_max_known_end_time_rebase"),iJ8=Number(DR.target_duration_sec)||5,du_=Number(DR.max_dvr_duration_sec)||14400,e9W=Number(ui.get("mindsq")||ui.get("min_sq")||"0"),wza=Number(ui.get("maxdsq")||ui.get("max_sq")||"0")||Infinity;rs.dh=rs.dh||e9W;rs.Tm=rs.Tm|| wza;var ca1=!Gr(Icd.mimeType);ui&&uj(rs,new t5(ui,Icd,{fW:iJ8,Jr:ca1,cX:du_,dh:e9W,Tm:wza,Ce:300,Ca:HI,O5:gBZ}))}var D4d=rs}else{if(Ja2==="FORMAT_STREAM_TYPE_OTF"){var c0=BGp;c0=c0===void 0?0:c0;var y7=new Pr("",wQ==null?void 0:wQ.experiments,!1);y7.duration=c0||0;for(var yIa=g.a(ev),bPS=yIa.next();!bPS.done;bPS=yIa.next()){var k8=bPS.value,erT=mj(k8,Ieu,y7.duration),w7a=lj(k8.url,k8.sp,k8.s);if(w7a)if(erT.streamType==="FORMAT_STREAM_TYPE_OTF")uj(y7,new Br(w7a,erT,"sq/0"));else{var sw5=ce(k8.init), Aaf=ce(k8.index);uj(y7,new a6(w7a,erT,sw5,Aaf))}}y7.isOtf=!0;var kVg=y7}else{var sg=BGp;sg=sg===void 0?0:sg;var Ar=new Pr("",wQ==null?void 0:wQ.experiments,!1);Ar.duration=sg||0;for(var h9S=g.a(ev),DQp=h9S.next();!DQp.done;DQp=h9S.next()){var hM=DQp.value,jwQ=mj(hM,Ieu,Ar.duration),YJH=ce(hM.init),XgT=ce(hM.index),acv=lj(hM.url,hM.sp,hM.s);acv&&uj(Ar,new a6(acv,jwQ,YJH,XgT))}kVg=Ar}D4d=kVg}var R9W=D4d;if(ev.length>0){var Sya=ev[0];if(this.Z().playerStyle==="hangouts-meet"&&Sya.url){var xu5=g.Iw(Sya.url); this.A1=this.A1||Number(xu5.expire)}}var FwS=this.isLivePlayback&&!this.Ca&&!this.Y1&&!this.isPremiere;this.B("html5_live_head_playable")&&(!y_(this)&&FwS&&this.Th("missingLiveHeadPlayable",{}),this.pH.Y1==="yt"&&(R9W.Px=!0));PI=R9W}else PI=null;this.Th("pafmts",{isManifestFilled:!!PI})}if(PI){ap(this,PI);var uFS=!0}else uFS=!1;uFS?this.enableServerStitchedDai=this.enableServerStitchedDai&&k3(this):this.E0&&(this.pH.Y1==="yt"&&this.CI()&&this.B("drm_manifestless_unplugged")&&this.B("html5_deprecate_manifestful_fallback")? this.Th("deprecateMflFallback",{}):this.tJ=!0)}var yGv=z.adpings;yGv&&(this.An=yGv?Nu(yGv):null);var LRS=z.feature;LRS&&(this.Ar=LRS);var EYT=z.referrer;EYT&&(this.referrer=EYT);this.clientScreenNonce=bu(this.clientScreenNonce,z.csn);this.LU=GC(this.LU,z.root_ve_type);this.WU=GC(this.WU,z.kids_age_up_mode);this.O3||z.kids_app_info==void 0||(this.kidsAppInfo=z.kids_app_info);this.O3&&z.kids_app_info!=null&&(this.kidsAppInfo=z.kids_app_info);this.S7=vK(this.S7,z.upg_content_filter_mode);this.unpluggedFilterModeType= GC(this.unpluggedFilterModeType,z.unplugged_filter_mode_type);var PUd=z.unplugged_location_info;PUd&&(this.ES=PUd);var HMW=z.unplugged_partner_opt_out;HMW&&(this.cP=bu("",HMW));this.zT=vK(this.zT,z.disable_watch_next);this.e7=bu(this.e7,z.internal_ip_override);this.cU=!!z.is_yto_interstitial;(this.interstitials.length||this.cU)&&this.l_.push("yto");var QMq=z.Ii;QMq&&(this.Ii=QMq);this.N=bu(this.N,z.csi_timer);z.watchUrl&&(this.watchUrl=z.watchUrl);var Lv=z.watch_endpoint;this.B("html5_attach_watch_endpoint_ustreamer_config")&& Lv&&UZv(this,Lv);if(Lv==null?0:Lv.ustreamerConfig)this.vg=eo(Lv.ustreamerConfig);var qyI,m45,lca=Lv==null?void 0:(qyI=Lv.loggingContext)==null?void 0:(m45=qyI.qoeLoggingContext)==null?void 0:m45.serializedContextData;lca&&(this.FVV=lca);g.Jw(this.pH)&&this.pH.aL&&(this.embedsRct=bu(this.embedsRct,z.rct),this.embedsRctn=bu(this.embedsRctn,z.rctn));this.tU=this.tU||!!z.pause_at_start;z.default_active_source_video_id&&(this.defaultActiveSourceVideoId=z.default_active_source_video_id)}; g.k.Z=function(){return this.pH}; g.k.B=function(z){return this.pH.B(z)}; g.k.t_=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.k.hasSupportedAudio51Tracks=function(){var z;return!((z=this.BA)==null||!z.rE)}; g.k.getUserAudio51Preference=function(){var z=1;fa(this.pH)&&this.B("html5_ytv_surround_toggle_default_off")?z=0:g.zt(this.pH)&&this.isLivePlayback&&this.FS()&&(z=0);var K;return(K=g.AV("yt-player-audio51"))!=null?K:z}; g.k.Sn=function(){this.CH()||(this.S.Y||this.S.unsubscribe("refresh",this.Sn,this),this.qW(-1))}; g.k.qW=function(z){if(!this.isLivePlayback||!this.C||this.C.flavor!=="fairplay"){var K=SLI(this.S,this.mI);if(K.length>0){for(var f=g.a(K),M=f.next();!M.done;M=f.next())M=M.value,M.startSecs=Math.max(M.startSecs,this.L6()),this.B("html5_cuepoint_identifier_logging")&&M.event==="start"&&this.Th("cuepoint",{pubCue:M.identifier,segNum:z});this.publish("cuepointupdated",K,z);this.mI+=K.length;if(k3(this)&&this.pH.i8())for(K=g.a(K),f=K.next();!f.done;f=K.next())f=f.value,this.Th("cuepoint",{segNum:z,event:f.event, startSecs:f.startSecs,id:f.identifier.slice(-16)}),f.event==="start"&&(f=f.startSecs,this.vP.start=this.ra,this.vP.end=f+3)}}}; g.k.Ot=function(){this.CH()||(this.loading=!1,this.publish("dataloaded"))}; g.k.FS=function(){return this.qb!==void 0?this.qb:this.qb=!!this.UW||!!this.S&&HN(this.S)}; g.k.tS=function(z){var K=this;if(this.CH())return dV();this.QW=this.b_=this.T=null;if(TP(this,"html5_high_res_logging_always")||GP(this))this.pH.K3=!0;return BUa(this,z).then(void 0,function(){return vcS(K,z)}).then(void 0,function(){return IXT(K)}).then(void 0,function(){return b9S(K)})}; g.k.j5=function(z){this.T=z;NUq(this,this.T.getAvailableAudioTracks());if(this.T){z=g.a(this.T.videoInfos);for(var K=z.next();!K.done;K=z.next()){K=K.value;var f=K.containerType;f!==0&&(this.Jf[f]=K.id)}}z=this.getAvailableAudioTracks();z=z.concat(this.r8);for(K=0;K0?this.T.getAvailableAudioTracks():this.w2||[]:[]}; g.k.getAudioTrack=function(){var z=this;if(this.J&&!BA(this.J)){var K=g.yQ(this.getAvailableAudioTracks(),function(p){return p.id===z.J.id}),f; if(!K&&((f=this.J.b8)==null?0:f.id)){var M=this.J.b8.id;K=g.yQ(this.getAvailableAudioTracks(),function(p){return p.b8.id===M}); this.Th("nat",{id:this.J.id,track:!!K})}return K||this.r8}if(this.w2){if(!this.G2)for(K=g.a(this.w2),f=K.next();!f.done;f=K.next())if(f=f.value,f.b8.getIsDefault()){this.G2=f;break}return this.G2||this.r8}return this.r8}; g.k.getPlayerResponse=function(){return this.playerResponse}; g.k.getWatchNextResponse=function(){return this.eV}; g.k.getHeartbeatResponse=function(){return this.j7}; g.k.xv=function(){return this.watchUrl?this.watchUrl:this.pH.getVideoUrl(this.videoId)}; g.k.NG=function(){return!!this.S&&(bwv(this.S)||eaq(this.S)||wCd(this.S))}; g.k.getEmbeddedPlayerResponse=function(){return this.I1}; g.k.WW=function(){return(this.eventLabel||this.pH.eV)==="shortspage"}; g.k.isAd=function(){return!!this.adFormat}; g.k.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.k.Fr=function(){var z,K,f;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((z=this.playerResponse)==null?0:(K=z.playerConfig)==null?0:(f=K.daiConfig)==null?0:f.ssaEnabledPlayback)}; g.k.y7=function(){return Jkv(this)?this.aJ:this.Gc||this.Co}; g.k.z3=function(){return this.Zh||this.Co}; g.k.Mf=function(){return TP(this,"html5_samsung_vp9_live")}; g.k.Th=function(z,K,f){this.publish("ctmp",z,K,f)}; g.k.Hs=function(z,K,f){this.publish("ctmpstr",z,K,f)}; g.k.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.k.getGetAdBreakContext=function(z,K){z=z===void 0?NaN:z;K=K===void 0?NaN:K;var f={isSabr:bv(this)},M,p=(M=this.getHeartbeatResponse())==null?void 0:M.adBreakHeartbeatParams;p&&(f.adBreakHeartbeatParams=p);if(this.B("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.S&&!isNaN(z)&&!isNaN(K)){K=z-K;for(var t in this.S.S)if(M=this.S.S[t],M.info.Zf()||M.info.ev())if(M=M.index,M.isLoaded()){t=M.NZ(K);M=M.ll(t)+K-M.getStartTime(t);this.Th("gabc",{t:z.toFixed(3),mt:K.toFixed(3),sg:t,igt:M.toFixed(3)}); f.livePlaybackPosition={utcTimeMillis:""+(M*1E3).toFixed(0)};break}}return f}; g.k.isEmbedsShortsMode=function(z,K){if(!g.Jw(this.pH)||(this.pH.Hx||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||K)return!1;var f,M;return!!(((f=this.embeddedPlayerConfig)==null?0:(M=f.embeddedPlayerFlags)==null?0:M.isShortsExperienceEligible)&&z.width<=z.height)}; g.k.JL=function(){g.Dv.prototype.JL.call(this);this.An=null;delete this.dR;delete this.accountLinkingConfig;delete this.S;this.T=this.j7=this.playerResponse=this.eV=null;this.FK=this.adaptiveFormats="";delete this.botguardData;this.VE=this.suggestions=this.TY=null;this.sabrContextUpdates.clear()};var Ylu={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},XaS={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Akp={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},dGW={0:"YT_KIDS_AGE_UP_MODE_UNKNOWN",1:"YT_KIDS_AGE_UP_MODE_OFF",2:"YT_KIDS_AGE_UP_MODE_TWEEN",3:"YT_KIDS_AGE_UP_MODE_PRESCHOOL"},sdd={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},ckI={0:"UNPLUGGED_FILTER_MODE_TYPE_UNKNOWN",1:"UNPLUGGED_FILTER_MODE_TYPE_NONE",2:"UNPLUGGED_FILTER_MODE_TYPE_PG", 3:"UNPLUGGED_FILTER_MODE_TYPE_PG_THIRTEEN"},jd8={0:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_UNSPECIFIED",1:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_30_SECONDS",2:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_FULL"};g.h(IN,g.J);g.k=IN.prototype;g.k.handleExternalCall=function(z,K,f){var M=this.state.G[z],p=this.state.D[z],t=M;if(p)if(f&&Bt(f,ki9))t=p;else if(!M)throw Error('API call from an untrusted origin: "'+f+'"');this.logApiCall(z,f);if(t){f=!1;M=g.a(K);for(p=M.next();!p.done;p=M.next())if(String(p.value).includes("javascript:")){f=!0;break}f&&g.Al(Error('Dangerous call to "'+z+'" with ['+K+"]."));return t.apply(this,K)}throw Error('Unknown API method: "'+z+'".');}; g.k.logApiCall=function(z,K,f){var M=this.app.Z();M.G2&&!this.state.N.has(z)&&(this.state.N.add(z),g.Ds("webPlayerApiCalled",{callerUrl:M.loaderUrl,methodName:z,origin:K||void 0,playerStyle:M.playerStyle||void 0,embeddedPlayerMode:M.Hx,errorCode:f}))}; g.k.publish=function(z){var K=g.i8.apply(1,arguments);this.state.T.publish.apply(this.state.T,[z].concat(g.P(K)));if(z==="videodatachange"||z==="resize"||z==="cardstatechange")this.state.Y.publish.apply(this.state.Y,[z].concat(g.P(K))),this.state.J.publish.apply(this.state.J,[z].concat(g.P(K)))}; g.k.LH=function(z){var K=g.i8.apply(1,arguments);this.state.T.publish.apply(this.state.T,[z].concat(g.P(K)));this.state.Y.publish.apply(this.state.Y,[z].concat(g.P(K)))}; g.k.rO=function(z){var K=g.i8.apply(1,arguments);this.state.T.publish.apply(this.state.T,[z].concat(g.P(K)));this.state.Y.publish.apply(this.state.Y,[z].concat(g.P(K)));this.state.J.publish.apply(this.state.J,[z].concat(g.P(K)))}; g.k.IX=function(z){var K=g.i8.apply(1,arguments);this.state.T.publish.apply(this.state.T,[z].concat(g.P(K)));this.state.Y.publish.apply(this.state.Y,[z].concat(g.P(K)));this.state.J.publish.apply(this.state.J,[z].concat(g.P(K)));this.state.C.publish.apply(this.state.C,[z].concat(g.P(K)))}; g.k.B=function(z){return this.app.Z().B(z)}; g.k.JL=function(){if(this.state.element){var z=this.state.element,K;for(K in this.state.S)this.state.S.hasOwnProperty(K)&&(z[K]=null);this.state.element=null}g.J.prototype.JL.call(this)};g.h(Do,g.Ws);Do.prototype.publish=function(z){var K=g.i8.apply(1,arguments);if(this.C.has(z))return this.C.get(z).push(K),!0;var f=!1;try{for(K=[K],this.C.set(z,K);K.length;)f=g.Ws.prototype.publish.call.apply(g.Ws.prototype.publish,[this,z].concat(g.P(K.shift())))}finally{this.C.delete(z)}return f};g.h(yp,g.J);yp.prototype.JL=function(){this.C.dispose();this.J.dispose();this.Y.dispose();this.T.dispose();this.N=this.S=this.D=this.G=this.W=void 0};var Ck8=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.h(hT,IN);g.k=hT.prototype;g.k.getApiInterface=function(){return Array.from(this.state.W)}; g.k.EG=function(z,K){this.state.C.subscribe(z,K)}; g.k.c$H=function(z,K){this.state.C.unsubscribe(z,K)}; g.k.getPlayerState=function(z){return unq(this.app,z)}; g.k.jM=function(){return unq(this.app)}; g.k.Mtq=function(z,K,f){Sz(this)&&(sr(this.app,!0,1),YU(this.app,z,K,f,1))}; g.k.getCurrentTime=function(z,K,f){var M=this.getPlayerState(z);if(this.app.getAppState()===2&&M===5){var p;return((p=this.app.getVideoData())==null?void 0:p.startSeconds)||0}return this.B("web_player_max_seekable_on_ended")&&M===0?nS(this.app,z):z?this.app.getCurrentTime(z,K,f):this.app.getCurrentTime(z)}; g.k.SM=function(){return this.app.getCurrentTime(1)}; g.k.El=function(){var z=this.app.ll(1);return isNaN(z)?this.getCurrentTime(1):z}; g.k.lL=function(){return this.app.getDuration(1)}; g.k.c_=function(z,K){z=g.qt(Math.floor(z),0,100);isFinite(z)&&lC(this.app,{volume:z,muted:this.isMuted()},K)}; g.k.lXE=function(z){this.c_(z,!1)}; g.k.BL=function(z){lC(this.app,{muted:!0,volume:this.getVolume()},z)}; g.k.IqE=function(){this.BL(!1)}; g.k.LB=function(z){RN(this.app)&&!this.B("embeds_enable_emc3ds_muted_autoplay")||lC(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},z)}; g.k.s5V=function(){RN(this.app)&&this.B("embeds_enable_emc3ds_muted_autoplay")||this.LB(!1)}; g.k.getPlayerMode=function(){var z={};this.app.getVideoData().f3&&(z.pfp={enableIma:g.zG(this.app.getVideoData())&&this.app.Y8().allowImaMonetization,autoplay:Y3(this.app.Y8()),mutedAutoplay:this.app.Y8().mutedAutoplay});return z}; g.k.bX=function(){var z=this.app.getPresentingPlayerType();if(z===2&&!this.app.RX()){var K=Vu(this.app.pI());if(!(ESQ(K)||g.Jw(this.app.Z())&&g.Z(this.app.Of().getPlayerState(),1024))||P89(K))return}(K=this.app.e_().qM)?K.playVideo():this.app.playVideo(z)}; g.k.LPx=function(){sr(this.app,!0,1);this.bX()}; g.k.pauseVideo=function(z){var K=this.app.getPresentingPlayerType();if(K!==2||this.app.RX()||ESQ(Vu(this.app.pI()))){var f=this.app.e_().qM;f?f.pauseVideo():this.app.pauseVideo(K,z)}}; g.k.UVa=function(){var z=this.app,K=!1;z.SV.O3&&(z.Fc.publish("pageTransition"),K=!0);z.stopVideo(K)}; g.k.clearVideo=function(){}; g.k.getAvailablePlaybackRates=function(){var z=this.app.Z();return z.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(z.J?z.ancestorOrigins[0]:window.location.origin)||z.Pg?Omf:z.supportsVarispeedExtendedFeatures?rR2:z.B("web_remix_allow_up_to_3x_playback_rate")&&g.O$(z)?ZmT:mn:[1]}; g.k.getPlaybackQuality=function(z){return(z=this.app.cA(z))?z.getPlaybackQuality():"unknown"}; g.k.y$E=function(){}; g.k.getAvailableQualityLevels=function(z){return(z=this.app.cA(z))?(z=g.UZ(z.Cd(),function(K){return K.quality}),z.length&&(z[0]==="auto"&&z.shift(),z=z.concat(["auto"])),z):[]}; g.k.RW=function(){return this.getAvailableQualityLevels(1)}; g.k.cI=function(){return this.Vj()}; g.k.Ul=function(){return 1}; g.k.getVideoLoadedFraction=function(z){return this.app.getVideoLoadedFraction(z)}; g.k.Vj=function(){return this.getVideoLoadedFraction()}; g.k.vI=function(){return 0}; g.k.getSize=function(){var z=this.app.wE().getPlayerSize();return{width:z.width,height:z.height}}; g.k.setSize=function(){this.app.wE().resize()}; g.k.loadVideoById=function(z,K,f,M){if(!z)return!1;z=kO(z,K,f);return this.app.loadVideoByPlayerVars(z,M)}; g.k.NH=function(z,K,f){z=this.loadVideoById(z,K,f,1);sr(this.app,z,1)}; g.k.cueVideoById=function(z,K,f,M){z=kO(z,K,f);this.app.cueVideoByPlayerVars(z,M)}; g.k.rF=function(z,K,f){this.cueVideoById(z,K,f,1)}; g.k.loadVideoByUrl=function(z,K,f,M){z=ocq(z,K,f);return this.app.loadVideoByPlayerVars(z,M)}; g.k.oO=function(z,K,f){z=this.loadVideoByUrl(z,K,f,1);sr(this.app,z,1)}; g.k.cueVideoByUrl=function(z,K,f,M){z=ocq(z,K,f);this.app.cueVideoByPlayerVars(z,M)}; g.k.N3=function(z,K,f){this.cueVideoByUrl(z,K,f,1)}; g.k.CQ=function(){var z=this.app.Z();if(z.l_)return"";var K=this.app.Y8(),f=void 0;K.isLivePlayback||(f=Math.floor(this.app.getCurrentTime(1)));return z.getVideoUrl(K.videoId,this.getPlaylistId()||void 0,f)}; g.k.YG=function(){return this.app.getDebugText()}; g.k.getVideoEmbedCode=function(){var z=this.app.Z();if(z.l_)return"";var K=this.app.Y8();return z.getVideoEmbedCode(K.isPrivate?"":K.title,this.app.Y8().videoId,this.app.wE().getPlayerSize(),this.getPlaylistId()||void 0)}; g.k.q3=function(z,K,f){return luT(this.app,z,K,f)}; g.k.removeCueRange=function(z){return nso(this.app,z)}; g.k.loadPlaylist=function(z,K,f,M){this.app.loadPlaylist(z,K,f,M)}; g.k.wY=function(z,K,f,M){this.loadPlaylist(z,K,f,M);sr(this.app,!0,1)}; g.k.cuePlaylist=function(z,K,f,M){this.app.cuePlaylist(z,K,f,M)}; g.k.nextVideo=function(z,K){this.app.nextVideo(z,K)}; g.k.C_q=function(){this.nextVideo();sr(this.app,!0,1)}; g.k.previousVideo=function(z){this.app.previousVideo(z)}; g.k.YSh=function(){this.previousVideo();sr(this.app,!0,1)}; g.k.playVideoAt=function(z){this.app.playVideoAt(z)}; g.k.scE=function(z){this.playVideoAt(z);sr(this.app,!0,1)}; g.k.setShuffle=function(z){var K=this.app.getPlaylist();K&&K.setShuffle(z)}; g.k.setLoop=function(z){var K=this.app.getPlaylist();K&&(K.loop=z)}; g.k.eM=function(){var z=this.app.getPlaylist();if(!z)return null;for(var K=[],f=0;f=400)if(z=this.Y8(),this.U.Z().B("client_respect_autoplay_switch_button_renderer"))z=!!z.autoplaySwitchButtonRenderer;else{var K,f,M,p;z=!!((K=z.getWatchNextResponse())==null?0:(f=K.contents)==null?0:(M=f.twoColumnWatchNextResults)==null?0:(p=M.autoplay)==null?0:p.autoplay)!==!1}if(z)this.S||(this.S=!0,this.s3(this.S),this.U.Z().B("web_player_autonav_toggle_always_listen")||SoS(this), K=this.Y8(),this.Ci(K.autonavState),this.U.logVisibility(this.element,this.S));else if(this.S=!1,this.s3(this.S),!this.U.Z().B("web_player_autonav_toggle_always_listen"))for(this.U.Z().B("web_player_autonav_toggle_always_listen"),K=g.a(this.Y),f=K.next();!f.done;f=K.next())this.W8(f.value)}; g.k.Ci=function(z){LGT(this)?this.isChecked=z!==1:((z=z!==1)||(g.OT(),z=g.Hg("web_autonav_allow_off_by_default")&&!g.r0(0,141)&&g.zM("AUTONAV_OFF_BY_DEFAULT")?!1:!g.r0(0,140)),this.isChecked=z);u9q(this)}; g.k.onClick=function(){this.isChecked=!this.isChecked;this.U.rb(this.isChecked?2:1);u9q(this);if(LGT(this)){var z=this.Y8().autoplaySwitchButtonRenderer;this.isChecked&&(z==null?0:z.onEnabledCommand)?this.U.LH("innertubeCommand",z.onEnabledCommand):!this.isChecked&&(z==null?0:z.onDisabledCommand)&&this.U.LH("innertubeCommand",z.onDisabledCommand)}this.U.logClick(this.element)}; g.k.getValue=function(){return this.isChecked}; g.k.Y8=function(){return this.U.getVideoData(1)};g.h(E$p,zD);g.h(B1,g.oN);B1.prototype.onClick=function(){this.enabled&&(N$(this,!this.checked),this.publish("select",this.checked))}; B1.prototype.getValue=function(){return this.checked}; B1.prototype.setEnabled=function(z){(this.enabled=z)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var Hg5=["en-CA","en","es-MX","fr-CA"];g.h(DS,B1);DS.prototype.Dq=function(z){z?this.S||(this.zP.md(this),this.S=!0):this.S&&(this.zP.gI(this),this.S=!1);this.S&&N$(this,ihv())}; DS.prototype.J=function(){g.Dz(this.element,"ytp-menuitem-highlight-transition-enabled")}; DS.prototype.T=function(z){var K=ihv();z!==K&&(K=g.OT(),oZ(190,z),oZ(192,!0),K.save(),this.U.LH("cinematicSettingsToggleChange",z))}; DS.prototype.JL=function(){this.S&&this.zP.gI(this);B1.prototype.JL.call(this)};g.h(kM,zD);kM.prototype.updateCinematicSettings=function(z){this.S=z;var K;(K=this.menuItem)==null||K.Dq(z);this.api.publish("onCinematicSettingsVisibilityChange",z)};g.h(lw5,zD);g.h(h1,zD);h1.prototype.setCreatorEndscreenVisibility=function(z){var K;(K=g1(this.api.pI()))==null||K.s3(z)}; h1.prototype.S=function(z){function K(M){M==="creatorendscreen"&&(M=g1(f.api.pI()))&&M.RTc(f.hideButton)} var f=this;this.hideButton=z;this.events.X(this.api,"modulecreated",K);K("creatorendscreen")};g.h(a0,B1);a0.prototype.J=function(z){this.T(z?1:0)}; a0.prototype.Y=function(){var z=this.hasDrcAudioTrack(),K=this.S()===1&&z;N$(this,K);this.setEnabled(z)}; a0.prototype.JL=function(){this.zP.gI(this);B1.prototype.JL.call(this)};g.h(R0,zD);R0.prototype.getDrcUserPreference=function(){return this.S}; R0.prototype.setDrcUserPreference=function(z){g.sT("yt-player-drc-pref",z,31536E3);z!==this.S&&(this.S=z,this.updateEnvironmentData(),this.Y()&&this.api.b4())}; R0.prototype.updateEnvironmentData=function(){this.api.Z().XK=this.S===1}; R0.prototype.Y=function(){var z,K,f=(z=this.api.getVideoData())==null?void 0:(K=z.T)==null?void 0:K.S;if(!f)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.B("mta_drc_mutual_exclusion_removal")){var M,p,t=(M=this.api.eg())==null?void 0:(p=M.b8)==null?void 0:p.id;return $E(f,function(B){var v;return B.audio.S&&((v=B.b8)==null?void 0:v.id)===t})}return $E(f,function(B){var v; return((v=B.audio)==null?void 0:v.S)===!0})};g.h(S9,zD);S9.prototype.onVideoDataChange=function(){var z=this,K=this.api.getVideoData();this.api.GE("embargo",1);var f=K==null?void 0:K.HP.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(f==null?0:f.length)?n$p(this,f.filter(function(M){return VRI(z,M)})):(K==null?0:K.cueRanges)&&n$p(this,K.cueRanges.filter(function(M){return VRI(z,M)}))}; S9.prototype.Y=function(z){return z.embargo!==void 0}; S9.prototype.JL=function(){zD.prototype.JL.call(this);this.S={}};g.h(u4,zD); u4.prototype.addEmbedsConversionTrackingParams=function(z){var K=this.api.Z(),f=K.widgetReferrer,M=K.E0,p=this.S,t="",B=K.getWebPlayerContextConfig();B&&(t=B.embedsIframeOriginParam||"");f.length>0&&(z.embeds_widget_referrer=f);M.length>0&&(z.embeds_referring_euri=M);K.J&&t.length>0&&(z.embeds_referring_origin=t);B&&B.embedsFeature&&(z.feature=B.embedsFeature);p.length>0&&(K.B("embeds_web_enable_lite_experiment_control_arm_logging")?p.unshift(28572):g.yS(g.Xf(K))&&p.unshift(159628),K=p.join(","),K= g.CJ()?K:g.vi(K,4),z.source_ve_path=K);this.S.length=0};g.h(WGd,zD);g.h(J3d,zD);g.h(LE,g.J);LE.prototype.JL=function(){g.J.prototype.JL.call(this);this.S=null;this.Y&&this.Y.disconnect()};g.h(igW,zD);g.h(E7,g.F);E7.prototype.show=function(){g.F.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; E7.prototype.stopTimer=function(){this.S&&(this.S.dispose(),this.S=null)}; E7.prototype.onVideoDataChange=function(z){var K,f,M=(K=this.api.getVideoData())==null?void 0:(f=K.getPlayerResponse())==null?void 0:f.playabilityStatus;M&&(K=dfS(M),g.Z(this.api.getPlayerStateObject(),128)||z==="dataloaderror"||!K?(this.Y=0,this.stopTimer(),this.hide()):(z=(K.remainingTimeSecs||0)*1E3,z>0&&(this.show(),this.updateValue("label",Vm(K.label)),seT(this,z))))}; E7.prototype.JL=function(){this.stopTimer();g.F.prototype.JL.call(this)};g.h(A3I,zD);g.h(P1,g.F);P1.prototype.onClick=function(){this.Fc.logClick(this.element);this.Fc.LH("onFullerscreenEduClicked")}; P1.prototype.Dq=function(){this.Fc.isFullscreen()?this.S?this.fade.hide():this.fade.show():this.hide();this.Fc.logVisibility(this.element,this.Fc.isFullscreen()&&!this.S)};g.h(H1,zD);H1.prototype.updateFullerscreenEduButtonSubtleModeState=function(z){var K;(K=this.S)!=null&&(g.k4(K.element,"ytp-fullerscreen-edu-button-subtle",z),z&&!K.Y&&(K.element.setAttribute("title","Cu\u1ed9n \u0111\u1ec3 bi\u1ebft th\u00eam chi ti\u1ebft"),Qp(K.Fc,K.element,K),K.Y=!0))}; H1.prototype.updateFullerscreenEduButtonVisibility=function(z){var K;(K=this.S)!=null&&(K.S=z,K.Dq())};g.h(je8,g.F);g.h(xfS,zD);g.h(Qt,zD);Qt.prototype.getSphericalProperties=function(){var z=g.gq(this.api.pI());return z?z.getSphericalProperties():{}}; Qt.prototype.setSphericalProperties=function(z){if(z){var K=g.gq(this.api.pI());K&&K.setSphericalProperties(z,!0)}};g.h(q$,zD);g.k=q$.prototype;g.k.createClientVe=function(z,K,f,M){this.api.createClientVe(z,K,f,M===void 0?!1:M)}; g.k.createServerVe=function(z,K,f){this.api.createServerVe(z,K,f===void 0?!1:f)}; g.k.setTrackingParams=function(z,K){this.api.setTrackingParams(z,K)}; g.k.logClick=function(z,K){this.api.logClick(z,K)}; g.k.logVisibility=function(z,K,f){this.api.logVisibility(z,K,f)}; g.k.hasVe=function(z){return this.api.hasVe(z)}; g.k.destroyVe=function(z){this.api.destroyVe(z)};var OgS=!1;l4.prototype.setPlaybackRate=function(z){this.playbackRate=Math.max(1,z)}; l4.prototype.getPlaybackRate=function(){return this.playbackRate};gK.prototype.gr=function(z){var K=g.Nh(z.info.S.info,this.KH.CI),f=z.info.Ia+this.J,M=z.info.startTime*1E3;if(this.policy.b_)try{M=this.policy.b_?g.en(z)*1E3:z.info.startTime*1E3}catch(B){Math.random()>.99&&this.logger&&(M=VN(z.Y).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:z.info.H8(),encodedDataView:g.NW(M,4)})),M=z.info.startTime*1E3}var p=z.info.clipId,t=this.policy.b_?g.ChT(z)*1E3:z.info.duration*1E3;this.policy.b_&&(M<0||t<0)&&(this.logger&&(this.logger({missingSegInfo:z.info.H8(), startTimeMs:M,durationMs:t}),this.policy.S1||(M<0&&(M=z.info.startTime*1E3),t<0&&(t=z.info.duration*1E3))),this.policy.S1&&(M<0&&(M=z.info.startTime*1E3),t<0&&(t=z.info.duration*1E3)));return{formatId:K,Ia:f,startTimeMs:M,clipId:p,z$:t}}; gK.prototype.nG=function(z){this.timestampOffset=z};i4.prototype.seek=function(z,K){z!==this.S&&(this.seekCount=0);this.S=z;var f=this.videoTrack.Y,M=this.audioTrack.Y,p=this.audioTrack.P1,t=GFv(this,this.videoTrack,z,this.videoTrack.P1,K);K=GFv(this,this.audioTrack,this.policy.SU?z:t,p,K);z=Math.max(z,t,K);this.C=!0;this.KH.isManifestless&&(tAv(this,this.videoTrack,f),tAv(this,this.audioTrack,M));return z}; i4.prototype.isSeeking=function(){return this.C}; i4.prototype.tY=function(z){this.T=z}; var IJq=2/24;var wNS=0;g.k=rK.prototype;g.k.HH=function(){this.N=this.now();Bia(this.hB,this.N);this.jE.HH()}; g.k.YQ=function(z,K){var f=this.policy.Y?(0,g.X)():0;ZS(this,z,K);z-this.W<10&&this.Y>0||this.TB(z,K);this.jE.YQ(z,K);this.policy.Y&&(z=(0,g.X)()-f,this.W1+=z,this.oa=Math.max(z,this.oa))}; g.k.TB=function(z,K){var f=(z-this.W)/1E3,M=K-this.T;this.M8||(PZ(this.hB,f,M),this.mN(f,M));this.W=z;this.T=K}; g.k.Ad=function(){this.Hx&&DoS(this);this.jE.Ad()}; g.k.SD=function(z){this.Hx||(this.Hx=this.C-this.Ft+z,this.O3=this.C,this.ra=this.G)}; g.k.cH=function(z,K){z=z===void 0?this.G:z;K=K===void 0?this.C:K;this.Y>0||(this.D=z,this.Y=K,this.Y1=this.isActive=!0)}; g.k.o7=function(){return this.ma||2}; g.k.J8=function(){}; g.k.pD=function(){var z,K={rn:this.requestNumber,rt:(this.G-this.S).toFixed(),lb:this.C,stall:(1E3*this.J).toFixed(),ht:(this.N-this.S).toFixed(),elt:(this.D-this.S).toFixed(),elb:this.Y,d:(z=this.eV)==null?void 0:z.yv()};this.url&&FG8(K,this.url);this.policy.Y&&(K.mph=this.oa.toFixed(),K.tph=this.W1.toFixed());K.ulb=this.Bx;K.ult=this.l_;return K}; g.k.now=function(){return(0,g.X)()}; g.k.deactivate=function(){this.isActive&&(this.isActive=!1)};g.h(CE,rK);g.k=CE.prototype;g.k.pD=function(){var z=rK.prototype.pD.call(this);z.pb=this.d5;z.pt=(1E3*this.SE).toFixed();z.se=this.Z2;return z}; g.k.sD=function(){var z=this.jE;this.b_||(this.b_=z.sD?z.sD():1);return this.b_}; g.k.Ty=function(){return this.GD?this.sD()!==1:!1}; g.k.MR=function(z,K,f){if(!this.LI){this.LI=!0;if(!this.M8){ZS(this,z,K);this.TB(z,K);var M=this.sD();this.Z2=f;if(!this.M8)if(M===2){M=z-this.D0)||TD(this,M,K),this.Y>0&&LO(this.hB,K,this.J));z=(z-this.S)/ 1E3||.01;this.policy.D&&!(this.Y>0)||uI(this.hB,z,this.T,kFu(this),this.jm)}this.deactivate()}}; g.k.nK=function(z,K,f){f&&(this.b_=2);z<0&&this.ma&&(z=this.ma);K?this.QE+=z:this.Xc+=z}; g.k.o7=function(){return this.Xc||this.QE||rK.prototype.o7.call(this)}; g.k.TB=function(z,K){var f=(z-this.W)/1E3,M=K-this.T,p=this.sD();this.isActive?p===1&&((M>0||this.policy.C)&&(f>.2||M<1024)?(this.J+=f,M>0&&f>.2&&TD(this,this.PC?f:.05,M),this.TP=!0):M>0&&(TD(this,f,M),this.TP=!0)):K&&K>=this.policy.S&&this.cH(z,K);rK.prototype.TB.call(this,z,K)}; g.k.uE=function(z){if(!this.M8){ZS(this,z,this.C);var K=(z-this.S)/1E3;this.sD()!==2&&this.Y>0&&(this.J+=(z-this.W)/1E3,LO(this.hB,this.T,this.J));uI(this.hB,K,this.T,kFu(this),this.jm,!0);z=(z-this.W)/1E3;PZ(this.hB,z,0);this.mN(z,0)}}; g.k.cH=function(z,K){z=z===void 0?this.G:z;K=K===void 0?this.C:K;if(!(this.Y>0)&&(rK.prototype.cH.call(this,z,K),this.sD()===1)){K=(this.N-this.S)/1E3;var f=(z-this.N)/1E3;this.GD&&U7(this,this.now());this.nI||this.M8||(this.ma&&(f=Math.max(0,f-this.ma)),z=this.hB,z.D.uj(1,K),z.eV.uj(1,f))}}; g.k.ip=function(){this.GD&&U7(this,this.now());return this.Px}; g.k.Kq=function(){var z;if(z=this.T>this.uX)z=(z=this.T)?z>=this.policy.S:!1;return z}; g.k.J4=function(){return this.VE}; g.k.pC=function(z){z=z===void 0?this.now():z;if(this.GD){U7(this,z);if(this.b_?this.Ty():this.nH!==this.vx){var K=this.vx;if(z0?f+z:f+Math.max(z,K)}; g.k.L0=function(){return this.now()-this.D}; g.k.Y2=function(){return(this.T-this.Y)*1E3/this.L0()||0}; g.k.XV=function(){return this.D};ze.prototype.feed=function(z){HY(this.S,z);this.x8()}; ze.prototype.x8=function(){if(this.J){if(!this.S.totalLength)return;var z=this.S.split(this.T-this.Y),K=z.BJ;z=z.Ve;if(!this.jE.SD(this.J,K,this.Y,this.T))return;this.Y+=K.totalLength;this.S=z;this.Y===this.T&&(this.J=this.T=this.Y=void 0)}for(;;){var f=0;z=g.a(SeT(this.S,f));K=z.next().value;f=z.next().value;f=g.a(SeT(this.S,f));z=f.next().value;f=f.next().value;if(K<0||z<0)break;if(!(f+z<=this.S.totalLength)){if(!(this.jE.SD&&f+1<=this.S.totalLength))break;f=this.S.split(f).Ve;this.jE.SD(K,f,0, z)&&(this.J=K,this.Y=f.totalLength,this.T=z,this.S=new PY([]));break}z=this.S.split(f).Ve.split(z);f=z.Ve;this.jE.Le(K,z.BJ);this.S=f}}; ze.prototype.dispose=function(){this.S=new PY};g.k=K0.prototype;g.k.OE=function(){return 0}; g.k.wB=function(){return null}; g.k.hg=function(){return null}; g.k.Oc=function(){return this.state>=1}; g.k.isComplete=function(){return this.state>=3}; g.k.vC=function(){return this.state===5}; g.k.onStateChange=function(){}; g.k.Xr=function(z){var K=this.state;this.state=z;this.onStateChange(K);this.callback&&this.callback(this,K)}; g.k.uc=function(z){z&&this.state=this.xhr.HEADERS_RECEIVED}; g.k.getResponseHeader=function(z){try{return this.xhr.getResponseHeader(z)}catch(K){return""}}; g.k.GJ=function(){return+this.getResponseHeader("content-length")}; g.k.HE=function(){return this.Y}; g.k.Dg=function(){return this.status>=200&&this.status<300&&!!this.Y}; g.k.g7=function(){return this.S.totalLength>0}; g.k.ag=function(){var z=this.S;this.S=new PY;return z}; g.k.Wu=function(){return this.S}; g.k.abort=function(){this.CH=!0;this.xhr.abort()}; g.k.O9=function(){return!0}; g.k.gb=function(){return this.T}; g.k.qV=function(){return""};g.k=PHI.prototype;g.k.getResponseHeader=function(z){return z==="content-type"?this.S.get("type"):""}; g.k.abort=function(){}; g.k.PD=function(){return!0}; g.k.GJ=function(){return this.range.length}; g.k.HE=function(){return this.loaded}; g.k.Dg=function(){return!!this.loaded}; g.k.g7=function(){return!!this.Y.totalLength}; g.k.ag=function(){var z=this.Y;this.Y=new PY;return z}; g.k.Wu=function(){return this.Y}; g.k.O9=function(){return!0}; g.k.gb=function(){return!!this.error}; g.k.qV=function(){return this.error};g.k=QRp.prototype;g.k.start=function(z){var K={credentials:"include",cache:"no-store"};Object.assign(K,this.G);this.J&&(K.signal=this.J.signal);z=new Request(z,K);fetch(z).then(this.N,this.onError).then(void 0,wg)}; g.k.onDone=function(){this.CH()||this.jE.Ad()}; g.k.getResponseHeader=function(z){return this.responseHeaders?this.responseHeaders.get(z):null}; g.k.PD=function(){return!!this.responseHeaders}; g.k.HE=function(){return this.Y}; g.k.GJ=function(){return+this.getResponseHeader("content-length")}; g.k.Dg=function(){return this.status>=200&&this.status<300&&!!this.Y}; g.k.g7=function(){return!!this.S.totalLength}; g.k.ag=function(){var z=this.S;this.S=new PY;return z}; g.k.Wu=function(){return this.S}; g.k.CH=function(){return this.C}; g.k.abort=function(){this.T&&this.T.cancel().catch(function(){}); this.J&&this.J.abort();this.C=!0}; g.k.O9=function(){return!0}; g.k.gb=function(){return this.W}; g.k.qV=function(){return this.errorMessage};g.k=qe8.prototype;g.k.onDone=function(){if(!this.CH){this.status=this.xhr.status;try{this.response=this.xhr.response,this.Y=this.response.byteLength}catch(z){}this.S=!0;this.jE.Ad()}}; g.k.Q5=function(){this.xhr.readyState===2&&this.jE.HH()}; g.k.Xo=function(z){this.CH||(this.status=this.xhr.status,this.S||(this.Y=z.loaded),this.jE.YQ((0,g.X)(),z.loaded))}; g.k.PD=function(){return this.xhr.readyState>=2}; g.k.getResponseHeader=function(z){try{return this.xhr.getResponseHeader(z)}catch(K){return g.Al(Error("Could not read XHR header "+z)),""}}; g.k.GJ=function(){return+this.getResponseHeader("content-length")}; g.k.HE=function(){return this.Y}; g.k.Dg=function(){return this.status>=200&&this.status<300&&this.S&&!!this.Y}; g.k.g7=function(){return this.S&&!!this.response&&!!this.response.byteLength}; g.k.ag=function(){var z=this.response;this.response=void 0;return new PY([new Uint8Array(z)])}; g.k.Wu=function(){return new PY([new Uint8Array(this.response)])}; g.k.abort=function(){this.CH=!0;this.xhr.abort()}; g.k.O9=function(){return!1}; g.k.gb=function(){return!1}; g.k.qV=function(){return""};g.h(ML,g.J);ML.prototype.Op=function(){if(!this.Vn.length)return[];var z=this.Vn;this.Vn=[];this.T=g.eS(z).info;return z}; ML.prototype.HR=function(){return this.Vn}; ML.prototype.JL=function(){g.J.prototype.JL.call(this);this.S=null;this.Vn.length=0;this.tL.length=0;this.T=null};g.h(tp,g.J);g.k=tp.prototype; g.k.IfV=function(){if(!this.CH()){var z=(0,g.X)(),K=!1;if(this.policy.tU){z=z-(this.timing.Y>0?this.timing.D:this.timing.S)-this.timing.o7()*1E3;var f=q6(BB(this),!1);z>=2E3*f?K=!0:z>=this.policy.wu*f&&(this.S=this.policy.L7)}else if(this.timing.Y>0){if(this.C){this.policy.Ft&&(this.S=0);return}var M=this.timing.J4();this.timing.pC();var p=this.timing.J4();p-M>=this.policy.PA*.8?(this.S++,this.logger.debug(function(){return"Mispredicted by "+(p-M).toFixed(0)}),K=this.S>=5):this.S=0}else{var t=z-this.timing.ip(); this.policy.L7&&t>0&&(this.S+=1);K=q6(BB(this),!1)*this.policy.xW;(K=t>K*1E3)&&this.logger.debug(function(){return"Elbow late by "+t.toFixed(3)})}this.S>0&&this.jE.Cu(); K?this.k$():this.Y.start()}}; g.k.k$=function(){this.J=!0;this.jE.fR();this.lastError="net.timeout";vB(this)}; g.k.canRetry=function(z){var K=BB(this);z=z?this.policy.lA:this.policy.q8;return K.timedOut0&&(K=nI(K.S,0),z.ubyte=K,f===1&&K===0&&(z.b248180278=!0))}this.Pm&&(z.rc=this.policy.aH?this.Pm:this.Pm.toString());this.policy.E0&&this.Pi&&(z.tr=this.Pi);z.itag=this.info.tL[0].S.info.itag;z.ml=""+ +this.info.tL[0].S.x9();z.sq=""+this.info.tL[0].Ia;this.zE&&(z.ifi=""+ +dp(this.info.eE.Y));this.Pm!==410&&this.Pm!==500&&this.Pm!==503||(z.fmt_unav="true");var M;(f=this.errorMessage||((M=this.xhr)==null?void 0: M.qV()))&&(z.msg=f);this.hq&&(z.smb="1");this.info.isDecorated()&&(z.sdai="1");return z}; g.k.pn=function(){return hI8(this.timing)}; g.k.qV=function(){return this.xhr.qV()||""}; g.k.Kq=function(){return this.isComplete()||this.timing.Kq()}; g.k.YQ=function(){!this.CH()&&this.xhr&&(this.Pm=this.xhr.status,this.policy.YX&&this.nz&&this.h0(!1),this.PE()?this.uc(2):!this.nF&&this.Kq()&&(this.uc(),this.nF=!0))}; g.k.HH=function(){if(!this.CH()&&this.xhr){if(!this.aA&&this.xhr.PD()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var z=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.aA=((0,g.X)()-z)/1E3}this.xhr.PD()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.t4&&!CYd()&&g.sT("yt-player-headers-readable",!0,2592E3);z=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var K=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),f;(f=this.SX)==null||f.stop();this.Ye=z||this.Ye; this.Um=K||this.Um}}; g.k.Ad=function(){var z=this.xhr;if(!this.CH()&&z){this.Pm=z.status;z=this.Ku(z);if(this.policy.E0){var K;(K=this.SX)==null||K.stop()}z===5?vB(this.IF):this.Xr(z);this.IF.Y.stop()}}; g.k.Ku=function(z){var K=this;NPS(this);if(IS(this.IF,this.xhr.status,this.JV?this.timing.Y1||this.sF:this.xhr.Dg(),!1,this.Fs))return 5;var f="";Ge(this.IF,this.xhr)&&(f=JHa(this.IF,this.xhr));if(f)return QM(BB(this.IF)),this.info.hU(this.zE,f),3;f=z.HE();if(this.LJ){this.h0(!0);NPS(this);if(IS(this.IF,this.xhr.status,this.timing.Y1||this.sF,!1,this.Fs))return 5;if(!this.rQ){if(this.sF)return QM(BB(this.IF)),3;this.IF.lastError="net.closed";return 5}}else{if(IS(this.IF,this.xhr.status,this.xhr.Dg(), !1,this.Fs))return 5;var M=this.info.T;if(M&&M!==f||z.gb())return this.IF.lastError="net.closed",5;this.h0(!0)}M=uGo(this)?z.getResponseHeader("X-Bandwidth-Est"):0;if(z=uGo(this)?z.getResponseHeader("X-Bandwidth-Est3"):0)this.Xh=!0,this.policy.I0&&(M=z);n6g(this.IF,f,M?Number(M):0,this.info.tL[0].type===5);this.logger.debug(function(){var p=K.timing;return"Succeeded, rtpd="+(p.SE*1E3+p.S-Date.now()).toFixed(0)}); return 4}; g.k.canRetry=function(){this.CH();var z=this.info.isDecorated();return this.IF.canRetry(z)}; g.k.onStateChange=function(){this.isComplete()&&(this.policy.du?this.fR():this.timing.deactivate())}; g.k.k$=function(){this.IF.k$()}; g.k.Cu=function(){this.callback&&this.callback(this,this.state)}; g.k.GY=function(){return this.IF.GY()}; g.k.dispose=function(){K0.prototype.dispose.call(this);this.IF.dispose();var z;(z=this.SX)==null||z.dispose();this.policy.du||this.fR()}; g.k.fR=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.k.Op=function(){if(!this.HR().length)return[];this.i$=!0;return this.nz.Op()}; g.k.PE=function(){if(this.state<1)return!1;if(this.nz&&this.nz.Vn.length)return!0;var z;return((z=this.xhr)==null?0:z.g7())?!0:!1}; g.k.HR=function(){this.h0(!1);return this.nz?this.nz.HR():[]}; g.k.h0=function(z){try{if(z||this.xhr.PD()&&this.xhr.g7()&&!Ge(this.IF,this.xhr)&&!this.N7)this.nz||(this.nz=new ML(this.policy,this.info.tL)),this.xhr.g7()&&(this.LJ?this.LJ.feed(this.xhr.ag()):p0(this.nz,this.xhr.ag(),z&&!this.xhr.g7()))}catch(K){this.LJ?peq(this,K):g.Al(K)}}; g.k.Le=function(z,K){switch(z){case 21:z=K.split(1).Ve;tKp(this,z);break;case 22:this.rQ=!0;p0(this.nz,new PY([]),!0);break;case 43:if(z=rz(new jh(K),1))this.info.hU(this.zE,z),this.sF=!0;break;case 45:K=bH(new jh(K));z=K.ib;K=K.FJ;z&&K&&(this.yl=z/K);break;case 44:this.Cf=UI5(new jh(K));var f,M,p;!this.timing.Y1&&((f=this.Cf)==null?void 0:f.action)===4&&((M=this.Cf)==null?0:(p=M.CZ)==null?0:p.JV)&&(this.JV=this.Cf.CZ.JV);break;case 53:this.policy.E0&&(z=oRW(new jh(K)).e4)&&(this.SX||(this.e4=z,this.SX= new g.Kl(this.Iu,z,this)),this.SX.start());break;case 60:this.ey=GF(new jh(K));break;case 58:if(z=QIS(new jh(K)))this.Z7=z,z.Z7===3&&(this.Fs=!0)}}; g.k.SD=function(z,K,f,M){f||this.timing.SD(M);if(z!==21)return!1;if(z=this.policy.YX)if(z*=this.info.tL[0].S.info.yE,K.totalLength+f!==M&&K.totalLength0)return!1;if(!this.xhr.PD())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.LJ)var z=!this.info.T;else this.xhr.GJ()?z=!1:(z=this.xhr.getResponseHeader("content-type"),z=z==="audio/mp4"||z==="video/mp4"||z==="video/webm");if(!z)return!1;if(isNaN(this.info.Er)){z=this.xhr.getResponseHeader("x-head-seqnum");var K=this.timing.policy.G?1:0;if(!z)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(z)>this.info.tL[0].Ia+K)return!1}return!0}; g.k.EC=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.k.wB=function(){this.xhr&&(this.Ye=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.Ye}; g.k.hg=function(){this.xhr&&(this.Um=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Um}; g.k.Ko=function(){return this.IF.Ko()}; g.k.Iu=function(){if(!this.CH()&&this.xhr){this.Pi="heartbeat";var z=this.IF;z.S+=2;this.Cu()}};g.h(RS,rK);g.k=RS.prototype;g.k.TB=function(z,K){var f=(z-this.W)/1E3,M=K-this.T;this.Y>0?M>0&&(this.nH&&(f>.2||M<1024?(this.J+=f,f>.2&&vbd(this,.05,M)):vbd(this,f,M)),this.vx&&(this.Px+=M,this.Xc+=f)):K>this.policy.S&&this.cH(z,K);rK.prototype.TB.call(this,z,K)}; g.k.MR=function(z,K){ZS(this,z,K);this.TB(z,K);this.nH&&(K=this.T*this.snapshot.stall+this.T/this.snapshot.byterate,this.Y>0&&LO(this.hB,this.Px,this.J),z=(z-this.S)/1E3||.01,this.policy.D&&!(this.Y>0)||uI(this.hB,z,this.T,K,!1))}; g.k.uE=function(z){ZS(this,z,this.C);var K=(z-this.W)/1E3;PZ(this.hB,K,0);this.mN(K,0);!this.nH&&this.Y>0||(K=this.T*this.snapshot.stall+this.T/this.snapshot.byterate,this.Y>0&&(this.J+=(z-this.W)/1E3,LO(this.hB,this.Px,this.J)),uI(this.hB,((z-this.S)/1E3||.01)*this.policy.Y1,this.T,K,!1,!0))}; g.k.nU=function(z){z=z.cS||2147483647;(z&2)!==2&&(this.vx=!1);(z&1)===1&&(this.nH=!0)}; g.k.o_=function(z){z=z.cS||2147483647;(z&2)===2&&(this.vx=!1);(z&1)===1&&(this.nH=!1)}; g.k.XV=function(){return this.D}; g.k.L0=function(){var z=this.vx?this.now()-this.W:0;return Math.max(this.Xc*1E3+z,1)}; g.k.Y2=function(){return this.Px*1E3/this.L0()}; g.k.cH=function(z,K){z=z===void 0?this.G:z;K=K===void 0?this.C:K;this.Y>0||(rK.prototype.cH.call(this,z,K),K=this.hB,z=(z-this.N)/1E3,K.D.uj(1,(this.N-this.S)/1E3),K.eV.uj(1,z))}; g.k.J8=function(z){this.QE=z}; g.k.pD=function(){var z=rK.prototype.pD.call(this);z.rbw=this.Y2();z.rbe=+this.vx;z.gbe=+this.nH;z.ackt=(this.QE-this.S).toFixed();return z}; g.k.pC=function(){}; g.k.J4=function(){return NaN}; g.k.ip=function(){return this.S+this.snapshot.delay*1E3};SW.prototype.Le=function(z,K){switch(z){case 20:z=new jh(K);z={OP:xH(z,1),videoId:rz(z,2),itag:xH(z,3),lmt:xH(z,4),xtags:rz(z,5),Bs:xH(z,6),bB:Ft(z,8),z2:xH(z,9),LJd:xH(z,10),startMs:xH(z,11),durationMs:xH(z,12),hA:xH(z,14),timeRange:Zl(z,15,vRu),u9:xH(z,16),gA:xH(z,17),clipId:rz(z,1E3)};this.dg(z);break;case 21:this.pm(K,!1);break;case 22:this.c9(K);break;case 31:z=Tv(K,jII);this.E9(z);break;case 52:z=Tv(K,CSI);this.V5(z);break;default:this.oS(z,K)}}; SW.prototype.dg=function(){}; SW.prototype.oS=function(){};g.h(uW,SW);g.k=uW.prototype; g.k.oS=function(z,K){switch(z){case 35:this.UM(K);break;case 44:this.qy(K);break;case 43:this.IZ(K);break;case 53:this.Wk(K);break;case 55:z=new jh(K);Zl(z,1,KEg);Zl(z,2,Mau);break;case 56:this.Y6();break;case 57:this.Wd(K);break;case 42:this.lX(K);break;case 45:this.W9(K);break;case 59:this.TZ(K);break;case 51:this.Ey(K);break;case 49:this.nU(K);break;case 50:this.o_(K);break;case 47:this.JR(K);break;case 58:this.d6(K);break;case 61:this.jE.aF.J8((0,g.X)());break;case 66:this.AA(K);break;case 46:this.SC(K); break;case 67:this.onSnackbarMessage(K)}}; g.k.Ey=function(z){z=new jh(z);z={kK_:CI(z,1,vN),MDE:CI(z,2,vN)};this.jE.Ey(z)}; g.k.TZ=function(z){var K=new jh(z);z=oU(K,1);var f=oU(K,2);K=oU(K,3);this.jE.TZ(z,f,K)}; g.k.W9=function(z){z=bH(new jh(z));this.jE.W9(z)}; g.k.JR=function(z){z=Tv(z,xI5);this.jE.JR(z)}; g.k.lX=function(z){z=new jh(z);z={videoId:rz(z,1),formatId:Zl(z,2,vN),endTimeMs:xH(z,3),Tuq:xH(z,4),mimeType:rz(z,5),PZ:Zl(z,6,gRo),indexRange:Zl(z,7,gRo),iK:Zl(z,8,i6g)};this.jE.lX(z)}; g.k.Wd=function(z){z=Mau(new jh(z));this.jE.Wd(z)}; g.k.Y6=function(){this.jE.Y6()}; g.k.UM=function(z){z=Y4v(new jh(z));this.jE.UM(z)}; g.k.Wk=function(z){z=oRW(new jh(z));this.jE.Wk(z)}; g.k.qy=function(z){z=UI5(new jh(z));this.jE.qy(z)}; g.k.IZ=function(z){z={redirectUrl:rz(new jh(z),1)};this.jE.IZ(z)}; g.k.pm=function(z){var K=nI(z,0);if(z.totalLength!==1){z=z.split(1).Ve;var f=this.Y[K]||null;f&&mz(this.jE.yn,K,f,z)}}; g.k.c9=function(z){z=nI(z,0);var K=this.Y[z]||null;K&&this.jE.c9(z,K)}; g.k.V5=function(z){this.jE.V5(z)}; g.k.dg=function(z){var K=z.OP,f=z.bB,M=z.Bs,p=z.gA,t=z.u9,B=z.z2,v=z.startMs,I=z.durationMs,G=z.timeRange,b=z.hA,e=z.clipId,w=gP(z);z=n0_.has(T5[""+z.itag]);this.Y[K]=w;this.jE.nK(w,z,{OP:K,bB:!!f,Bs:M!=null?M:-1,z2:B!=null?B:-1,startMs:v!=null?v:-1,durationMs:I!=null?I:-1,hA:b,gA:p,u9:t,clipId:e,timeRange:G})}; g.k.nU=function(z){z={cS:xH(new jh(z),1)};this.jE.nU(z)}; g.k.o_=function(z){z={cS:xH(new jh(z),1)};this.jE.o_(z)}; g.k.E9=function(z){this.jE.E9(z)}; g.k.d6=function(z){z=QIS(new jh(z));this.jE.d6(z)}; g.k.AA=function(z){z={lz:Zl(new jh(z),1,rAo)};this.jE.AA(z)}; g.k.onSnackbarMessage=function(z){z=xH(new jh(z),1);this.jE.onSnackbarMessage(z)}; g.k.SC=function(z){z=new jh(z);z={reloadPlaybackParams:Zl(z,1,H6W),z1:Ft(z,2)};this.jE.SC(z)};g.h(L0,g.J);g.k=L0.prototype;g.k.jQ=function(){return Array.from(this.iP.keys())}; g.k.Bn=function(z){z=this.iP.get(z);var K=z.Vn;z.LR+=K.totalLength;z.Vn=new PY;return K}; g.k.rI=function(z){return this.iP.get(z).rI}; g.k.vr=function(z){return this.iP.get(z).vr}; g.k.nK=function(z,K,f,M){this.iP.get(z)||weq(this,z,K);K=this.iP.get(z);if(this.KH){z=yLT(this,z,f);if(M)for(var p=g.a(z),t=p.next();!t.done;t=p.next()){t=t.value;var B=M;t.l_=B;t.startTime+=B;t.J+=B;t.W+=B}D68(this,f.OP,K,z)}else f.bB?K.G6=f.hA:K.Zw.push(f),K.DY.push(f)}; g.k.R3=function(z){var K;return((K=this.iP.get(z))==null?void 0:K.tL)||[]}; g.k.uc=function(){for(var z=g.a(this.iP.values()),K=z.next();!K.done;K=z.next())K=K.value,K.aZ&&(K.Xo&&K.Xo(),K.aZ=!1)}; g.k.c9=function(z,K){this.logger.debug(function(){return"[onMediaEnd] formatId: "+K}); var f=this.iP.get(K);if(EK){if(f&&!f.rI){if(f.vW.get(z))f.vW.get(z).GS=!0;else{var M;((M=this.Bh)==null?0:M.O3)&&f.vW.set(z,{data:new PY,Nf:0,GS:!0})}f.vr=!0}}else f&&!f.vr&&(f.vr=!0)}; g.k.Op=function(z){if(EK){var K=this.iP.get(z);if(K)for(var f=g.a(K.vW),M=f.next();!M.done;M=f.next()){var p=g.a(M.value);M=p.next().value;p=p.next().value;var t=K.jI.get(M);if(Yb(t[0])){if(!p.GS)continue;var B=p.data,v=0,I=[];t=g.a(t);for(var G=t.next();!G.done;G=t.next()){G=G.value;var b=G.T,e=QN(B,v,b);v+=b;I.push(new I6(G,e))}K.yU.push.apply(K.yU,g.P(I))}else if(p.data.totalLength>0||!t[0].range&&p.GS)B=void 0,v=t[0],I=p.Nf,t=p.data,v.range||(B=p.GS),B=new I6(Erd(v,v.Y+I,t.totalLength,B),t),p.Nf+= B.info.T,K.yU.push(B);K.vW.get(M).data=new PY;p.GS&&K.vW.delete(M)}z=this.iP.get(z);if(!z)return[];K=z.yU;z.yU=[];f=g.a(K);for(M=f.next();!M.done;M=f.next())z.LR+=M.value.info.T;return K||[]}f=(K=this.iP.get(z))==null?void 0:K.nz;if(!f)return[];this.h0(z,f);return f.Op()}; g.k.PE=function(z){if(EK)return qL(this,z);var K,f,M;return!!((f=(K=this.iP.get(z))==null?void 0:K.nz)==null?0:(M=f.HR())==null?0:M.length)||qL(this,z)}; g.k.h0=function(z,K){for(;qL(this,z);){var f=this.Bn(z);var M=z;M=this.iP.get(M).rI&&!Qv(this,M);p0(K,f,M&&etS(this,z))}}; g.k.JL=function(){g.J.prototype.JL.call(this);for(var z=g.a(this.iP.keys()),K=z.next();!K.done;K=z.next())PB(this,K.value);var f;if((f=this.Bh)==null?0:f.w2)for(z=g.a(this.iP.values()),K=z.next();!K.done;K=z.next())K=K.value,K.vW.clear(),K.jI.clear(),K.yU.length=0,K.tL.length=0,K.DY.length=0,K.Zw.length=0;this.iP.clear()}; var EK=!1;g.h(lW,g.J);g.k=lW.prototype;g.k.YQ=function(){!this.CH()&&this.xhr&&(this.h0(!1),xe(this.jE,this))}; g.k.HH=function(){}; g.k.Ad=function(){if(!this.CH()&&this.xhr){var z=this.Ku();z===5?vB(this.IF):this.Xr(z);this.IF.Y.stop();var K;(K=this.Oy)==null||K.stop()}}; g.k.Ku=function(){var z="";Ge(this.IF,this.xhr)&&(z=JHa(this.IF,this.xhr));if(z)return this.info.eE.hU(this.zE,z),3;this.h0(!0);if(IS(this.IF,this.xhr.status,this.xhr.Dg(),this.info.O_(),this.Fs))return 5;if(this.BK)return 3;n6g(this.IF,this.xhr.HE(),0,this.O_());this.policy.Z2&&DE8(this.jE);return 4}; g.k.h0=function(z){var K=this.xhr;if((z||!Ge(this.IF,this.xhr))&&K.g7()){z=K.ag();var f=z.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+f}); this.LJ.feed(z)}}; g.k.Le=function(z,K){this.xhr.O9()&&z===21&&Sda(this);this.Gk.Le(z,K)}; g.k.SD=function(z,K,f,M){f||(this.aF.SD(M),this.policy.a9&&z===21&&Sda(this));if(z!==21)return!1;this.aF.Y1=!0;z=K.totalLength;f||(this.Aj=nI(K,0),K=K.split(1).Ve);var p=this.policy.BP,t=this.Gk.Y[this.Aj],B=this.KH.T.get(t);if(p&&B&&(p*=B.info.yE,z+f!==M&&z0){this.policy.tU&&this.IF.Y.stop();z=this.aF.L0();K=this.aF.Y2();var f=ukg(this,z);if(!(K>f.Ud||f.fg>0&&this.info.kZ()>f.fg)){this.ju=(0,g.X)();var M;(M=this.Oy)==null||M.stop();this.policy.Z2&&(M=this.jE,z={ZW:Math.round(K*z/1E3),TQ:z},M.policy.Z2&&(M.eV=z,M.i4++));this.k$()}}}}; g.k.k$=function(){this.IF.k$()}; g.k.qy=function(z){this.jE.qy(z,this.Dz())}; g.k.IZ=function(z){this.BK=!0;this.info.eE.hU(this.zE,z.redirectUrl)}; g.k.nU=function(z){this.aF instanceof RS&&this.aF.nU(z)}; g.k.o_=function(z){this.aF instanceof RS&&this.aF.o_(z)}; g.k.lX=function(z){var K=z.formatId,f=gP({itag:K.itag,lmt:K.lmt,xtags:K.xtags}),M,p,t=new dP(((M=z.PZ)==null?void 0:M.first)||0,((p=z.PZ)==null?void 0:p.MK)||0),B,v;M=new dP(((B=z.indexRange)==null?void 0:B.first)||0,((v=z.indexRange)==null?void 0:v.MK)||0);this.KH.T.get(f)||(f=z.iK||{},f.mimeType=z.mimeType,f.itag=K.itag,f.lastModified=""+(K.lmt||0),f.xtags=K.xtags,z=this.KH,K=lj(""),f=qp(f,null),uj(z,new a6(K,f,t,M)))}; g.k.W9=function(z){this.jE.W9(z)}; g.k.onSnackbarMessage=function(z){if(this.policy.Uu)this.jE.onSnackbarMessage(z)}; g.k.E9=function(z){this.YK=z;this.lN=(0,g.X)();this.jE.E9(z)}; g.k.TZ=function(z,K,f){this.jE.TZ(z,K,f)}; g.k.Wd=function(z){z.scope===2&&(this.KC=z);this.jE.Wd(z)}; g.k.Y6=function(){this.D1=!0;this.jE.Y6()}; g.k.Ey=function(z){this.policy.zc&&this.jE.Ey(z)}; g.k.JR=function(z){this.jE.JR(z,this.Dz())}; g.k.d6=function(z){z.Z7===3&&(this.Fs=!0);this.jE.d6(z)}; g.k.AA=function(z){this.jE.AA(z)}; g.k.SC=function(z){this.jE.SC(z)}; g.k.canRetry=function(){this.CH();return this.IF.canRetry(!1)}; g.k.dispose=function(){if(!this.CH()){g.J.prototype.dispose.call(this);this.IF.dispose();var z;(z=this.Oy)==null||z.dispose();this.Xr(-1);this.fR()}}; g.k.Xr=function(z){this.state=z;xe(this.jE,this)}; g.k.O_=function(){return this.info.O_()}; g.k.IT=function(){return this.D1}; g.k.qG=function(){return this.KC}; g.k.nK=function(z,K,f){f.clipId&&(this.clipId=f.clipId);this.policy.Y&&!K&&(this.fJ=f.z2);this.yn.nK(z,K,f,0);if(this.policy.Rf&&this.YK&&this.aF instanceof CE){var M=this.YK.yg;this.aF.nK(f.durationMs/1E3,K,M>0&&f.z2+1>=M)}this.yn.iP.get(z).IQ=!0}; g.k.c9=function(z,K){this.yn.c9(z,K)}; g.k.V5=function(z){this.requestIdentifier=z}; g.k.Op=function(z){return this.yn.Op(z)}; g.k.R3=function(z){return this.yn.R3(z)}; g.k.PE=function(z){return this.yn.PE(z)}; g.k.jQ=function(){return this.yn.jQ()}; g.k.sD=function(){return 1}; g.k.Dz=function(){return this.aF.requestNumber}; g.k.l$=function(){return this.requestIdentifier}; g.k.Ic=function(){return this.zE.Ic()}; g.k.bH=function(){this.fR()}; g.k.fR=function(){this.aF.deactivate();var z;(z=this.xhr)==null||z.abort()}; g.k.isComplete=function(){return this.state>=3}; g.k.Qb=function(){return this.state===3}; g.k.vC=function(){return this.state===5}; g.k.Vb=function(){return this.state===4}; g.k.jp=function(){return this.isComplete()}; g.k.Oc=function(){return this.state>=1}; g.k.GY=function(){return this.policy.Ft?this.IF.GY():0}; g.k.Cu=function(){this.policy.Ft&&xe(this.jE,this)}; g.k.Db=function(){return YiI(this.info)}; g.k.Ko=function(){return this.IF.Ko()}; g.k.rU=function(){var z=g6q(this.IF);Object.assign(z,xwS(this.info));z.req="sabr";z.rn=this.Dz();var K;if((K=this.xhr)==null?0:K.status)z.rc=this.policy.aH?this.xhr.status:this.xhr.status.toString();var f;(K=(f=this.xhr)==null?void 0:f.qV())&&(z.msg=K);this.ju&&(f=ukg(this,this.ju-this.aF.XV()),z.letm=f.Qd,z.mrbps=f.Ud,z.mram=f.fg);return z};LA5.prototype.tick=function(z,K){this.ticks[z]=K?window.performance.timing.navigationStart+K:(0,g.X)()};g.h(n0,g.Dv);g.k=n0.prototype; g.k.Np=function(z,K,f,M){if(this.policy.Pg&&this.policy.Y){var p=z.A$||null;p?(cL8(this,z.Ia,d_(this,z.startTime,z.Ia),{A$:p,Ia:z.Ia,KO:!!K,Zf:f},this.T),M&&this.T&&this.T.pK(z.Ia,z.startTime,this.Y,(K==null?void 0:K.S)||[],(K==null?void 0:K.T)||[],(K==null?void 0:K.Y)||[],f,(K==null?void 0:K.Zu)||0,(K==null?void 0:K.J)||void 0)):this.Y===1&&Jp(this,5,"noad")}else{var t=!1;this.policy.Y&&(t=f?this.Hx===z.Ia:this.nH===z.Ia);if(this.T&&M&&!t){M=[];t=[];var B=[],v=void 0,I=0;K&&(M=K.S,t=K.T,B=K.Y,v= K.J,I=K.Zu,this.Th("sdai",{sq:z.Ia,ssvicpns:M.join("."),ssvid:t.join(".")}));this.policy.Y&&(f?this.Hx=z.Ia:this.nH=z.Ia);this.T.pK(z.Ia,z.startTime,this.Y,M,t,B,f,I,v)}this.policy.Y?f&&(this.Y===1&&Jp(this,5,"noad"),z.Ia!==((p=this.S)==null?void 0:p.Ia)&&(gbq(this,z,K,f),isNaN(z.startTime)||iN8(this,z.Ia,d_(this,z.startTime,z.Ia),!!K,this.T))):f&&gbq(this,z,K)}}; g.k.jw=function(z,K,f){var M=this.videoTrack.S.index.Mv()<=K;this.S={A$:z,Ia:K,KO:f};M&&WB(this,z,K)}; g.k.jz=function(){this.T&&this.T.jz()}; g.k.Th=function(z,K,f){(z!=="sdai"||this.policy.nN||(f===void 0?0:f))&&this.loader.Th(z,K)}; g.k.fY=function(z,K){var f=this.videoTrack.S.index.NZ(z);if(f>=0){var M;var p=((M=K.Z3.X3(f,2))==null?void 0:M.N_)||"";if(this.policy.Y||p)return K.DL(z,f),g_(this.loader,z,z,f),this.Th("sdai",{cmskpad:1,t:z.toFixed(3),sq:f}),!0}this.Th("sdai",{cmskpad:0,t:z.toFixed(3),sq:f});return!1};sK.prototype.CE=function(z,K,f){z=z||this.Y;if(this.S.has(z)){if(z=this.S.get(z))z.BT=K,z.Ql.push(f)}else K={BT:K,Ql:[],startTimeSecs:0,mP:0},K.Ql.push(f),this.S.set(z,K)}; sK.prototype.zq=function(z,K){var f=this.Y;if(z!==void 0)for(var M=g.a(this.S),p=M.next();!p.done;p=M.next()){var t=g.a(p.value);p=t.next().value;t=t.next().value;var B=void 0,v=void 0,I=void 0;if(((B=t)==null?void 0:B.startTimeSecs)<=z&&z<=((v=t)==null?void 0:v.startTimeSecs)+((I=t)==null?void 0:I.mP)){f=p;break}}if(f&&(z=this.S.get(f)))return f={Bf:z.Ql,nV:eo(z.BT||"")||void 0,cuepointId:f},K&&(f.rq=S8(K.split(";")[0]),f.wq=K.split(";")[1]||""),f};g.h(YC,g.J);YC.prototype.UD=function(z,K,f){f=f===void 0?{}:f;this.policy.zN=X7(z,f,this.J,K===void 0?!1:K)};r_.prototype.rA=function(z){var K=this;if(this.policy.HU){var f=new Set(z);f.size===this.eV.size&&[].concat(g.P(f)).every(function(M){return K.eV.has(M)})||(this.loader.Th("lwnmow",{itagDenylist:[].concat(g.P(z)).join(",")}),this.loader.Mm(!!f.size),this.N=-1,this.eV=f,Z$(this,this.S),this.Px=!0)}}; r_.prototype.UD=function(z,K,f){f=f===void 0?{}:f;var M=this.policy.zN;this.C.UD(z,K===void 0?!1:K,f);if(M!==this.policy.zN){Z$(this,this.S);oS(this);var p,t;M>this.policy.zN&&((p=this.T)==null?0:fZ(p.info))&&((t=this.nextVideo)==null||!fZ(t.info))&&(this.Y1=!0)}};zV.prototype.nG=function(z){this.timestampOffset=z;this.flush()}; zV.prototype.flush=function(){if(this.S.pos>0){var z={a:this.track.ev(),u:this.S.yv(),pd:Math.round(this.J),ad:Math.round(this.T)},K=this.Y;if(K){var f=K.S.info;z.itag=f.itag;f.S&&(z.xtags=f.S);z.sq=K.Ia;z.st=K.startTime;z.sd=K.duration;this.track.policy.jK&&(z.si=K.H8());K.C&&(z.esl=K.Y+K.T);K.cW()&&(z.eos=1)}isNaN(this.timestampOffset)||(z.to=this.timestampOffset);var M;if(K=(M=this.track.P1)==null?void 0:M.S3({})){for(var p in K)this.W[p]!==K[p]&&(z["sb_"+p]=K[p]);this.W=K}this.track.Th("sbu", z);this.S.reset();this.buffered=[];this.C=this.T=this.J=0;this.timestampOffset=this.Y=void 0}};$Y.prototype.dispose=function(){this.l_=!0}; $Y.prototype.CH=function(){return this.l_}; g.h(N4,Error);GV.prototype.skip=function(z){this.offset+=z}; GV.prototype.e1=function(){return this.offset};g.k=Hxa.prototype;g.k.Kn=function(){return this.Y}; g.k.YR=function(){return this.Y.length?this.Y[this.Y.length-1]:null}; g.k.W7=function(){this.Y=[];yB(this);wG(this)}; g.k.Bn=function(z){this.Xc=this.Y.shift().info;z.info.equals(this.Xc)}; g.k.R3=function(){return g.UZ(this.Y,function(z){return z.info})}; g.k.ev=function(){return!!this.C.info.audio}; g.k.isDrm=function(){return!!this.C.info.UW}; g.k.getDuration=function(){return this.C.index.xa()};g.h(dK,K0);g.k=dK.prototype;g.k.onStateChange=function(){this.CH()&&(HB(this.yn,this.formatId),this.S.dispose())}; g.k.rU=function(){var z=bNq(this.yn,this.formatId),K;var f=((K=this.yn.iP.get(this.formatId))==null?void 0:K.bytesReceived)||0;var M;K=((M=this.yn.iP.get(this.formatId))==null?void 0:M.LR)||0;return{expected:z,received:f,bytesShifted:K,sliceLength:Qv(this.yn,this.formatId),isAnyMediaEndReceived:this.yn.vr(this.formatId)}}; g.k.pn=function(){return 0}; g.k.Kq=function(){return!0}; g.k.Op=function(){return this.yn.Op(this.formatId)}; g.k.HR=function(){return[]}; g.k.PE=function(){return this.yn.PE(this.formatId)}; g.k.Ko=function(){return this.lastError}; g.k.GY=function(){return 0};g.h(RM,g.J);g.k=RM.prototype;g.k.ev=function(){return!!this.S.info.audio}; g.k.YR=function(){return this.J.YR()}; g.k.Bn=function(z){this.J.Bn(z);var K;(K=this.D)!=null&&(K.C.add(z.info.Ia),K.S=zI8(K,K.z5,K.BE,z,K.S),K.T=z,K.W=(0,g.X)());this.yE=Math.max(this.yE,z.info.S.info.yE||0)}; g.k.getDuration=function(){return this.S.index.xa()}; g.k.W7=function(){s7(this);this.J.W7()}; g.k.NO=function(){return this.J}; g.k.isRequestPending=function(z){return this.T.length?z===this.T[this.T.length-1].info.tL[0].Ia:!1}; g.k.nG=function(z){var K;(K=this.D)==null||K.nG(z);var f;(f=this.N)==null||f.nG(z)}; g.k.Th=function(z,K){this.loader.Th(z,K)}; g.k.j_=function(){return this.loader.j_()}; g.k.dispose=function(){var z;(z=this.N)==null||z.flush();g.J.prototype.dispose.call(this)};g.h(YY,g.J);YY.prototype.T=function(){this.Y++>15||(this.S=!this.S,new Dwq(this.loader,this.policy,this.hB,this.eE,this.S),this.delay.start())}; g.k=Dwq.prototype;g.k.HH=function(){}; g.k.YQ=function(){}; g.k.Ad=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.HE()===this.size)this.loader.Th("rqs",this.getInfo());else{var z="net.connect";this.xhr.status>200?z="net.badstatus":this.xhr.PD()&&(z="net.closed");this.onError(z)}}; g.k.onError=function(z){var K=this;this.loader.handleError(z,this.getInfo());mI("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(f){K.loader.Th("pathprobe",f)},function(f){K.loader.handleError(f.errorCode,f.details)})}; g.k.getInfo=function(){var z=this.timing.pD();z.shost=gp(this.location.gS);z.pb=this.size;return z};g.h(XF,g.J); XF.prototype.G=function(z,K){if(z.G){this.KH.isLive?(z=this.KH.dh&&this.KH.J?z.S.M0(this.KH.dh,!1):z.S.WD(Infinity),z.Er=this.Er):z=z.S.M0(0,!1);if(this.Y1){var f=this.Y1;z.Er===0&&(z.C=f.D)}else z.C=this.N;return z}f=z.Y;if(!f.S.x9())return f.S.mz()?(z=nE(this.C,z.S.info.yE,K.S.info.yE,0),z=f.S.KR(f,z)):z=f.S.Ll(f),z;var M=f.W-this.loader.getCurrentTime(),p=!f.range||f.T===0&&f.Y===0?0:f.range.length-(f.Y+f.T),t=f.S;this.Yw(z,M)&&p===0&&(this.KH.isManifestless?t=z.S:(t=f.startTime+Ioo,f.T&&(t+=f.duration), YM(z,t),f=z.Y,t=f.S));t.mz()?(p=this.T,K=nE(this.C,t.info.yE,K.S.info.yE,M,p.J.length>0&&p.D===0&&this.loader.Q_),M=gG(z),z=f.S.KR(f,K),(K=z.T)&&z.tL.length>1&&(M||z.eE.T||z.tL[0].S!==f.S?z=f.S.KR(f,z.tL[0].T):(M=z.tL[z.tL.length-1],t=M.T/K,!M.C&&t<.4&&(z=f.S.KR(f,K-M.T))))):(f.Ia<0&&(K=Od(f),K.pr=""+z.T.length,this.loader.isSeeking()&&(K.sk="1"),K.snss=f.D,this.loader.Th("nosq",K)),z=t.Ll(f));if(this.policy.Hx)for(f=g.a(z.tL),K=f.next();!K.done;K=f.next())K.value.type=6;return z}; XF.prototype.Yw=function(z,K){if(!gG(z)||!z.S.x9())return!1;var f=this.T.Px||zMS(z)||K<=this.policy.HP||this.T.Y1;this.logger.debug(function(){return"ready to adapt: "+f+", upgrade pending: "+zMS(z)+", health: "+K}); return f}; XF.prototype.JL=function(){g.J.prototype.JL.call(this)}; var Ioo=2/24;g.h(oM,g.J);oM.prototype.Lc=function(z,K,f){var M;var p=((M=this.Y)==null?void 0:M.reason)==="m"?"m":this.Y&&nvS(this,this.Y)?this.Y.reason:"a";this.loader.Lc(new jW(z,p,f));rG(this.loader,K,z,!0)}; oM.prototype.KZ=function(z,K){for(var f=g.a(this.Hx),M=f.next();!M.done;M=f.next())if(M.value.id===z)return this.C=this.KH.S[z],yv(this.Bh)&&(this.Y1=!0),z=new jW(this.C,K?"t":"m"),K&&(this.G=!0),z;this.T=[];return null}; oM.prototype.UD=function(z,K,f){f=f===void 0?{}:f;this.S.UD(z,K===void 0?!1:K,f)};TV.prototype.setData=function(z,K,f){var M=this;f=f===void 0?{}:f;if(K==null?0:K.TP)this.Tu=Rtg(this,K,f),z.OO=this.eE.OO();if(this.O_())return!0;this.data=z;this.S=Awq(z,function(p,t){var B;(B=M.jE)==null||B.Nc(p,t)},K==null?void 0:K.T); if(!this.S)return!1;this.Y=g.tM(this.S,VN5);return!0}; TV.prototype.O_=function(){return this.requestType===1}; TV.prototype.kZ=function(){var z;return((z=this.jE)==null?void 0:z.kZ())||0}; TV.prototype.isDecorated=function(){var z;return!((z=this.data)==null||!z.X_)};OOW.prototype.un=function(z,K){K=K===void 0?1:K;this.dK+=K;this.Y+=z;z/=K;for(var f=0;f0)M+="."+Uy[p].toFixed(0)+"_"+f.S[p].toFixed(0);else break;f=M}f&&(z[K]=f)}this.S=new rwv;return z}; g.k.toString=function(){return""};g.k=zNo.prototype;g.k.isActive=function(){return!1}; g.k.NA=function(){}; g.k.Td=function(){}; g.k.Bw=function(){}; g.k.Yu=function(z,K){K()}; g.k.Ts=function(){return{}}; g.k.toString=function(){return""};var U0o=new zNo,zY2=!!+KJ("html5_enable_profiler"),Kdf=!!+KJ("html5_onesie_enable_profiler"),kA=zY2||Kdf?new ovW:U0o,Qmp=zY2?kA:U0o,Qu=Kdf?kA:U0o;z2.prototype.encrypt=function(z){this.S.exports.AES128CTRCipher_encrypt(this.cipher,z.byteOffset,z.byteLength);return z}; z2.prototype.CH=function(){return this.cipher===0}; z2.prototype.dispose=function(){this.S.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};Ko.prototype.encrypt=function(z,K){return h3(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:K},this.key,z).catch(function(f){return Promise.reject(f.name+": "+f.message)}).then(function(f){return new Uint8Array(f)}))}; Ko.prototype.CH=function(){return this.S}; Ko.prototype.dispose=function(){this.S=!0}; $e.prototype.encrypt=function(z,K){return h3(this.Y(z,K))}; $e.prototype.Y=function(z,K){qA(this.T,K);return this.T.encrypt(z)}; $e.prototype.CH=function(){return this.S}; $e.prototype.dispose=function(){this.S=!0}; fo.prototype.encrypt=function(z,K){return h3(this.Y(z,K))}; fo.prototype.Y=function(z,K){K=this.T.w9(K);var f=this.S;f.S.exports.AES128CTRCipher_setCounter(f.cipher,K.byteOffset);this.T.free(K.byteOffset);K=this.T.w9(z);this.S.encrypt(K!=null?K:z);return K?this.T.Iv(K):z}; fo.prototype.CH=function(){return this.S.CH()}; fo.prototype.dispose=function(){this.S.dispose()}; Qu.NA(Ko,{encrypt:Kro("oan2")});Qu.NA($e,{encrypt:Kro("oap")});Qu.NA(fo,{encrypt:Kro("oalw")});M7.prototype.encrypt=function(z,K){var f=this,M=ae("");z.length<=this.wW&&this.S&&!this.C&&(M=Lg(M,function(){return f.S?f.S.encrypt(z,K):ae("wasm unavailable")})); z.length<=this.H2&&(this.S&&this.C&&(M=Lg(M,function(){return f.S?f.S.encrypt(z,K):ae("wasm unavailable")})),M=Lg(M,function(){return M1o(f,z,K)})); return Lg(Lg(M,function(){return pGT(f,z,K)}),function(){return M1o(f,z,K)})}; M7.prototype.Y=function(z,K){if(this.S)return this.S.Y(z,K);this.T||(this.T=new $e(this.key));return this.T.Y(z,K)}; M7.prototype.CH=function(){return this.W}; M7.prototype.dispose=function(){this.W=!0;var z;(z=this.J)==null||uV(z,g.DO);g.DO(this.S);g.DO(this.T)};po.prototype.encrypt=function(z){(0,g.X)();return(new g.W_(this.S.S)).encrypt(z,this.iv)}; po.prototype.decrypt=function(z,K){(0,g.X)();return(new g.W_(this.S.S)).decrypt(z,K)}; po.prototype.CH=function(){return this.T}; po.prototype.dispose=function(){this.T=!0;g.DO(this.Y)};g.h(tr,g.J);tr.prototype.T=function(z,K){if(K){K=K instanceof g.WN?K:B0(this,K);var f;((f=this.S.get(z))==null?void 0:gp(f.location))!==gp(K)&&this.S.set(z,new DR5(K,z))}else this.S.delete(z)}; tr.prototype.load=function(){var z=this,K,f,M,p,t,B,v,I,G,b;return g.n(function(e){switch(e.Y){case 1:K=z.S.get(0);g.Sq(e,2);var w;if(w=K&&!z.Y)w=gp(K.location),w=z.Y===NL(w);if(w){e.jV(4);break}return g.l(e,eNW(z,z.Y?2:0),5);case 5:if(f=e.S)z.T(0,f),dp(f)&&z.T(1,cN(f));case 4:g.Eu(e,3);break;case 2:M=g.QI(e);g.Al(M);if(!z.Y){e.jV(3);break}z.Y=!1;return g.l(e,z.load(),7);case 7:return e.return();case 3:if(!z.SV.experiments.sf("html5_onesie_probe_ec_hosts")){e.jV(0);break}g.Sq(e,9);p=z;t=p.T;B=3;return g.l(e, eNW(z,1),11);case 11:return t.call(p,B,e.S),v=z,I=v.T,G=4,g.l(e,eNW(z,2),12);case 12:I.call(v,G,e.S);g.Eu(e,0);break;case 9:b=g.QI(e),g.Al(b),g.Rv(e)}})}; tr.prototype.G=function(){var z=this,K,f;return g.n(function(M){g.$4(z.D);K=g.uY(z.SV.experiments,"html5_onesie_prewarm_max_lact_ms");if(nv()>=K)return M.return();(f=z.S.get(0))&&baS(z,f);g.Rv(M)})}; var IYd={A0E:0,Pya:1,nqd:2,Kza:3,oxc:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};yXp.prototype.decrypt=function(z){var K=this,f,M,p,t,B,v;return g.n(function(I){switch(I.Y){case 1:if(ktq(K))return I.return();K.Y=!0;K.rS.bP("omd_s");f=new Uint8Array(16);V7()?M=new g.nf(z):p=new g.W_(z);case 2:if(!K.S.length||!K.S[0].isEncrypted){I.jV(4);break}t=K.S.shift();if(!M){B=p.decrypt(lf(t.buffer),f);I.jV(5);break}return g.l(I,M.decrypt(lf(t.buffer),f),6);case 6:B=I.S;case 5:v=B;hNW(f);var G=K.rS,b=t.videoId,e=t.OP,w=t.formatId,D=new PY([v]),y;(y=v0(G.T5,b))==null||mz(y,e,w,D);I.jV(2);break; case 4:K.rS.bP("omd_c"),IF(K),K.Y=!1,K.rS.Rv(),g.Rv(I)}})}; yXp.prototype.enqueue=function(z,K,f,M,p){this.S.push({videoId:z,OP:K,formatId:f,buffer:M,isEncrypted:p});this.Y||IF(this)};var mRa=!!Uint8Array.prototype.copyWithin,G2=[],RNo=[],LrT=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],eF=[],bT=[],wX=[],SN8=[];yi.prototype.II=function(z){return g.qN5(new g.uqW(z))}; yi.prototype.CF=function(z){function K(B){if(!B.done)return t.append(B.value),p.read().then(function(v){return K(v)})} if(!("DecompressionStream"in window))return ae("native decompression unavailable");var f=new DecompressionStream("gzip"),M=f.writable.getWriter();M.write(z).then(function(){return M.close()}); var p=f.readable.getReader(),t=new PY([]);return Lg(uV(uV(h3(p.read()),K),function(){return lf(t)}),function(B){return ae(B.message)})}; yi.prototype.BZ=function(z,K){var f=void 0,M=K.w9(z);M&&(f=M.byteOffset,z=M);M=K.exports.getInflatedSize(z.byteOffset,z.length);if(M===0)return ae("bad compressed input");var p=K.malloc(M);if(K.exports.inflateGzip(z.byteOffset,z.length,p))return K.free(p),ae("inflateGzip failed");f&&K.free(f);return h3(new Uint8Array(K.exports.memory.buffer,p,M))}; Qu.NA(yi,{II:function(z){return{profile:"gzjb",dK:Math.ceil(z.byteLength/16)}}, CF:function(z){return{profile:"gznb",dK:Math.ceil(z.byteLength/16)}}, BZ:function(z){return{profile:"gzwb",dK:Math.ceil(z.byteLength/16)}}});g.h(ntS,SW);g.k=ntS.prototype;g.k.Rv=function(){this.T5.Rv()}; g.k.oS=function(z,K){switch(z){case 10:var f=Tv(K,sIp);z=f.ZaE;var M=!1;switch(z){case 0:this.T=!f.rV.iG;this.iv=f.rV.iv;break;case 2:break;case 23:var p=this.T5;f=f.HHh;p.bP("omp_r");f.videoId&&(p.eX=f.videoId);p.eX!==p.videoData.videoId&&(p.videoData.fP=p.eX,p.Th("ompp","vid."+p.eX));p.Kg=!0;break;case 24:f=this.T5;f.bP("omp_c");f.Kg=!1;f.k6=!1;var t=(p=f.E1)==null?void 0:p.get(f.eX);f.notifySubscribers(f.eX);t!=null&&(t.S=!0);aF(f);break;default:M=!0}this.T5.cE&&this.T5.Th("ombup","id.10;pt."+ z+";len."+K.totalLength+(M?";ignored.1":""));this.J=z;break;case 11:iaa(this,K);break;case 12:this.pm(K,!0);break;case 37:K=Tv(K,AAS);(K.HB||K.Ro)&&K.videoId&&this.T5.Ei.set(K.videoId,K);break;case 60:this.EX(K);break;case 47:this.B("html5_server_playback_start_policy")&&(K=Tv(K,xI5),this.T5.playbackStartPolicy=K);break;case 35:this.UM(K);break;case 45:this.W9(K);break;case 66:this.AA(K);break;default:this.T5.cE&&this.T5.Th("ombup","id."+z+";len."+K.totalLength+";ignored.1")}}; g.k.E9=function(z){this.T5.E9(z)}; g.k.EX=function(z){z=Tv(z,GF);this.T5.EX(z)}; g.k.W9=function(z){z=Tv(z,bH);this.T5.W9(z)}; g.k.dg=function(z){var K=z.OP,f=z.bB,M=z.Bs,p=z.u9,t=z.z2,B=z.startMs,v=z.durationMs,I=z.timeRange,G=z.hA,b=gP(z),e=n0_.has(T5[""+z.itag]);f&&this.bP(e?"oais_r":"ovis_r");var w=this.S[b]!==void 0;this.T5.cE&&this.T5.Th("ombup","id.20;hid."+K+";fid."+b);var D=z.videoId||"";this.Y[K]=b;this.C[K]=D;w||(this.S[b]={videoId:D,qK:!1,ev:e,headers:[]});this.S[b].headers.push(z);this.T5.nK(D,b,e,{OP:K,bB:!!f,Bs:M!=null?M:-1,z2:t!=null?t:-1,startMs:B!=null?B:-1,durationMs:v!=null?v:-1,hA:G!=null?G:0,u9:p,timeRange:I})}; g.k.pm=function(z,K){var f=nI(z,0);this.T5.cE&&this.T5.Th("ombup","id."+(K?12:21)+";len."+z.totalLength+";hid."+f);if(z.totalLength!==1){z=z.split(1).Ve;var M=this.Y[f]||null,p=this.C[f]||"";M&&(this.o5(this.S[M].ev?"oafs_r":"ovfs_r"),this.queue.enqueue(p,f,M,z,K))}}; g.k.c9=function(z){var K=nI(z,0);this.T5.cE&&this.T5.Th("ombup","id.22;len."+z.totalLength+";hid."+K);z=this.Y[K]||null;var f=this.C[K]||"";if(z)if(this.B("html5_use_ump_request_slicer")){var M=this.queue;M.S.push({videoId:f,OP:K,formatId:z,isEncrypted:!1,s7:!0});M.Y||IF(M)}else this.T5.c9(f,K,z)}; g.k.V5=function(z){this.T5.V5(z)}; g.k.y6=function(z,K){var f=this,M,p,t,B,v,I,G,b,e,w;return g.n(function(D){switch(D.Y){case 1:f.T5.y6();M=lf(z);if(!K){t=M;D.jV(2);break}return g.l(D,otW(f.T5,M,f.iv),3);case 3:t=D.S;case 2:p=t;if(!f.T5.enableCompression){D.jV(4);break}v=(B=performance)==null?void 0:B.now();return g.l(D,lYg(p),5);case 5:p=D.S,f.T5.Th("decompression",{ds:"DecompressionStream"in window,rt:((I=performance)==null?NaN:I.now())-v});case 4:try{G=Tv(p,PSS)}catch(y){return b=y instanceof Error?{name:y.name,message:y.message}: {},b.webcrypto=""+ +!!V7(),b.enc=""+ +f.T,e=new Jq("onesie.response.parse",b),D.return(Promise.reject(e))}dRI(G);w=g.dz(G.body);return D.return(w)}})}; g.k.UM=function(z){this.B("html5_consume_onesie_next_request_policy_for_sabr")&&(z=Tv(z,Y4v),this.T5.UM(z))}; g.k.AA=function(z){z={lz:Zl(new jh(z),1,rAo)};this.T5.AA(z)}; g.k.bP=function(z){this.T5.bP(z)}; g.k.o5=function(z){return this.T5.o5(z)}; g.k.B=function(z){return this.T5.B(z)};g.h(hr,g.J);g.k=hr.prototype;g.k.jQ=function(z){var K,f;return((f=(K=this.E1)==null?void 0:K.get(z))==null?void 0:f.jQ())||[]}; g.k.PE=function(z,K){var f;return!((f=v0(this,K))==null||!f.PE(z))}; g.k.Op=function(z,K){var f;return((f=v0(this,K))==null?void 0:f.Op(z))||[]}; g.k.R3=function(z,K){var f;return((f=v0(this,K))==null?void 0:f.R3(z))||[]}; g.k.Xr=function(z){this.state=z;this.notifySubscribers()}; g.k.O_=function(){return!1}; g.k.IT=function(){return!1}; g.k.qG=function(){}; g.k.bP=function(z){this.AL.bP(z)}; g.k.o5=function(z){return this.AL.o5(z)}; g.k.SD=function(z,K,f,M){f||this.aF.SD(M);return!1}; g.k.Le=function(z,K){this.rS.Le(z,K)}; g.k.Az=function(){this.bP("orfb");this.QQ=!0;if(C15(this)&&this.xhr){var z={rc:this.xhr.status,lb:this.xhr.HE(),rt:(1E3*hI8(this.aF)).toFixed(),shost:g.EW(this.Xf),trigger:"o1"};this.Th("pathprobe",Wf(z))}}; g.k.y6=function(){this.bP("opr_r");this.z6=!0}; g.k.nK=function(z,K,f,M){if(this.E1){if(!this.E1.has(z)){var p=new L0(this);this.E1.set(z,p);g.d(this,p)}var t;(t=this.E1.get(z))==null||t.nK(K,f,M);aF(this);f||(this.fJ=M.z2)}else aF(this)}; g.k.E9=function(z){this.qd=z;z.oJ!=null&&this.AL.f9(z.oJ)}; g.k.EX=function(z){this.ey=z}; g.k.UM=function(z){z.videoId&&this.Q0.set(z.videoId,z)}; g.k.Rv=function(){if(this.E1)for(var z=g.a(this.E1.keys()),K=z.next();!K.done;K=z.next()){var f=void 0;(f=this.E1.get(K.value))==null||f.uc()}}; g.k.W9=function(z){this.uN=z}; g.k.AA=function(z){if(z==null?0:z.lz)if(z=z.lz.Jg){z=g.a(z);for(var K=z.next();!K.done;K=z.next())K=K.value,K.videoId&&this.KL.set(K.videoId,K)}}; g.k.Th=function(z,K,f){this.AL.Th(z,K,f===void 0?!1:f)}; g.k.c9=function(z,K,f){var M;(M=v0(this,z))==null||M.c9(K,f)}; g.k.V5=function(z){this.HK.set(z.videoId,z)}; g.k.fetch=function(){var z=this,K,f,M,p,t,B,v,I,G,b,e,w,D,y,R,S,E,L,q,V,c;return g.n(function(O){switch(O.Y){case 1:z.logger.debug("Onesie fetch started.");z.Z$?z.iQ.start():z.pU.start();z.bP("or_i");K=z.SV.experiments.sf("html5_onesie_verbose_timing");f={};M=(0,g.X)();p=function(x){K&&(f[x]=(0,g.X)()-M)}; p("loc_s");if(t=AX8(z.videoData,z.QT)){O.jV(2);break}p("loc_async");B=g.uY(z.SV.experiments,"html5_onesie_redirector_timeout_ms");return g.l(O,jBd(z.videoData,z.QT,B),3);case 3:t=O.S;case 2:if(!t)return z.logger.info("Onesie URL creation failed."),v={url:"0"},I=new Jq("onesie.unavailable.hotconfig",v),z.Qa(I),O.return(z.OM);z.Tu=gp(t);p("loc_e");G=g.IB(z.SV,g.X6(z.videoData));b=!!G.S;if(!b){e=G.getValue();O.jV(4);break}return g.l(O,G.S,5);case 5:e=O.S;case 4:w=e;z.B("html5_log_onesie_empty_oauth")&& !w&&z.Th("no_token",{async:b});p("oauth");D=XGq(z.playerRequest,z.SV,z.videoData,w,NL(z.Tu));g.Sq(O,6);if(!Zaa(z,D)){p("or_s_sync");z.zL=Frp(D,z.w1,z.SV,z.AL,z.oT.onesieUstreamerConfig,(y=z.videoData.Ff)==null?void 0:y.vg);O.jV(8);break}p("or_s_async");return g.l(O,rXv(D,z.w1,z.SV,z.AL,z.oT.onesieUstreamerConfig,(R=z.videoData.Ff)==null?void 0:R.vg),9);case 9:z.zL=O.S;case 8:g.Eu(O,7);break;case 6:return S=g.QI(O),z.logger.info("Failed to create OnesieRequestProto."),z.Qa(S),O.return(z.OM);case 7:return p("or_e"), K&&z.Th("oreqvt",f),z.enableCompression=z.zL.Lu.pL,z.bP("osor"),E=G0I(),L=g.tM(z.zL,ptS),q={method:"POST",body:L,headers:{"Content-Type":"text/plain",Referer:location.origin}},V=z.B("html5_onesie_media_capabilities"),YN5(t,z.videoData,UR5(z),V),z.logger.debug("Starting Onesie network request."),z.cE&&z.Th("ombrs","1"),c=z.AL.Z().schedule,z.aF=new CE(z,{hB:c,K0:z.cE,mN:function(x,T){z.AL.FO(x,T)}, jm:!0}),t.set("rn",""+z.aF.requestNumber),z.Xf=t.Ic(),o0(z.aF,z.Xf),z.bP("or_p"),z.xhr=f0(new Pe(t),E,z.aF,BZ,q),z.XC.start(),O.return(z.OM)}})}; g.k.sD=function(){return 2}; g.k.HH=function(){this.bP("orh_r")}; g.k.YQ=function(){!this.QQ&&this.xhr.HE()&&this.Az();if(this.oy&&!this.Z$){var z;(z=this.E$)==null||z.start()}this.h0()}; g.k.Ad=function(z){z=z===void 0?!1:z;this.logger.debug("onXhrDone");this.h0();if(!(this.CH()||this.state>=4)){var K=ke(this),f=this.xhr;K.rc=f.status;z&&(K.ab=!0);if(f.qV()){var M="onesie.net";K.msg=f.qV()}else f.status>=400?M="onesie.net.badstatus":f.Dg()?this.z6||(M="onesie.response.noplayerresponse"):M=f.status===204?"onesie.net.nocontent":"onesie.net.connect";M?this.Qa(new Jq(M,K)):(this.bP("or_fs"),this.aF.MR((0,g.X)(),f.HE(),0),this.Xr(4),this.cE&&this.Th("rqs",K));this.cE&&this.Th("ombre", "ok."+ +!M);this.k6=!1;aF(this);Wrg(this.rS);if(!this.Z$){this.pU.stop();var p;(p=this.E$)==null||p.stop()}var t;if(z=(t=this.QT)==null?void 0:wGT(t))for(t=0;t1E3){var z;(z=this.aF)==null||z.uE((0,g.X)());z=ke(this);if(this.SV.i8()&&this.xhr instanceof $C){var K=this.xhr;z.xrs=K.xhr.readyState;z.xpb=K.S.totalLength;z.xdc=K.J}this.Qa(new Jq("net.timeout",z))}}else(0,g.X)()-this.aF.S>1E4&&((K=this.aF)==null||K.uE((0,g.X)()),this.Gq());this.isComplete()||this.iQ.start()}}; g.k.Gq=function(){this.logger.info("Onesie request timed out");this.k6=!1;if(!aF(this)){var z=ke(this);z.timeout="1";this.Qa(new Jq("onesie.request",z))}}; g.k.Qa=function(z){var K=this;z=iB(z);this.oy?this.AL.yW(z):(this.OM.reject(z),this.oy=!0);Wrg(this.rS);this.Z$||this.pU.stop();this.bP("or_fe");var f,M;(f=this.QT)==null||(M=wGT(f))==null||M.forEach(function(p){K.Th("pathprobe",p)}); this.Xr(5);this.dispose()}; g.k.isComplete=function(){return this.state>=3}; g.k.Vb=function(){return this.state===4}; g.k.jp=function(z){var K,f;return this.isComplete()||!!((K=this.E1)==null?0:(f=K.get(z))==null?0:f.S)}; g.k.Qb=function(){return!1}; g.k.vC=function(){return this.state===5}; g.k.notifySubscribers=function(z){for(var K=0;K102400&&!this.D0&&(this.bP("or100k"),this.D0=!0);if(z.g7()){var K=z.ag(),f=K.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+f}); this.cE&&this.Th("ombrss","len."+f);this.LJ.feed(K)}if(this.E1)for(var M=g.a(this.E1.keys()),p=M.next();!p.done;p=M.next()){var t=p.value;z=void 0;(z=this.E1.get(t))==null||z.uc();this.notifySubscribers(t)}}catch(B){this.Qa(B)}}; g.k.Dz=function(){return this.aF.requestNumber}; g.k.l$=function(z){return this.HK.get(z)};g.h(KUv,g.J);g.k=KUv.prototype;g.k.Hn=function(z,K){this.l_=void 0;DE8(this);wwS(this,z,K)}; g.k.Sx=function(z){if(this.S.length===0)return!1;var K=this.S[0];return K instanceof hr?z===this.loader.getCurrentTime()*1E3:!(K instanceof lW&&XZ8(K.info))&&Math.abs(K.Db()-z)<50}; g.k.UM=function(z){this.Y=z;this.l_=(0,g.X)()+(z.backoffTimeMs||0)}; g.k.qy=function(z,K){if(z.action===void 0){var f=this.AL.Ex();f!==void 0&&this.loader.RK(f)}else if(z.action!==0||!this.Xc)switch(z.action===0&&this.policy.Eu&&(z.action=2),f={},f.reason=z.Su,f.action=z.action,f.rn=K,z.action){case 1:this.policy.Y&&this.D&&this.D.EA(void 0,void 0,f);break;case 0:this.Xc=!0;this.videoData.Fr()&&this.policy.Y&&this.D&&this.D.EA(void 0,void 0,f,!1);this.loader.Jj(f);break;case 2:CbW(z.Su)!=="sabr.config"&&delete f.reason;this.loader.handleError(CbW(z.Su),f,1);break; case 3:this.policy.TP&&((z=this.KH.D)!=null&&(z.D=!0),this.loader.handleError("sabr.hostfallback",f))}}; g.k.Wd=function(z){z&&(this.loader.Th("sabrctxt",{onsbrctxt:z.type,scp:z.scope,dflt:z.sendByDefault}),z.type&&z.sendByDefault&&this.videoData.rE.add(z.type),z.scope!==2&&(z.type&&this.videoData.sabrContextUpdates.set(z.type,z),this.AL.Wd(z)))}; g.k.Y6=function(){}; g.k.W9=function(z){if(z.ib!==void 0&&z.FJ){var K=z.ib/z.FJ;this.audioTrack.G=!1;this.videoTrack.G=!1;if(this.policy.l_||this.policy.G8||this.policy.yw)this.loader.Vv.Y=!1;this.loader.zR(K,1);if(this.AL.getCurrentTime()!==K){var f={v8:"sabr_seek",VO:!0,Js:!0};z.seekSource&&(f.seekSource=z.seekSource);Fx(this.loader,K+.1,f)}}}; g.k.onSnackbarMessage=function(z){this.AL.publish("onSnackbarMessage",z)}; g.k.E9=function(z){z.yg&&z.Za&&dN(this.KH,z.yg,z.Za);this.policy.q_&&(z.Xe&&z.D8&&(this.KH.Bg=z.Xe/z.D8),z.cz&&z.UB&&(this.KH.RL=z.cz/z.UB));n5(this.videoData)&&!this.videoData.Y1&&z.Za&&this.loader.zR(z.Za,1E3);z.oJ!=null&&this.AL.f9(z.oJ);this.policy.VB&&z.oo&&(z=((0,g.X)()-z.oo)/1E3,this.loader.VP.uj(1,z))}; g.k.d6=function(z){this.loader.d6(z)}; g.k.Jt=function(z){return this.videoData.rE.has(z)}; g.k.TZ=function(z,K,f){this.policy.T&&this.loader.Th("sabrctxtplc",{start:z?z.join("_"):"",stop:K?K.join("_"):"",discard:f?f.join("_"):""});if(z){z=g.a(z);for(var M=z.next();!M.done;M=z.next())this.videoData.rE.add(M.value)}if(K)for(K=g.a(K),z=K.next();!z.done;z=K.next())z=z.value,this.videoData.rE.has(z)&&this.videoData.rE.delete(z);if(f)for(f=g.a(f),K=f.next();!K.done;K=f.next())if(K=K.value,this.videoData.sabrContextUpdates.has(K)&&(this.videoData.sabrContextUpdates.delete(K),K===3&&(this.videoData.UZ= "")),this.policy.N&&this.S.length)for(z=g.a(this.S),M=z.next();!M.done;M=z.next())if(M=M.value,!(M instanceof hr)){var p=void 0;((p=M.KC)==null?void 0:p.type)===K&&(M.KC=void 0)}}; g.k.Ey=function(){}; g.k.OR=function(z){this.G=z}; g.k.O4=function(z){this.W=z}; g.k.JR=function(z,K){jw(this.policy,z,4,K)}; g.k.AA=function(z){if(z==null?0:z.lz)if(z=z.lz.Jg){z=g.a(z);for(var K=z.next();!K.done;K=z.next())if(K=K.value,K.formatId){var f=this.KH.T.get(gP(K.formatId));f&&f.info&&(f.info.debugInfo=K.debugInfo)}}}; g.k.SC=function(z){this.videoData.Z().B("html5_server_controlled_resume_time_refactor")?this.AL.publish("reloadplayer",z):(z=z==null?void 0:z.reloadPlaybackParams)&&this.AL.publish("reloadplayer",z)}; g.k.u3=function(){return this.AL.u3()||""}; g.k.kZ=function(){var z=lU(this.audioTrack,!0)*1E3,K=lU(this.videoTrack,!0)*1E3;return Math.min(z,K)}; g.k.Nc=function(z,K){this.loader.Th(z,K)}; g.k.R$=function(z){dES(this.loader,zZI(this.b_,z))}; g.k.JL=function(){g.J.prototype.JL.call(this);this.Y=void 0;wwS(this,!0,"i");this.S=[]};hgS.prototype.x8=function(z,K){if(this.J)return LUa(this,K);if(K=O7(z)){var f=K.S;f&&f.T&&f.S&&(z=z.T.length?z.T[0]:null)&&z.state>=2&&!z.vC()&&z.info.Er===0&&(this.J=z,this.G=f,this.Y=K.info,this.W=this.startTimeSecs=Date.now()/1E3,this.C=this.Y.startTime)}return NaN}; hgS.prototype.clear=function(){this.Y=this.G=this.J=null;this.S=this.C=this.W=this.startTimeSecs=NaN;this.T=!1};g.h(g.rX,g.J);g.k=g.rX.prototype;g.k.initialize=function(z,K,f){this.logger.debug(function(){return"Initialized, t="+z}); z=z||0;this.policy.S||(K=$p8(this.S),AfS(this.AL,new jW(K.video,K.reason)),this.AL.hw(new jW(K.audio,K.reason)));this.policy.S&&Sig(this);this.KH.isManifestless&&qi8(this.C);this.G&&Rgq(this.G,this.videoTrack.S);K=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var M=!this.KH.isManifestless;this.policy.pk&&(M=M||this.KH.Ca);this.policy.eV||(this.currentTime=M?z:K);this.policy.l_&&this.seek(this.getCurrentTime(),{}).Qf(function(){}); if(this.policy.S){var p;((p=this.N)==null?0:zgS(p,this.u3()||""))&&qMp(this)&&Qpq(this,this.videoTrack)&&Qpq(this,this.audioTrack)&&(yfW(this.Y,this.N),this.policy.C&&H58(this))}else this.l_&&(mEu(this,this.videoTrack),mEu(this,this.audioTrack),Gk8(this.l_),delete this.l_);f?(Vuo(this,!1),g.$4(this.Wy)):(f=this.getCurrentTime()===0,Oy(this.C,this.videoTrack,this.videoTrack.S,f),Oy(this.C,this.audioTrack,this.audioTrack.S,f),this.policy.S&&Muv(this.Y,!0),this.policy.l_||this.seek(this.getCurrentTime(), {}).Qf(function(){}),this.timing.tick("gv")); (this.KH.dh||this.KH.Tm||this.KH.nH||this.KH.LI||this.KH.Z2)&&this.AL.KU(this.KH)}; g.k.resume=function(){if(this.isSuspended||this.Q_){this.logger.debug("Resumed.");this.C0=this.Q_=this.isSuspended=!1;try{this.x8()}catch(z){g.sm(z)}}}; g.k.Cq=function(){return!this.policy.QW}; g.k.JM=function(z,K){z=z===void 0?!1:z;K=K===void 0?!1:K;this.logger.debug("detaching media source");Jfo(this);this.AL.o1()&&(this.W=NaN);z?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.Bx&&this.Th("loader",{setsmb:1}),this.policy.Hx=!0,this.W7()):(Vuo(this,!1),K||this.W7())}; g.k.setAudioTrack=function(z,K,f){f=f===void 0?!1:f;if(!this.CH()){var M=!isNaN(K);f&&M&&(this.audioTrack.l_=Date.now(),this.policy.ES&&(this.VE=!0));if(this.policy.S){var p=this.J.KZ(z.id,M);this.logger.debug(function(){return"Logging new audio format: "+p.S.info.id}); this.AL.hw(p)}else{var t=U6v(this.S,z.id,M);this.logger.debug(function(){return"Logging new audio format: "+t.audio.info.id}); this.AL.hw(new jW(t.audio,t.reason))}if(M&&(f=this.audioTrack.S.index.NZ(K),this.Th("setAudio",{id:z.id,cmt:K,sq:f}),f>=0)){this.policy.S&&this.Hn(!0,"mosaic");VB(this.audioTrack,f,NaN,NaN);!this.policy.b3&&this.KH.isLive&&ij(this.KH,f,!1);return}this.AL.Jd()}}; g.k.setPlaybackRate=function(z){z!==this.D.getPlaybackRate()&&this.D.setPlaybackRate(z)}; g.k.gs=function(z){var K=this.Y.G;this.Y.OR(z);this.Th("scfidc",{curr:gP(K),"new":gP(z)});z&&gP(z)!==gP(K)&&(this.Hn(!0,"caption change"),this.x8())}; g.k.u7=function(z){this.Y.O4(z)}; g.k.Lc=function(z){var K=z.S.info.ev();this.logger.debug(function(){return"New "+(K?"audio":"video")+" format from SABR: "+el(z.S.info)}); K?this.AL.hw(z):AfS(this.AL,z)}; g.k.R$=function(z){Xk(z.tL[z.tL.length-1])&&dES(this,zZI(this.S,z.tL[0].S))}; g.k.XP=function(){return this.AL.XP()}; g.k.qn=function(){return this.AL.qn()}; g.k.d6=function(z){this.AL.Z().i8()&&this.Th("sps",{status:z.Z7||""});if(z.Z7===1)this.AL.videoData.xW=0;else if(z.Z7===2||z.Z7===3){var K=!1;if(z.Z7===3){K=this.AL.mC();var f;this.ra=(f=z.eTc)!=null?f:Infinity;this.AL.videoData.xW=K+1;(K=QQd(this))&&this.wf(!0)}this.AL.G9(!0,K)}}; g.k.K4=function(){return this.AL.K4()}; g.k.B7=function(){return this.AL.B7()}; g.k.iX=function(z){this.AL.iX(z)}; g.k.R6_=function(){var z,K=(z=this.AL.qL())==null?void 0:z.getCurrentTime();K?this.AL.Th("rms",{cta:K}):g.$4(this.Z2)}; g.k.x8=function(){i5g(this);if(this.u_&&Kw(this.u_)&&!this.u_.IH()&&(!this.policy.eV||isFinite(this.getCurrentTime()))){var z=uU(this.videoTrack);z=this.policy.BR&&z&&z.cW();this.KH.isManifestless&&this.KH.J&&nx(this.KH)?(this.W=nx(this.KH),this.u_.uy(this.W)):cr(this.KH)&&!z?isNaN(this.W)?(this.W=this.getCurrentTime()+3600,this.u_.uy(this.W)):this.W<=this.getCurrentTime()+1800&&(this.W=Math.max(this.W+1800,this.getCurrentTime()+3600),this.u_.uy(this.W)):this.u_.isView||(z=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.W)||this.W!==z)&&z>0&&(this.u_.uy(z),this.W=z))}if(!this.CH())if(V6(this.KH)&&this.KH.vC()){var K=this.KH;this.handleError("manifest.net.retryexhausted",K.VE?{rc:K.Pm}:{rc:K.Pm.toString()},1)}else if(this.policy.S)a:{try{GPp(this.Y);this.KH.isManifestless&&this.policy.C&&Xx(this.Vv);var f;((f=this.u_)==null?0:MB(f))&&this.YD();Muv(this.Y)}catch(B){g.Al(B);K=B;if(K.message.includes("changeType")){this.Th("ctype",{exp:K.name,msg:K.message,s:K.stack});break a}this.handleError("fmt.unplayable", {exp:K.name,msg:K.message,s:K.stack},1)}pDI(this);g.$4(this.QE)}else if(!this.KH.Y||!f58(this.videoTrack)&&!f58(this.audioTrack)||(this.videoTrack.C||this.audioTrack.C)&&this.policy.oa?f=!1:(this.W7(),this.AL.seekTo(Infinity,{v8:"checkLoaderTracksSync",zR:!0}),f=!0),!f){i5g(this);this.KH.isManifestless&&(Mop(this.videoTrack),Mop(this.audioTrack),Xx(this.Vv),(f=O7(this.videoTrack))&&f.S&&(f=f.S.T&&!this.policy.E8,this.Th(f===this.policy.G.l9?"strm":"strmbug",{strm:f,sfmp4:this.policy.G.l9,dfs:this.policy.E8}, !0)));if(this.u_)this.YD();else if(this.policy.J){var M;f=!1;if(this.policy.Kl){var p;z=g.a([this.videoTrack,this.audioTrack]);for(p=z.next();!p.done;p=z.next()){var t=p.value;for(p=O7(t);p&&t.YR()!==uU(t);p=O7(t))t.Bn(p);f=f||!!p}}else(K=O7(this.videoTrack))&&this.videoTrack.Bn(K),(M=O7(this.audioTrack))&&this.audioTrack.Bn(M);QB(this.videoTrack)&&QB(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(K||M||f)&&Xy(this)}lAW(this);Oy(this.C,this.videoTrack,this.videoTrack.S, !1);Oy(this.C,this.audioTrack,this.audioTrack.S,!1);this.policy.zT||spq(this,this.videoTrack,this.audioTrack);hM8(this.C,this.videoTrack,this.audioTrack);hM8(this.C,this.audioTrack,this.videoTrack);pDI(this);this.G&&(K=this.G,K.J?(M=K.W+K.policy.H0,K.T||(M=Math.min(M,K.startTimeSecs+K.policy.RL)),K=Math.max(0,M*1E3-Date.now())):K=NaN,isNaN(K)||g.$4(this.E0,K));g.$4(this.QE)}}; g.k.Jj=function(z){this.AL.Jj(z)}; g.k.YD=function(){var z=this;if(this.u_){var K=this.u_.S,f=this.u_.Y;e$8(this,this.audioTrack);e$8(this,this.videoTrack);var M=YM8(this);if(M){if(this.policy.t1){if(!K.AO()){var p=O7(this.audioTrack);if(p){if(!Og(this,this.audioTrack,K,p.info))return;FUI(this,this.audioTrack,K,p)}}if(!f.AO()&&(p=O7(this.videoTrack))){if(!Og(this,this.videoTrack,f,p.info))return;FUI(this,this.videoTrack,f,p)}}this.XI||(this.XI=(0,g.X)(),this.logger.debug(function(){return"Appends pause start "+z.XI+" reason "+M}), this.policy.T&&this.Th("apdps",{r:M}))}else if(this.XI&&(jpd(this,this.XI),this.XI=0),Xwq(this),p=!1,Cv8(this,this.videoTrack,f)&&(p=!0,HN5(this.timing),l1S(this.timing)),this.u_&&!this.u_.rI()&&(Cv8(this,this.audioTrack,K)&&(p=!0,Qa8(this.timing),VKa(this.timing)),!this.CH()&&this.u_))!this.policy.QW&&QB(this.videoTrack)&&QB(this.audioTrack)&&Kw(this.u_)&&!this.u_.IH()&&(f=!1,f=uU(this.audioTrack).S,f=f===this.KH.S[f.info.id])&&(this.logger.debug("Setting EOS"),cPo(this.u_),NiS(this.schedule)),p&& !this.u_.isAsync()&&Xy(this)}}; g.k.Wq=function(z){var K,f=z===((K=this.u_)==null?void 0:K.S)?this.audioTrack:this.videoTrack,M;if((M=O7(f))==null?0:M.isLocked){if(this.AL.Z().i8()){var p;this.Th("eosl",{ounlock:(p=O7(f))==null?void 0:p.info.H8()})}var t;fod(this,z===((t=this.u_)==null?void 0:t.S))}var B;if(this.policy.ES&&z===((B=this.u_)==null?void 0:B.S)&&this.rE){K=this.rE-this.getCurrentTime();var v;this.AL.Th("asl",{l:K,xtag:(v=uU(this.audioTrack))==null?void 0:v.S.info.S});this.VE=!1;this.rE=0}z.WE()&&z.NL().length===0&& (z.RA(),this.u_&&!this.u_.WE()&&(this.AL.Z().i8()&&this.AL.Th("rms",{ld:"seek"}),this.u_.W=performance.now(),this.AL.Pw(),this.AL.Z().i8()&&g.$4(this.Z2)));var I;(I=f.N)!=null&&KM(I,0);this.policy.LI?HOa(this):this.x8()}; g.k.ZHh=function(z){if(this.u_){var K=uU(z===this.u_.S?this.audioTrack:this.videoTrack);if(z=z.Tq())for(var f=0;f5&&z.Y1.shift();K=K.Ia;var G;if((G=this.AL.getVideoData())==null?0:G.enableServerStitchedDai)G=vvd(this.audioTrack,K),f=vvd(this.videoTrack,K),G!==0&&f!==0&&G!==f&&this.handleError("ssdai.avsync",{sq:K,a:G,v:f},0)}}; g.k.jw=function(z,K,f,M){z.info.video&&this.T.jw(K,f,M)}; g.k.rA=function(z){this.S.rA(z)}; g.k.Lr=zo(20);g.k.nT=function(){return this.videoTrack.G||this.audioTrack.G}; g.k.seek=function(z,K){if(this.CH())return J8();if(this.nT())return J8("seeking to head");if(this.policy.l_&&!isFinite(z))return NpI(this.Vv),g.WO(Infinity);i5g(this);Sig(this);this.policy.S||lAW(this,z);this.u_&&this.u_.S&&this.u_.Y&&!this.AL.getVideoData().I0&&(this.u_.S.isLocked()||this.u_.Y.isLocked())&&this.AL.Jd({reattachOnLockedBuffer:1,vsb:""+this.u_.Y.isLocked(),asb:""+this.u_.S.isLocked()});var f=this.getCurrentTime(),M=this.Vv.seek(z,K);this.policy.eV||(this.currentTime=M);cB(this.T,z, f,this.policy.gf&&!K.VO);Xy(this);return g.WO(M)}; g.k.Sx=function(z){return this.policy.S&&this.Y.Sx(z)}; g.k.Jt=function(z){return this.Y.Jt(z)}; g.k.Hn=function(z,K){this.Y.Hn(z,K)}; g.k.getCurrentTime=function(){if(this.policy.eV){var z=this.MB()||0;return this.AL.getCurrentTime()-z}return this.currentTime}; g.k.V8=function(){return this.audioTrack.S.info}; g.k.LG=function(){return this.videoTrack.S.info}; g.k.UA=function(){return this.audioTrack.S.info.Ra}; g.k.W$=function(){return this.videoTrack.S.info.Ra}; g.k.JL=function(){try{this.JM(),s7(this.audioTrack),s7(this.videoTrack),iU(this.audioTrack),iU(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.J.prototype.JL.call(this)}catch(z){g.sm(z)}}; g.k.handleError=function(z,K,f){f=f===void 0?0:f;var M=gI(f);z==="fmt.unplayable"&&this.KH.isLive&&(this.policy.t1=!1,gN(this.KH));K=new Jq(z,K,f);g.M5(this);Wf(K.details);this.AL.handleError(K);z!=="html5.invalidstate"&&K.errorCode!=="fmt.unplayable"&&z!=="fmt.unparseable"&&M&&this.dispose()}; g.k.S3=function(){var z=uU(this.audioTrack),K=uU(this.videoTrack);z={lct:this.getCurrentTime().toFixed(3),lsk:this.Vv.isSeeking(),lmf:this.S.S.isLocked(),lbw:HZ(this.schedule).toFixed(3),lhd:Ei(this.schedule).toFixed(3),lst:((this.schedule.G.k9()||0)*1E9).toFixed(3),laa:z?z.H8():"",lva:K?K.H8():"",lar:this.audioTrack.Y?this.audioTrack.Y.H8():"",lvr:this.videoTrack.Y?this.videoTrack.Y.H8():"",laq:""+q4(this.audioTrack),lvq:""+q4(this.videoTrack)};this.u_&&!this.u_.rI()&&this.u_.S&&this.u_.Y&&(z.lab= D0(this.u_.S.NL()),z.lvb=D0(this.u_.Y.NL()));this.XI&&(z.lapt=((0,g.X)()-this.XI).toFixed(0),z.lapr=YM8(this));this.eV&&(z.lapmabht=((0,g.X)()-this.eV).toFixed(0),z.lapmabh=j9(this,this.audioTrack).toFixed(0));this.vx&&(z.lapmvbht=((0,g.X)()-this.vx).toFixed(0),z.lapmvbh=j9(this,this.videoTrack).toFixed(0));this.Bx&&(z.lapsdai=((0,g.X)()-this.Bx).toFixed(0));return z}; g.k.W7=function(){try{this.policy.S&&this.Y.Hn(!1,"pending"),this.audioTrack.W7(),this.videoTrack.W7()}catch(z){g.sm(z)}this.policy.J=""}; g.k.fL=function(){return Vt(this.D)}; g.k.Th=function(z,K,f){this.AL.Th(z,K,f===void 0?!1:f)}; g.k.u3=function(){return this.AL.u3()}; g.k.zR=function(z,K){z/=K;isNaN(this.timestampOffset)&&wD8(this,z-Math.min(z,this.policy.Iz));return(z-this.timestampOffset)*K}; g.k.MB=function(){return this.timestampOffset}; g.k.isSeeking=function(){return this.Vv.isSeeking()}; g.k.jz=function(){this.T.jz()}; g.k.UD=function(z,K,f){K=K===void 0?!1:K;f=f===void 0?{}:f;this.policy.S?this.J.UD(z,K,f):this.S.UD(z,K,f)}; g.k.fY=function(z,K){if(this.Y1&&this.T.fY(z,this.Y1))return wD8(this,this.timestampOffset-K),Xy(this),this.policy.Y&&(gN(this.KH),iU(this.audioTrack),iU(this.videoTrack),this.W7()),!0;K=this.videoTrack.S.index.NZ(z);this.handleError("ad.skipfailed",{dec:!!this.Y1,t:z.toFixed(3),sq:K});return!1}; g.k.getManifest=function(){return this.KH}; g.k.isOffline=function(){return!!this.AL.getVideoData().cotn}; g.k.FO=function(z,K){this.AL.FO(z,K)}; g.k.jD=function(z){if(this.policy.S)this.Y.Hn(!0,"utc"),this.x8();else{var K=this.AL.getVideoData().xx;if(K){var f=this.C;f.mM=z;f.xx=K;Zc(this)}}}; g.k.RK=function(z){this.videoTrack.G=!1;this.audioTrack.G=!1;this.Vv.Y=!1;this.AL.RK(z)}; g.k.tY=function(z){this.Vv.tY(z-this.MB())}; g.k.Ou=function(){this.AL.Ou()}; g.k.wf=function(z){z!==this.policy.Ix&&((this.policy.Ix=z)||this.x8())}; g.k.eh=function(z,K){var f=this.audioTrack.P1,M=this.videoTrack.P1;f&&M&&(f.remove(z,K),M.remove(z,K))}; g.k.Jd=function(z){this.AL.Jd(z)}; g.k.Mm=function(z){this.AL.Mm(z)}; g.k.CE=function(z,K,f){var M;(M=this.oa)==null||M.CE(z,K,f)}; g.k.zq=function(z){var K;return(K=this.oa)==null?void 0:K.zq(void 0,z)}; g.k.mC=function(){return this.AL.mC()}; g.k.M7=function(){gN(this.KH);this.W7()};g.k=g.oF.prototype;g.k.mU=function(z,K,f,M,p,t){return this.Z3.mU(z,K,f,M,p,t)}; g.k.xl=function(z,K,f,M,p,t){return this.Z3.xl(z,K,f,M,p,t)}; g.k.nu=function(z){return this.Z3.nu(z)}; g.k.U6=function(z){this.Z3.U6(z)}; g.k.EA=function(z,K,f,M){return this.Z3.EA(z,K,f,M)}; g.k.jz=function(){this.Z3.jz()}; g.k.DL=function(z,K){this.Z3.DL(z,K)}; g.k.WQ=function(){this.Z3.WQ()}; g.k.PF=zo(62);g.k.hU=function(z,K,f){this.Z3.hU(z,K,f)}; g.k.LK=zo(65);g.k.pK=function(z,K,f,M,p,t,B,v,I){this.Z3.pK(z,K,f,M,p,t,B,v,I)}; g.k.Rd=function(z){this.Z3.Rd(z)}; g.k.JF=function(z){return this.Z3.JF(z)}; g.k.zx=function(z){return this.Z3.zx(z)};g.h(Co,g.Dv);g.h(T2,Co);T2.prototype.W=function(z,K){if(z&&K){var f=Number(Wv(z,"cpi"))*1+1;isNaN(f)||f<=0||fthis.T&&(this.T=f,g.U9(this.S)||(this.S={},this.J.stop(),this.Y.stop())),this.S[K]=z,g.$4(this.Y))}}; T2.prototype.C=function(){for(var z=g.a(Object.keys(this.S)),K=z.next();!K.done;K=z.next()){var f=K.value;K=this.publish;for(var M=this.T,p=g.Le(this.S[f]),t=[],B=g.a(p[6].split("&")),v=B.next();!v.done;v=B.next())v=v.value,v.indexOf("cpi=")===0?t.push("cpi="+M.toString()):v.indexOf("ek=")===0?t.push("ek="+g.Dy(f)):t.push(v);p[6]="?"+t.join("&");f="skd://"+p.slice(2).join("");p=f.length*2;M=new Uint8Array(p+4);M[0]=p%256;M[1]=(p-M[0])/256;for(p=0;p0)for(var f=g.a(this.S),M=f.next();!M.done;M=f.next())if(K===M.value.info.cryptoPeriodIndex){K=!0;break a}K=!1}if(!K){K=(0,g.X)();a:{f=z.cryptoPeriodIndex;if(!isNaN(f)){M=g.a(this.T.values());for(var p=M.next();!p.done;p=M.next())if(Math.abs(p.value.cryptoPeriodIndex-f)<=1){f=!0;break a}}f=!1}f?(f=z.S,f=Math.max(0,Math.random()*((isNaN(f)?120:f)-30))*1E3):f=0;this.publish("log_qoe",{wvagt:"delay."+f,cpi:z.cryptoPeriodIndex,reqlen:this.S.length, ignore:this.J});f<=0?h$S(this,z):this.J||(this.S.push({time:K+f,info:z}),g.$4(this.Y,f))}}; Ug.prototype.JL=function(){this.S=[];Co.prototype.JL.call(this)};var hD={},L8S=(hD.DRM_TRACK_TYPE_AUDIO="AUDIO",hD.DRM_TRACK_TYPE_SD="SD",hD.DRM_TRACK_TYPE_HD="HD",hD.DRM_TRACK_TYPE_UHD1="UHD1",hD);g.h(Shq,g.J);g.h(PD8,g.Dv);g.k=PD8.prototype;g.k.h1=function(z){var K=this;if(!(this.CH()||z.size<=0)){var f={};z.forEach(function(M,p){var t=ZH(K.Y)?p:M;p=new Uint8Array(ZH(K.Y)?M:p);ZH(K.Y)&&Xzg(p);M=g.NW(p,4);Xzg(p);p=g.NW(p,4);K.S[M]?K.S[M].status=t:K.S[p]?K.S[p].status=t:K.S[M]={type:"",status:t};K.SV.B("html5_use_new_license_constraint_proto")&&jMg(K,K.S[M].type,f)}); sMS(this,",");zS(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.k.error=function(z,K,f,M){this.CH()||(this.publish("licenseerror",z,K,f,M),z==="drm.provision"&&(z=(Date.now()-this.W)/1E3,this.W=NaN,this.publish("ctmp","provf",{et:z.toFixed(3)})));gI(K)&&this.dispose()}; g.k.shouldRetry=function(z,K){return!z&&this.requestNumber===K.requestNumber}; g.k.JL=function(){this.S={};g.Dv.prototype.JL.call(this)}; g.k.S3=function(){var z={ctype:this.D.contentType||"",length:this.D.initData.length,requestedKeyIds:this.nH,cryptoPeriodIndex:this.cryptoPeriodIndex};this.T&&(z.keyStatuses=this.S);return z}; g.k.getInfo=function(){var z=this.J.join();if(KH(this)){var K=new Set,f;for(f in this.S)this.S[f].status!=="usable"&&K.add(this.S[f].type);z+="/UKS."+Array.from(K)}return z+="/"+this.cryptoPeriodIndex}; g.k.Ic=function(){return this.url};g.h(fH,g.J);g.k=fH.prototype;g.k.m1=function(z){if(this.C){var K=z.messageType||"license-request";this.C(new Uint8Array(z.message),K)}}; g.k.h1=function(){this.G&&this.G(this.S.keyStatuses)}; g.k.onClosed=function(){this.CH()||g.ZQ("xboxone")&&this.T&&this.T("closedShouldNotRetry")}; g.k.pj=function(z){this.C&&this.C(z.message,"license-request")}; g.k.nj=function(z){if(this.T){if(this.Y){var K=this.Y.error.code;z=this.Y.error.systemCode}else K=z.errorCode,z=z.systemCode;this.T("t.prefixedKeyError;c."+K+";sc."+z,K,z)}}; g.k.zC=function(){this.W&&this.W()}; g.k.update=function(z){var K=this;if(this.S)return this.S.update(z).then(null,ng(function(f){FR8(K,"t.update",f)})); this.Y?this.Y.update(z):this.element.addKey?this.element.addKey(this.D.keySystem,z,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.D.keySystem,z,this.initData,this.sessionId);return cg()}; g.k.JL=function(){this.S&&(this.N?this.S.close().catch(g.Al):this.S.close());this.element=null;g.J.prototype.JL.call(this)};g.h(Mj,g.J);g.k=Mj.prototype;g.k.setServerCertificate=function(){return this.Y.setServerCertificate?this.S.flavor==="widevine"&&this.S.oH?this.Y.setServerCertificate(this.S.oH):TO(this.S)&&this.S.Xc?this.Y.setServerCertificate(this.S.Xc):null:null}; g.k.createSession=function(z,K){var f=z.initData;if(this.S.keySystemAccess){K&&K("createsession");var M=this.Y.createSession();Cx(this.S)?f=ZMI(f,this.S.Xc):TO(this.S)&&(f=kGg(f)||new Uint8Array(0));K&&K("genreq");z=M.generateRequest(z.contentType,f);var p=new fH(null,null,null,M,null,this.G);z.then(function(){K&&K("genreqsuccess")},ng(function(B){FR8(p,"t.generateRequest",B)})); return p}if(rN(this.S))return CUS(this,f);if(o6(this.S))return oYp(this,f);if((M=this.element)==null?0:M.generateKeyRequest)this.element.generateKeyRequest(this.S.keySystem,f);else{var t;(t=this.element)==null||t.webkitGenerateKeyRequest(this.S.keySystem,f)}return this.J=new fH(this.element,this.S,f,null,null,this.G)}; g.k.Bq=function(z){var K=TGg(this,z);K&&K.pj(z)}; g.k.Ch=function(z){var K=TGg(this,z);K&&K.nj(z)}; g.k.Ie=function(z){var K=TGg(this,z);K&&K.zC(z)}; g.k.getMetrics=function(){if(this.Y&&this.Y.getMetrics)try{var z=this.Y.getMetrics()}catch(K){}return z}; g.k.JL=function(){this.T=this.Y=null;var z;(z=this.J)==null||z.dispose();z=g.a(Object.values(this.W));for(var K=z.next();!K.done;K=z.next())K.value.dispose();this.W={};g.J.prototype.JL.call(this);delete this.element};g.k=pH.prototype;g.k.get=function(z){z=this.findIndex(z);return z!==-1?this.values[z]:null}; g.k.remove=function(z){z=this.findIndex(z);z!==-1&&(this.keys.splice(z,1),this.values.splice(z,1))}; g.k.removeAll=function(){this.keys=[];this.values=[]}; g.k.set=function(z,K){var f=this.findIndex(z);f!==-1?this.values[f]=K:(this.keys.push(z),this.values.push(K))}; g.k.findIndex=function(z){return g.kf(this.keys,function(K){return g.gZ(z,K)})};g.h(Kbu,g.Dv);g.k=Kbu.prototype;g.k.dBc=function(z){this.Je({onecpt:1});z.initData&&MF8(this,new Uint8Array(z.initData),z.initDataType)}; g.k.f2E=function(z){this.Je({onndky:1});MF8(this,z.initData,z.contentType)}; g.k.UI=function(z){this.Je({onneedkeyinfo:1});this.SV.B("html5_eme_loader_sync")&&(this.G.get(z.initData)||this.G.set(z.initData,z));fLp(this,z)}; g.k.iR=function(z){this.T.push(z);tx(this)}; g.k.createSession=function(z){var K=tF8(this)?SQp(z):g.NW(z.initData);this.Y.get(K);this.Hx=!0;z=new PD8(this.videoData,this.SV,z,this.drmSessionId);this.Y.set(K,z);z.subscribe("ctmp",this.wm,this);z.subscribe("keystatuseschange",this.h1,this);z.subscribe("licenseerror",this.tZ,this);z.subscribe("newlicense",this.qo,this);z.subscribe("newsession",this.J3,this);z.subscribe("sessionready",this.I6,this);z.subscribe("fairplay_next_need_key_info",this.A3,this);this.SV.B("html5_enable_vp9_fairplay")&&z.subscribe("qualitychange", this.Mk,this);z.subscribe("sabrlicenseconstraint",this.SWc,this);Vwp(z,this.J)}; g.k.qo=function(z){this.CH()||(this.Je({onnelcswhb:1}),z&&!this.heartbeatParams&&(this.heartbeatParams=z,this.publish("heartbeatparams",z)))}; g.k.J3=function(){this.CH()||(this.Je({newlcssn:1}),this.T.shift(),this.Hx=!1,tx(this))}; g.k.I6=function(){if(rN(this.S)&&(this.Je({onsnrdy:1}),this.vx--,this.vx===0)){var z=this.Y1,K,f;(K=z.element)==null||(f=K.msSetMediaKeys)==null||f.call(K,z.T)}}; g.k.h1=function(z){if(!this.CH()){!this.Bx&&this.videoData.B("html5_log_drm_metrics_on_key_statuses")&&(BXW(this),this.Bx=!0);this.Je({onksch:1});var K=this.Mk;if(!KH(z)&&g.Ux&&z.Y.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var f="large";else{f=[];var M=!0;if(KH(z))for(var p=g.a(Object.keys(z.S)),t=p.next();!t.done;t=p.next())t=t.value,z.S[t].status==="usable"&&f.push(z.S[t].type),z.S[t].status!=="unknown"&&(M=!1);if(!KH(z)||M)f=z.J;f=cII(f)}K.call(this,f);if(this.SV.B("html5_use_new_license_constraint_proto")){if(!KH(z))for(K= {},f=g.a(z.J),M=f.next();!M.done;M=f.next())jMg(z,M.value,K);this.videoData.authorizedFormats=z.authorizedFormats}this.publish("keystatuseschange",z)}}; g.k.wm=function(z,K){this.CH()||this.publish("ctmp",z,K)}; g.k.A3=function(z,K){this.CH()||this.publish("fairplay_next_need_key_info",z,K)}; g.k.tZ=function(z,K,f,M){this.CH()||(this.videoData.B("html5_log_drm_metrics_on_error")&&BXW(this),this.publish("licenseerror",z,K,f,M))}; g.k.lT=function(){return this.D}; g.k.Mk=function(z){var K=g.DJ("auto",z,!1,"l");if(this.videoData.LW){if(this.D.equals(K))return}else if(vIo(this.D,z))return;this.D=K;this.publish("qualitychange");this.Je({updtlq:z})}; g.k.SWc=function(z){this.videoData.sabrLicenseConstraint=z}; g.k.JL=function(){this.S.keySystemAccess&&this.element&&(this.nH?this.element.setMediaKeys(null).catch(g.Al):this.element.setMediaKeys(null));this.element=null;this.T=[];for(var z=g.a(this.Y.values()),K=z.next();!K.done;K=z.next())K=K.value,K.unsubscribe("ctmp",this.wm,this),K.unsubscribe("keystatuseschange",this.h1,this),K.unsubscribe("licenseerror",this.tZ,this),K.unsubscribe("newlicense",this.qo,this),K.unsubscribe("newsession",this.J3,this),K.unsubscribe("sessionready",this.I6,this),K.unsubscribe("fairplay_next_need_key_info", this.A3,this),this.SV.B("html5_enable_vp9_fairplay")&&K.unsubscribe("qualitychange",this.Mk,this),K.dispose();this.Y.clear();this.W.removeAll();this.G.removeAll();this.heartbeatParams=null;g.Dv.prototype.JL.call(this)}; g.k.S3=function(){for(var z={systemInfo:this.S.S3(),sessions:[]},K=g.a(this.Y.values()),f=K.next();!f.done;f=K.next())z.sessions.push(f.value.S3());return z}; g.k.getInfo=function(){return this.Y.size<=0?"no session":""+this.Y.values().next().value.getInfo()+(this.C?"/KR":"")}; g.k.Je=function(z,K){K=K===void 0?!1:K;this.CH()||(Wf(z),(this.SV.i8()||K)&&this.publish("ctmp","drmlog",z))};g.h(bog,g.J);g.k=bog.prototype;g.k.iq=function(){return!!this.mT}; g.k.Dj=function(){return this.Y}; g.k.handleError=function(z){var K=this;hld(this,z);if((z.errorCode!=="html5.invalidstate"&&z.errorCode!=="fmt.unplayable"&&z.errorCode!=="fmt.unparseable"||!k2u(this,z.errorCode,z.details))&&!uy8(this,z)){if(this.pH.Y1!=="yt"&&Rld(this,z)&&this.videoData.A1&&(0,g.X)()/1E3>this.videoData.A1&&this.pH.Y1==="hm"){var f=Object.assign({e:z.errorCode},z.details);f.stalesigexp="1";f.expire=this.videoData.A1;f.init=this.videoData.qg/1E3;f.now=(0,g.X)()/1E3;f.systelapsed=((0,g.X)()-this.videoData.qg)/1E3;z= new Jq(z.errorCode,f,2);this.AL.HA(z.errorCode,2,"SIGNATURE_EXPIRED",Wf(z.details))}if(gI(z.severity)){var M;f=(M=this.AL.loader)==null?void 0:M.S.S;if(this.pH.B("html5_use_network_error_code_enums"))if(aLS(z)&&f&&f.isLocked())var p="FORMAT_UNAVAILABLE";else if(this.pH.W||z.errorCode!=="auth"||z.details.rc!==429)z.errorCode==="ump.spsrejectfailure"&&(p="HTML5_SPS_UMP_STATUS_REJECTED");else{p="TOO_MANY_REQUESTS";var t="6"}else aLS(z)&&f&&f.isLocked()?p="FORMAT_UNAVAILABLE":this.pH.W||z.errorCode!== "auth"||z.details.rc!=="429"?z.errorCode==="ump.spsrejectfailure"&&(p="HTML5_SPS_UMP_STATUS_REJECTED"):(p="TOO_MANY_REQUESTS",t="6");this.AL.HA(z.errorCode,z.severity,p,Wf(z.details),t)}else this.AL.publish("nonfatalerror",z),M=/^pp/.test(this.videoData.clientPlaybackNonce),this.yW(z.errorCode,z.details),M&&z.errorCode==="manifest.net.connect"&&(z="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.X)(),mI(z,"manifest",function(B){K.W=!0;K.Th("pathprobe",B)}, function(B){K.yW(B.errorCode,B.details)}))}}; g.k.Th=function(z,K){this.AL.Vh().Th(z,K)}; g.k.yW=function(z,K){K=Wf(K);this.AL.Vh().yW(z,K)};B3.prototype.uK=function(z){var K=QFu(this);if(!z)return{Vs:ZY,uw:ZY,R2:ZY,Uk:ZY,rk:ZY,o2:ZY,Jp:K};var f=ZY;if(k6(K)||this.B("html5_perf_cap_override_sticky"))f=sFp(this,z);return{Vs:f,uw:Wbp(this,z),R2:VFS(this,z),Uk:Aro(this,z.videoData),rk:jFp(this,z.videoData,z),o2:m7v(this,z),Jp:K}}; B3.prototype.bq=function(z){var K;g.si(this.SV)&&(K=window.screen&&window.screen.width?new g.W9(window.screen.width,window.screen.height):null);K||(K=this.SV.oi?this.SV.oi.clone():this.M5.ox());($a||UK||z)&&K.scale(g.Ka());return K}; B3.prototype.B=function(z){return this.SV.B(z)};g.h(v3,g.J);v3.prototype.onError=function(z){if(z!=="player.fatalexception"||this.provider.B("html5_exception_to_health"))z==="sabr.fallback"&&(this.encounteredSabrFallback=!0),z.match($W4)?this.networkErrorCount++:this.nonNetworkErrorCount++}; v3.prototype.send=function(){if(!(this.T||this.S<0)){x7W(this);var z=g.ZL(this.provider)-this.S,K="PLAYER_PLAYBACK_STATE_UNKNOWN",f=this.playerState.Pj;this.playerState.isError()?K=f&&f.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.Z(this.playerState,2)?K="PLAYER_PLAYBACK_STATE_ENDED":g.Z(this.playerState,64)?K="PLAYER_PLAYBACK_STATE_UNSTARTED":g.Z(this.playerState,16)||g.Z(this.playerState,32)?K="PLAYER_PLAYBACK_STATE_SEEKING":g.Z(this.playerState,1)&&g.Z(this.playerState, 4)?K="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.Z(this.playerState,1)?K="PLAYER_PLAYBACK_STATE_BUFFERING":g.Z(this.playerState,4)?K="PLAYER_PLAYBACK_STATE_PAUSED":g.Z(this.playerState,8)&&(K="PLAYER_PLAYBACK_STATE_PLAYING");f=FN_[Hw(this.provider.videoData)];a:switch(this.provider.SV.playerCanaryState){case "canary":var M="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":M="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:M="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var p=Fbo(this.provider), t=this.Y<0?z:this.Y-this.S;z=this.provider.SV.FK+36E5<(0,g.X)();K={started:this.Y>=0,stateAtSend:K,joinLatencySecs:t,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:M,playerCanaryStage:p,isAd:this.provider.videoData.isAd(),liveMode:f,hasDrm:!!g.EM(this.provider.videoData),isGapless:this.provider.videoData.G,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:bv(this.provider.videoData)};z||g.Ds("html5PlayerHealthEvent",K);this.T=!0;this.dispose()}}; v3.prototype.JL=function(){this.T||this.send();window.removeEventListener("error",this.Zo);window.removeEventListener("unhandledrejection",this.Zo);g.J.prototype.JL.call(this)}; var $W4=/\bnet\b/;g.h(rr5,g.J);rr5.prototype.JL=function(){oeW(this);g.J.prototype.JL.call(this)};var CTu=/[?&]cpn=/;g.h(Ic,g.J);Ic.prototype.flush=function(){var z={};this.Y&&(z.pe=this.Y);this.S.length>0&&(z.pt=this.S.join("."));this.S=[];return z}; Ic.prototype.stop=function(){var z=this,K,f,M;return g.n(function(p){if(p.Y==1)return g.Sq(p,2),g.l(p,(K=z.J)==null?void 0:K.stop(),4);if(p.Y!=2)return(f=p.S)&&z.logTrace(f),g.Eu(p,0);M=g.QI(p);z.Y=Mf8(M.message);g.Rv(p)})}; Ic.prototype.logTrace=function(z){this.encoder.reset();this.encoder.add(1);this.encoder.add(z.resources.length);for(var K=g.a(z.resources),f=K.next();!f.done;f=K.next()){f=f.value.replace("https://www.youtube.com/s/","");this.encoder.add(f.length);for(var M=0;M=0?z:g.ZL(this.provider),this.Hx?fjT.has(this.Dv)&&(this.S.size||(this.Dv==="PL"?z>=this.Y+30:z<=this.l_+30||z>=this.Y+1200&&z<=this.l_+86400))&&(g.ef(this,z,"vps",[this.Dv]),this.Y=z):["PL","B","S"].indexOf(this.Dv)>-1&&(this.S.size||z>=this.Y+30)&&(g.ef(this,z,"vps",[this.Dv]),this.Y=z),this.S.size)){this.sequenceNumber===7E3&&g.Al(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){yn(this,z);var K=this.provider.AL.gw(); K=g.a(K);for(var f=K.next();!f.done;f=K.next())f=f.value,this.Th(f.key,f.value);K=z;f=this.provider.AL.tT();var M=f.droppedVideoFrames||0,p=f.totalVideoFrames||0,t=M-this.Ta,B=p&&!this.q5;M>f.totalVideoFrames||t>5E3?kSI(this,"html5.badframedropcount","df."+M+";tf."+f.totalVideoFrames):(t>0||B)&&g.ef(this,K,"df",[t]);this.Ta=M;this.q5=p;this.D>0&&(g.ef(this,z,"glf",[this.D]),this.D=0);kA.isActive()&&(z=kA.Ts(),Object.keys(z).length>0&&this.Th("profile",z));this.W1&&kx(this,"lwnmow");this.provider.SV.i8()&& this.provider.B("html5_record_now")&&this.Th("now",{wt:(0,g.X)()});z={};this.provider.videoData.Y&&(z.fmt=this.provider.videoData.Y.itag,(K=this.provider.videoData.J)&&K.itag!==z.fmt&&(z.afmt=K.itag));z.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(z.adcpn=this.adCpn);this.OV&&(z.addocid=this.OV);this.contentCpn&&(z.ccpn=this.contentCpn);this.Y1&&(z.cdocid=this.Y1);this.provider.videoData.cotn&&(z.cotn=this.provider.videoData.cotn);z.el=sM(this.provider.videoData);z.content_v=ju(this.provider.videoData); z.ns=this.provider.SV.Y1;z.fexp=Owa(this.provider.SV.experiments).toString();z.cl=(764512846).toString();(K=this.provider.videoData.adFormat||this.adFormat)&&(z.adformat=K);(K=Hw(this.provider.videoData))&&(z.live=K);this.provider.videoData.FS()&&(z.drm=1,this.provider.videoData.C&&(z.drm_system=x08[this.provider.videoData.C.flavor]||0),this.provider.videoData.drmProduct&&(z.drm_product=this.provider.videoData.drmProduct));wV()&&this.provider.videoData.W&&(z.ctt=this.provider.videoData.W,z.cttype= this.provider.videoData.kq,this.provider.videoData.mdxEnvironment&&(z.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(z.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.b6&&(z.dai_fallback="1")):this.provider.videoData.O0?z.dai="cs":this.provider.videoData.hx&&(z.dai="disabled");z.seq=this.sequenceNumber++;if(this.provider.videoData.PY){if(K=this.provider.videoData.PY,z&&K)for(K.ns==="3pp"&&(z.ns="3pp"),this.SU.has(K.ns)&& kx(this,"hbps"),K.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=K.shbpslc),this.provider.SV.experiments.sf("html5_use_server_qoe_el_value")&&this.rE.delete("el"),f=g.a(Object.keys(K)),M=f.next();!M.done;M=f.next())M=M.value,this.rE.has(M)||(z[M]=K[M])}else z.event="streamingstats",z.docid=this.provider.videoData.videoId,z.ei=this.provider.videoData.eventId;this.isEmbargoed&&(z.embargoed="1");Object.assign(z,this.provider.SV.S);if(K=z.seq)K={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+K,serializedWatchEndpointLoggingContext:this.provider.videoData.FVV},this.serializedHouseBrandPlayerServiceLoggingContext&&(K.serializedHouseBrandPlayerServiceLoggingContext=Ij(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(K.playerResponseCpn=this.provider.videoData.playerResponseCpn),bG.length&&(K.decoderInfo=bG),this.remoteControlMode&&(K.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(K.remoteConnectedDevices= this.remoteConnectedDevices),K=g.tM(K,JAu),K=g.NW(K,4),this.S.set("qclc",[K]);z=g.V8("//"+this.provider.SV.Sm+"/api/stats/qoe",z);f=K="";M=g.a(this.S.entries());for(p=M.next();!p.done;p=M.next())t=g.a(p.value),p=t.next().value,t=t.next().value,B=void 0,(B=t)!=null&&B.join&&(p="&"+p+"="+t.join(","),p.length>100?f+=p:K+=p);eOa(this,z+K,f.replace(/ /g,"%20"))}this.S.clear()}}; g.k.Mm=function(z){this.W1=z}; g.k.fZ=function(){if(this.provider.videoData.C){var z=this.provider.videoData.C;kx(this,"eme-"+(z.keySystemAccess?"final":rN(z)?"ms":Cx(z)?"ytfp":o6(z)?"safarifp":"nonfinal"))}}; g.k.KJ=zo(59);g.k.g8=function(z){this.isEmbargoed=z}; g.k.uW=zo(36);g.k.uI=zo(42);g.k.onPlaybackRateChange=function(z){var K=g.ZL(this.provider);z&&z!==this.E0&&(g.ef(this,K,"rate",[z]),this.E0=z);this.Hx||this.reportStats(K)}; g.k.sT=zo(30);g.k.getPlayerState=function(z){if(g.Z(z,128))return"ER";if(g.Z(z,2048))return"B";if(g.Z(z,512))return"SU";if(g.Z(z,16)||g.Z(z,32))return"S";if(z.isOrWillBePlaying()&&g.Z(z,64))return"B";var K=MGp[Sx(z)];g.iY(this.provider.SV)&&K==="B"&&this.provider.AL.getVisibilityState()===3&&(K="SU");K==="B"&&g.Z(z,4)&&(K="PB");return K}; g.k.JL=function(){g.J.prototype.JL.call(this);g.EJ(this.nH);g.EJ(this.Ft)}; g.k.ZR=function(z){this.isOffline=z;g.ef(this,g.ZL(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.k.Th=function(z,K,f){var M=this.QW.indexOf(z)!==-1;M||this.QW.push(z);if(!f||!M){var p=typeof K!=="string"?Wf(K):K;p=atW(p);if(!f&&!/^t[.]/.test(p)){var t=g.ZL(this.provider)*1E3;p="t."+t.toFixed()+";"+p}Dt(this,"ctmp",z+":"+p);this.logger.debug(function(){return"ctmp "+z+" "+p}); w38(this);return t}}; g.k.WH=function(z,K,f){this.C={uKL:Number(this.Th("glrem",{nst:z.toFixed(),rem:K.toFixed(),ca:+f})),V0:z,xTE:K,isAd:f}}; g.k.nE=function(z,K,f){g.ef(this,g.ZL(this.provider),"ad_playback",[z,K,f])}; g.k.U9=function(z,K){var f=g.ZL(this.provider)*1E3;Dt(this,"daism","t."+f.toFixed(0)+";smw."+(z*1E3).toFixed(0)+";smo."+(K*1E3).toFixed(0))}; g.k.resume=function(){var z=this;isNaN(this.nH)?DjS(this):this.nH=g.um(function(){z.reportStats()},1E4)}; var aX={},MGp=(aX[5]="N",aX[-1]="N",aX[3]="B",aX[0]="EN",aX[2]="PA",aX[1]="PL",aX[-1E3]="ER",aX[1E3]="N",aX),fjT=new Set(["PL","B","S"]),bG=[];Stp.prototype.update=function(){if(this.G){var z=this.t$()||0,K=g.ZL(this.provider);z>=this.provider.AL.getDuration()-.1&&(this.previouslyEnded=!0);if(z!==this.S||Exd(this,z,K)){var f;if(!(f=zK-this.pN+2||Exd(this,z,K))){f=this.provider.AL.getVolume();var M=f!==this.N,p=this.provider.AL.isMuted()?1:0;p!==this.D?(this.D=p,f=!0):(!M||this.J>=0||(this.N=f,this.J=K),f=K-this.J,this.J>=0&&f>2?(this.J=-1,f=!0):f=!1)}f&&(Sf(this),this.T=z);this.pN=K;this.S=z}}}; Stp.prototype.t$=function(){var z=this.provider.AL.t$();return this.provider.SV.B("html5_disable_live_dvr_shrink_for_cdm_vss")&&GP(this.provider.videoData)?z+this.provider.AL.MB():z};PG8.prototype.send=function(z){var K=this;if(!this.VE){var f=Qco(this),M=g.V8(this.uri,f);this.SV.B("vss_through_gel_double")&&qto(M);this.Hx&&!this.SV.B("html5_simplify_pings")?WOp(this,M):HHo(this,z).then(function(p){K.Hx&&(p=p||{},p.method="POST",p.postParams={atr:K.attestationResponse});KO5(M,p,{token:K.l_,C1:K.TP,mdxEnvironment:K.mdxEnvironment},K.SV,z,K.eV,K.isFinal&&K.FK||K.Bx||K.T&&K.XK)}); this.VE=!0}}; PG8.prototype.Y=function(z){z===void 0&&(z=NaN);return Number(z.toFixed(3)).toString()}; var RX={},Vfd=(RX.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,RX.LIVING_ROOM_APP_MODE_MAIN=1,RX.LIVING_ROOM_APP_MODE_KIDS=2,RX.LIVING_ROOM_APP_MODE_MUSIC=3,RX.LIVING_ROOM_APP_MODE_UNPLUGGED=4,RX.LIVING_ROOM_APP_MODE_GAMING=5,RX),SV={},lto=(SV.EMBEDDED_PLAYER_MODE_UNKNOWN=0,SV.EMBEDDED_PLAYER_MODE_DEFAULT=1,SV.EMBEDDED_PLAYER_MODE_PFP=2,SV.EMBEDDED_PLAYER_MODE_PFL=3,SV);g.h(LH,g.J);LH.prototype.Xo=function(){this.S.update();Yta(this)&&(iHd(this),dja(this))}; LH.prototype.JL=function(){g.J.prototype.JL.call(this);H3(this);u4o(this.S)}; LH.prototype.S3=function(){return Qco(Et(this,"playback"))}; LH.prototype.qZ=function(z){var K=Et(this,"engage");K.nH=z;return mjW(K,ZHo(this.provider))};rxS.prototype.isEmpty=function(){return this.endTime===this.startTime};qj.prototype.B=function(z){return this.SV.B(z)}; qj.prototype.getCurrentTime=function(){return this.AL.getCurrentTime()}; qj.prototype.t$=function(){return this.AL.t$()}; var oxg={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.h(g.mO,g.J);g.k=g.mO.prototype;g.k.Xo=function(){if(this.provider.videoData.enableServerStitchedDai&&this.v7){var z;(z=this.T.get(this.v7))==null||z.Xo()}else this.S&&this.S.Xo()}; g.k.g8=function(z){this.qoe&&this.qoe.g8(z)}; g.k.uW=zo(35);g.k.uI=zo(41);g.k.U9=function(z,K){this.qoe&&this.qoe.U9(z,K)}; g.k.R9=function(){if(this.provider.videoData.enableServerStitchedDai&&this.v7){var z;(z=this.T.get(this.v7))!=null&&Sf(z.S)}else this.S&&Sf(this.S.S)}; g.k.yW=function(z,K){this.qoe&&kSI(this.qoe,z,K);if(this.Y)this.Y.onError(z)}; g.k.onPlaybackRateChange=function(z){if(this.qoe)this.qoe.onPlaybackRateChange(z);this.S&&Sf(this.S.S)}; g.k.KJ=zo(58);g.k.Th=function(z,K,f){this.qoe&&this.qoe.Th(z,K,f)}; g.k.WH=function(z,K,f){this.qoe&&this.qoe.WH(z,K,f)}; g.k.f9=function(z){var K;(K=this.qoe)==null||K.f9(z)}; g.k.KU=function(z){var K;(K=this.qoe)==null||K.KU(z)}; g.k.Mm=function(z){this.qoe&&this.qoe.Mm(z)}; g.k.nE=function(z,K,f){this.qoe&&this.qoe.nE(z,K,f)}; g.k.sT=zo(29);g.k.D9=function(){if(this.qoe)return this.qoe.D9()}; g.k.S3=function(){if(this.provider.videoData.enableServerStitchedDai&&this.v7){var z,K;return(K=(z=this.T.get(this.v7))==null?void 0:z.S3())!=null?K:{}}return this.S?this.S.S3():{}}; g.k.cD=function(){var z;return(z=this.qoe)==null?void 0:z.cD()}; g.k.PH=function(z,K){var f;(f=this.qoe)==null||f.PH(z,K)}; g.k.qZ=function(z){return this.S?this.S.qZ(z):function(){}}; g.k.getVideoData=function(){return this.provider.videoData}; g.k.resume=function(){this.qoe&&this.qoe.resume()};g.h(nH,g.J);nH.prototype.Iq=function(){if(this.S.has(void 0)){var z=this.S.get(void 0);if(!(void 0).videoId||z.S&&z.qoe)return;this.S.has(void 0)&&(KY8(this.S.get(void 0)),this.S.delete(void 0))}if(!this.S.has(void 0)){z=new qj(void 0,this.SV,this.AL);var K=Math.round(lG(this.Y)*1E3);z=new g.mO(z,K);z.S&&z.qoe||this.Y.Th("nqv",{vv:(void 0).videoId});K=this.Y.getVideoData();this.S.set(void 0,z);if(z.qoe){var f=z.qoe,M=K.videoId||"";f.contentCpn=K.clientPlaybackNonce;f.Y1=M}CGo(z)}}; nH.prototype.Sb=function(z){if(z!==void 0){var K=this.Vh(z),f=this.Vh(),M,p=z===((M=K.getVideoData())==null?void 0:M.clientPlaybackNonce),t;M=void 0===((t=f.getVideoData())==null?void 0:t.clientPlaybackNonce);var B;t=p?((B=K.getVideoData())==null?void 0:B.videoId)||"":"nvd";var v;B=M?((v=f.getVideoData())==null?void 0:v.videoId)||"":"nvd";p&&(K=K.qoe)!=null&&(ac(K,4,0,void 0,B),K.reportStats());M&&(Vn(f),(K=f.qoe)!=null&&(ac(K,4,1,z,t),K.reportStats()),zL5(f,new g.S$(void 0,f.Dv)),Tv8(f))}}; nH.prototype.Vh=function(z){z=z||this.v7;return this.S.get(z)||this.Y};g.h(g.W3,g.J);g.k=g.W3.prototype;g.k.St=function(z,K){this.sync();K&&this.S.array.length>=2E3&&this.Ib("captions",1E4);K=this.S;if(z.length>1&&z.length>K.array.length)K.array=K.array.concat(z),K.array.sort(K.S);else{z=g.a(z);for(var f=z.next();!f.done;f=z.next())f=f.value,!K.array.length||K.S(f,K.array[K.array.length-1])>0?K.array.push(f):g.dZ(K.array,f,K.S)}this.T=NaN;this.sync()}; g.k.gL=function(z){z.length>1E4&&g.Al(new g.UT("Over 10k cueRanges removal occurs with a sample: ",z[0]));if(!this.CH()){var K=new Set(z);this.Y=this.Y.filter(function(f){return!K.has(f)}); bzW(this.S,K);this.sync()}}; g.k.Ib=function(z,K){var f=(isNaN(this.T)?kTo(this):this.T)-K;K=this.B7().filter(function(M){return M.namespace===z&&M.endthis.S,t=g.Z(f,8)&&g.Z(f,16),B=this.AL.cC().isBackground()||f.isSuspended();xx(this,this.VE,t&&!B,p,"qoe.slowseek",function(){},"timeout"); var v=isFinite(this.S);v=t&&v&&Fco(K,this.S);var I=!M||Math.abs(M-this.S)>10,G=this.SV.B("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),b=M===0&&this.Y&&[11,10].includes(this.Y);xx(this,this.rE,v&&I&&!B&&(!G||!b),p,"qoe.slowseek",function(){K.seekTo(z.S)},"set_cmt"); I=v&&kr(K.MV(),this.S);var e=this.AL.loader;v=!e||e.Cq();var w=function(){K.seekTo(z.S+.001)}; xx(this,this.vx,I&&v&&!B,p,"qoe.slowseek",w,"jiggle_cmt");v=function(){return z.AL.bW()}; xx(this,this.Xc,I&&!B,p,"qoe.slowseek",v,"new_elem");I=R4(f);G=f.isBuffering();var D=K.MV(),y=yr(D,M),R=y>=0&&D.end(y)>M+5,S=I&&G&&R;b=this.AL.getVideoData();xx(this,this.Px,M<.002&&this.S<.002&&t&&g.iY(this.SV)&&g.Af(b)&&!B,p,"qoe.slowseek",v,"slow_seek_shorts");xx(this,this.N,b.WW()&&t&&!B&&!b.Bx,p,"qoe.slowseek",v,"slow_seek_gapless_shorts");xx(this,this.l_,S&&!B,I&&!G,"qoe.longrebuffer",w,"jiggle_cmt");xx(this,this.nH,S&&!B,I&&!G,"qoe.longrebuffer",v,"new_elem_nnr");if(e){var E=e.getCurrentTime(); t=K.zS();t=JPp(t,E);t=!e.isSeeking()&&M===t;xx(this,this.nI,I&&G&&t&&!B,I&&!G&&!t,"qoe.longrebuffer",function(){K.seekTo(E)},"seek_to_loader")}t={}; w=yr(D,Math.max(M-3.5,0));S=w>=0&&M>D.end(w)-1.1;var L=w>=0&&w+1=0&&S&&L<11;t.close2edge=S;t.gapsize=L;t.buflen=D.length;this.Y&&(t.seekSour=this.Y);xx(this,this.Hx,I&&G&&!B,I&&!G,"qoe.longrebuffer",function(){},"timeout",t); t=f.isSuspended();t=this.AL.kI()&&!t;xx(this,this.G,t,!t,"qoe.start15s",function(){z.AL.A_("ad")},"ads_preroll_timeout"); t=this.SV.experiments.sf("html5_use_playback_rate_in_skip_slow_ad")?this.AL.getPlaybackRate()*1E3:1E3;y=M-this.J5;xx(this,this.b_,g.Af(b)&&e,I&&!G,"qoe.longrebuffer",function(){z.AL.Jd()},"reset_media_source"); xx(this,this.QE,g.Af(b)&&e,I&&!G,"qoe.longrebuffer",v,"reset_media_element");this.J===0&&(this.W=M);e=G&&this.S===0&&M>1&&M===this.W;xx(this,this.Bx,g.Af(b)&&e,I&&!G,"qoe.slowseek",function(){K.seekTo(0)},"reseek_after_time_jump"); B=f.isOrWillBePlaying()&&!B;R=this.AL.HW()-M<6&&!R&&this.AL.Zs();xx(this,this.D,b.WW()&&B&&G&&R,I&&!G,"qoe.longrebuffer",function(){z.AL.bW(!1,!0)},"handoff_end_long_buffer_reload"); f=NE(b)&&this.Y===104&&B&&(G||g.Z(f,8)&&g.Z(f,16));xx(this,this.Y1,f,p,"qoe.start15s",v,"gapless_slow_start");this.J=M;this.C.start()}}; X4.prototype.yW=function(z,K,f){K=this.S3(K);K.wn=f;K.wdup=this.T[z]?"1":"0";this.AL.yW(new Jq(z,K));this.T[z]=!0}; X4.prototype.S3=function(z){z=Object.assign(this.AL.S3(!0),z.S3());this.S&&(z.stt=this.S.toFixed(3));this.AL.getVideoData().isLivePlayback&&(z.ct=this.AL.getCurrentTime().toFixed(3),z.to=this.AL.MB().toFixed(3));delete z.uga;delete z.euri;delete z.referrer;delete z.fexp;delete z.vm;return z}; jf.prototype.reset=function(){this.S=this.Y=this.T=this.startTimestamp=0;this.J=!1}; jf.prototype.test=function(z){if(!this.C||this.Y)return!1;if(!z)return this.reset(),!1;z=(0,g.X)();if(!this.startTimestamp)this.startTimestamp=z,this.T=0;else if(this.T>=this.C)return this.Y=z,!0;this.T+=1;return!1}; jf.prototype.S3=function(){var z={},K=(0,g.X)();this.startTimestamp&&(z.wsd=(K-this.startTimestamp).toFixed());this.Y&&(z.wtd=(K-this.Y).toFixed());this.S&&(z.wssd=(K-this.S).toFixed());return z};g.h(izS,g.J);g.k=izS.prototype;g.k.setMediaElement=function(z){(this.mediaElement=z)?(this.mediaElement&&(this.C||this.T||!this.mediaElement.hY()||this.seekTo(.01,{v8:"seektimeline_setupMediaElement"})),F4(this)):rv(this)}; g.k.getCurrentTime=function(){if(Ot(this.AL)){if(!isNaN(this.Y))return this.Y}else if(!isNaN(this.Y)&&isFinite(this.Y))return this.Y;return this.mediaElement&&CPu(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.T||0}; g.k.Ex=function(){return this.VE}; g.k.t$=function(){return this.getCurrentTime()-this.MB()}; g.k.jk=function(){return this.S?this.S.jk():Infinity}; g.k.isAtLiveHead=function(z){if(!this.S)return!1;z===void 0&&(z=this.getCurrentTime());return c3(this.S,z)}; g.k.EM=function(){return!!this.S&&this.S.EM()}; g.k.seekTo=function(z,K){var f=K===void 0?{}:K;K=f.aM===void 0?!1:f.aM;var M=f.De===void 0?0:f.De;var p=f.Wr===void 0?!1:f.Wr;var t=f.BN===void 0?0:f.BN;var B=f.v8===void 0?"":f.v8;var v=f.seekSource===void 0?void 0:f.seekSource;var I=f.zR===void 0?!1:f.zR;var G=f.VO===void 0?!1:f.VO;f=f.Js===void 0?!1:f.Js;I&&(z+=this.MB());bv(this.videoData)&&v===29&&(this.VE=void 0);I=z=this.eU())||!g.V_(this.videoData),b||(R={st:R,mst:this.eU()},this.S&&this.B("html5_high_res_seek_logging")&&(R.ht=this.S.jk(),R.adft=m98(this.S)),this.AL.Th("seeknotallowed",R)),R=b));if(!R)return this.J&&(this.J=null,rWS(this)),g.WO(this.getCurrentTime());R=.005;G&&this.B("html5_sabr_seek_no_shift_tolerance")&&(R=0);if(Math.abs(z-this.Y)<=R&&this.nH)return this.C;B&&(R=z,(this.SV.i8()||this.B("html5_log_seek_reasons"))&&this.AL.Th("seekreason",{reason:B, tgt:R}));v&&(this.N.Y=v);this.nH&&rv(this);this.C||(this.C=new BC);z&&!isFinite(z)&&AWg(this,!1);(B=f||I)||(B=z,B=!(this.videoData.isLivePlayback&&this.videoData.T&&!this.videoData.T.S&&!(this.mediaElement&&this.mediaElement.S_()>0&&vC(this.mediaElement)>0)||k3(this.videoData)&&this.L6()===this.eU(!1)?0:isFinite(B)||!k3(this.videoData)));B||(z=oc(this,z,p));z&&!isFinite(z)&&AWg(this,!1);this.T=z;this.Xc=t;this.Y=z;this.W=0;this.S&&(p=this.S,t=z,lN8(p,t,!1),VdW(p,t));p=this.AL;t=z;B={aM:K,seekSource:v}; p.B8.T=t;f=p.XE;f.mediaTime=t;f.S=!0;B.aM&&p.sH(B);B=t>p.videoData.endSeconds&&t>p.videoData.limitedPlaybackDurationInSeconds;p.U_&&B&&isFinite(t)&&qwW(p);tK.start&&qwW(this.AL);return this.C}; g.k.eU=function(z){if(!this.videoData.isLivePlayback)return this.AL.videoData.eU();var K;return UM(this.videoData)&&((K=this.mediaElement)==null?0:K.isPaused())&&this.videoData.S?(z=this.getCurrentTime(),ncI(this.ll(z)*1E3)+z):this.B("html5_sabr_parse_live_metadata_playback_boundaries")&&bv(this.videoData)&&this.videoData.S?z?this.videoData.S.l_||0:this.videoData.S.RL||0:k3(this.videoData)&&this.videoData.Y1&&this.videoData.S?this.videoData.S.eU()+this.timestampOffset:this.videoData.T&&this.videoData.T.S? !z&&this.S?this.S.jk():this.AL.videoData.eU()+this.timestampOffset:this.mediaElement?TM()?ncI(this.mediaElement.jc().getTime()):vC(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.k.L6=function(){if(this.B("html5_sabr_parse_live_metadata_playback_boundaries")&&bv(this.videoData)){var z;return((z=this.videoData.S)==null?void 0:z.Bg)||0}z=this.videoData?this.videoData.L6()+this.timestampOffset:this.timestampOffset;if(UM(this.videoData)&&this.videoData.S){var K,f=Number((K=this.videoData.progressBarStartPosition)==null?void 0:K.utcTimeMillis)/1E3;K=this.getCurrentTime();K=this.ll(K)-K;if(!isNaN(f)&&!isNaN(K))return Math.max(z,f-K)}return z}; g.k.Pw=function(){this.C||this.seekTo(this.T,{v8:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.k.nT=function(){return this.nH&&!isFinite(this.Y)}; g.k.JL=function(){jyo(this,null);this.N.dispose();g.J.prototype.JL.call(this)}; g.k.S3=function(){var z={};this.loader&&Object.assign(z,this.loader.S3());this.mediaElement&&Object.assign(z,this.mediaElement.S3());return z}; g.k.Km=function(z){this.timestampOffset=z}; g.k.getStreamTimeOffset=function(){return k3(this.videoData)?0:this.videoData.S?this.videoData.S.getStreamTimeOffset():0}; g.k.MB=function(){return this.timestampOffset}; g.k.ll=function(z){return this.videoData&&this.videoData.S?this.videoData.S.ll(z-this.timestampOffset):NaN}; g.k.qq=function(){if(!this.mediaElement)return 0;if(n5(this.videoData)){var z=this.mediaElement,K=z.MV();z=(RC(K)&&z.getDuration()?K.end(K.length-1):0)+this.timestampOffset-this.L6();K=this.eU()-this.L6();return Math.max(0,Math.min(1,z/K))}return this.mediaElement.qq()}; g.k.hw=function(z){this.G&&(this.G.S=z)}; g.k.jD=function(z,K){this.AL.Th("requestUtcSeek",{time:z});bv(this.videoData)&&(this.VE=z);var f;(f=this.loader)==null||f.jD(z);K&&(this.Hx=K)}; g.k.RK=function(z){bv(this.videoData)&&(this.VE=void 0);if(this.Hx)this.AL.Th("utcSeekingFallback",{source:"streamTime",timeSeconds:this.Hx}),this.AL.seekTo(this.Hx,{v8:"utcSeekingFallback_streamTime"}),this.Hx=0;else{var K=this.getCurrentTime();isNaN(K)||(z=this.ll(K)-z,K-=z,this.AL.Th("utcSeekingFallback",{source:"estimate",timeSeconds:K}),this.AL.seekTo(K,{v8:"utcSeekingFallback_estimate"}))}}; g.k.Ou=function(){this.Hx=0}; g.k.B=function(z){return this.SV&&this.SV.B(z)};g.h(CH,g.J);CH.prototype.start=function(){this.Y.start()}; CH.prototype.stop=function(){this.Y.stop()}; CH.prototype.clear=function(){for(var z=g.a(this.S.values()),K=z.next();!K.done;K=z.next())K.value.clear()}; CH.prototype.sample=function(){for(var z=g.a(this.T),K=z.next();!K.done;K=z.next()){var f=g.a(K.value);K=f.next().value;f=f.next().value;this.S.has(K)||this.S.set(K,new fdo(pio.has(K)));this.S.get(K).update(f())}this.Y.start()}; var pio=new Set(["networkactivity"]);fdo.prototype.update=function(z){this.Y?(this.buffer.add(z-this.S||0),this.S=z):this.buffer.add(z)}; fdo.prototype.clear=function(){this.buffer.clear();this.S=0};zT.prototype.Oc=function(){return this.started}; zT.prototype.start=function(){this.started=!0}; zT.prototype.reset=function(){this.finished=this.started=!1};var N1o=!1;g.h(g.M9,g.Dv);g.k=g.M9.prototype;g.k.JL=function(){this.logger.debug("dispose");g.EJ(this.vu);G2T(this.oX);this.visibility.unsubscribe("visibilitystatechange",this.oX);Rhp(this);B8(this);g.rh.Yg(this.K9);this.dS();this.OS=null;g.DO(this.videoData);g.DO(this.JD);g.DO(this.HS);g.DO(this.e0);g.yj(this.P_L);this.U_=null;g.Dv.prototype.JL.call(this)}; g.k.nE=function(z,K,f,M,p){if(this.SV.B("html5_log_ad_playback_docid")){var t=this.Vh();if(t.qoe){t=t.qoe;var B=this.SV.Y1||"yt";g.ef(t,g.ZL(t.provider),"ad_playback",[z,K,f,p,B])}}else this.Vh().nE(z,K,f);this.B("html5_log_media_perf_info")&&this.Th("adloudness",{ld:M.toFixed(3),cpn:z})}; g.k.UA=function(){var z;return(z=this.loader)==null?void 0:z.UA()}; g.k.W$=function(){var z;return(z=this.loader)==null?void 0:z.W$()}; g.k.LG=function(){var z;return(z=this.loader)==null?void 0:z.LG()}; g.k.V8=function(){var z;return(z=this.loader)==null?void 0:z.V8()}; g.k.FS=function(){return this.videoData.FS()}; g.k.o1=function(){return this.B("html5_not_reset_media_source")&&!this.FS()&&!this.videoData.isLivePlayback&&g.Af(this.videoData)&&!this.SV.supportsGaplessShorts()}; g.k.QX=function(){this.videoData.G&&(this.videoData.yM=this.videoData.yM||this.G5.Of().UA(),this.videoData.aP=this.videoData.aP||this.G5.Of().W$());if(Slp(this.videoData)||!C5(this.videoData)){var z=this.videoData.errorDetail;this.HA(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),z,z,this.videoData.WV||void 0)}this.B("html5_generate_content_po_token")&&this.Ai();this.B("html5_enable_d6de4")&&this.ut()}; g.k.JN=function(){return this.rf}; g.k.Iq=function(){!this.Lq||this.Lq.CH();this.Lq=new g.mO(new qj(this.videoData,this.SV,this));this.SV.B("html5_ssap_logging_manager_cleanup")||(this.rf=new nH(this.SV,this,this.Lq))}; g.k.getVideoData=function(){return this.videoData}; g.k.Z=function(){return this.SV}; g.k.uK=function(){return this.i9.uK(this.OS)}; g.k.Vh=function(z){if(this.SV.B("html5_ssap_logging_manager_cleanup"))z=this.Lq;else if(z)a:{for(var K=this.rf,f=g.a(K.S.values()),M=f.next();!M.done;M=f.next())if(M=M.value,M.getVideoData().videoId===z){z=M;break a}z=K.Y}else z=this.rf.Vh();return z}; g.k.cC=function(){return this.visibility}; g.k.IK=function(){return this.mediaElement&&this.mediaElement.l2()?this.mediaElement.H1():null}; g.k.qL=function(){return this.mediaElement}; g.k.M_=function(){if(this.B("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.Z().W&&this.Z().houseBrandUserStatus&&this.Th("hbut",{status:this.Z().houseBrandUserStatus},!0);if(this.videoData.bl())return!0;this.HA("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.k.GK=function(z){(z=z===void 0?!1:z)||Vn(this.Vh());this.fO=z;!this.M_()||this.q0.Oc()?g.iY(this.SV)&&this.videoData.isLivePlayback&&this.q0.Oc()&&!this.q0.finished&&!this.fO&&this.FW():(this.q0.start(),z=this.Vh(),lG(z),z.qoe&&DjS(z.qoe),this.FW())}; g.k.FW=function(){if(this.videoData.isLoaded()){var z=this.JD;g.uY(z.pH.experiments,"html5_player_min_build_cl")>0&&g.uY(z.pH.experiments,"html5_player_min_build_cl")>764512846&&SgS(z,"oldplayer");EW5(this)}else this.videoData.tJ||this.videoData.Ri?this.fO&&g.iY(this.SV)&&this.videoData.isLivePlayback||(this.videoData.tJ?pap(this.videoData):(z=this.Vh(),z.qoe&&(z=z.qoe,kx(z,"protected"),z.provider.videoData.C?z.fZ():z.provider.videoData.subscribe("dataloaded",z.fZ,z)),zBW(this.videoData))):!this.videoData.loading&& this.WB&&Swg(this)}; g.k.xK=function(z){this.Z3=z;this.loader&&(Bqa(this.loader,new g.oF(z)),this.Th("sdai",{sdsstm:1}))}; g.k.Zb=function(){return null}; g.k.CE=function(z,K,f){var M;(M=this.loader)==null||M.CE(z,K,f)}; g.k.iB=zo(16);g.k.isFullscreen=function(){return this.visibility.isFullscreen()}; g.k.isBackground=function(){return this.visibility.isBackground()}; g.k.b4=function(){var z=this;this.logger.debug("Updating for format change");pz(this).then(function(){return fz(z)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.k.b7=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.GK();this.M_()&&!g.Z(this.playerState,128)&&(this.JA.Oc()||(this.JA.start(),this.videoData.tU?this.p6(yW(this.playerState,4)):this.p6(yW(yW(this.playerState,8),1))),uaq(this))}; g.k.zf=function(){return this.q0.finished}; g.k.sendAbandonmentPing=function(){g.Z(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.qX(!0),Rhp(this),g.rh.Yg(this.K9))}; g.k.BH=function(z,K){z=z===void 0?!0:z;(K===void 0||K)&&this.mediaElement&&this.mediaElement.pause();this.p6(z?new g.ex(14):new g.ex)}; g.k.uO=function(){this.Vh().R9()}; g.k.HA=function(z,K,f,M,p,t){this.logger.debug(function(){return"set player error: ec="+z+", detail="+p}); var B,v;g.C1(hTp,f)?B=f:f?v=f:B="GENERIC_WITHOUT_LINK";M=(M||"")+(";a6s."+kH());if(z==="auth"||z==="drm.auth"||z==="heartbeat.stop")f&&(M+=";r."+f.replaceAll(" ","_")),t&&(M+="sr."+t.replaceAll(" ","_"));K={errorCode:z,errorDetail:p,errorMessage:v||g.Xa[B]||"",hj:B,WV:t||"",uu:M,gB:K,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=z;tW(this,"dataloaderror");this.p6(Db(this.playerState,128,K));g.rh.Yg(this.K9);B8(this);this.ZM()}; g.k.A_=function(z){this.v9=this.v9.filter(function(K){return z!==K}); this.logger.debug(function(){return"set preroll ready for "+z}); this.JA.Oc()&&uaq(this)}; g.k.mu=function(){var z;(z=!!this.v9.length)||(z=this.mR.S.array[0],z=!!z&&z.start<=-0x8000000000000);return z}; g.k.EM=function(){return this.B8.EM()}; g.k.isPlaying=function(){return this.playerState.isPlaying()}; g.k.gZ=function(){return this.playerState.gZ()&&this.videoData.tU}; g.k.getPlayerState=function(){return this.playerState}; g.k.gs=function(z){var K;(K=this.loader)==null||K.gs(z)}; g.k.u7=function(z){var K;(K=this.loader)==null||K.u7(z)}; g.k.getPlayerType=function(){return this.playerType}; g.k.getPreferredQuality=function(){if(this.OS){var z=this.OS;z=z.videoData.gf.compose(z.videoData.K2);z=aR(z)}else z="auto";return z}; g.k.wU=zo(22);g.k.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.k.setMediaElement=function(z){this.logger.debug("set media element");if(this.mediaElement&&z.H1()===this.mediaElement.H1()&&(z.isView()||this.mediaElement.isView())){if(z.isView()||!this.mediaElement.isView())this.xD(),this.mediaElement=z,this.mediaElement.AL=this,Aia(this),this.B8.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.dS();if(!this.playerState.isError()){var K=km(this.playerState,512);g.Z(K,8)&&!g.Z(K,2)&&(K=yW(K,1));z.isView()&&(K=km(K,64));this.p6(K)}this.mediaElement= z;this.mediaElement.AL=this;!g.iY(this.SV)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);Aia(this);this.B8.setMediaElement(this.mediaElement);this.B("html5_prewarm_media_source")&&!this.JD.iq()&&j3a(this.mediaElement)}}; g.k.dS=function(z,K,f){z=z===void 0?!1:z;K=K===void 0?!1:K;f=f===void 0?!1:f;this.logger.debug("remove media element");if(this.mediaElement){var M=this.getCurrentTime();M>0&&(this.B8.T=M);this.B8.setMediaElement(null);!z&&this.o1()?gWW(this):this.P9(f);this.loader&&(Xy(this.loader),GT(this,K));this.kF.stop();if(this.mediaElement&&(!this.JA.Oc()&&!this.kI()||this.playerState.isError()||g.Z(this.playerState,2)||this.p6(yW(this.playerState,512)),this.mediaElement)){this.xD();if(z||!this.mediaElement.isView())this.hH.Vz("mesv_s"), this.mediaElement.stopVideo(),bP(this);this.mediaElement=this.mediaElement.AL=null}}}; g.k.playVideo=function(z,K){z=z===void 0?!1:z;K=K===void 0?!1:K;var f=this,M,p,t,B,v,I,G;return g.n(function(b){if(b.Y==1){f.logger.debug("start play video");var e=window.google_image_requests;e&&e.length>10&&(window.google_image_requests=e.slice(-10));if(g.Z(f.playerState,128))return b.return();if(f.JD.Dj())return f.publish("signatureexpired"),b.return();f.mediaElement&&Vn(f.Vh());f.b7();(g.Z(f.playerState,64)||z)&&f.p6(yW(f.playerState,8));return f.JA.finished&&f.mediaElement?f.OS||!f.jC?b.jV(2): g.l(b,f.jC,3):b.return()}if(b.Y!=2&&g.Z(f.playerState,128))return b.return();if(!f.videoData.T)return f.videoData.isLivePlayback&&!g.G0(f.SV.C,!0)?(M="html5.unsupportedlive",p=2):(M=f.videoData.FS()?"fmt.unplayable":"fmt.noneavailable",p=1),g.Al(Error("selectableFormats")),t=f.B("html5_log_fmt_unplaybable_trigger")?"trg.selectableFormats":"selectableFormats.1",f.HA(M,p,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",t),b.return();if(f.Lz()&&f.videoData.T.S)return f.logger.debug("rebuild playbackData for airplay"), b.return(pz(f));if(Ot(f))e=f.B8,y_(e.videoData)&&!e.isAtLiveHead(e.getCurrentTime())&&e.EM()&&e.AL.seekTo(Infinity,{v8:"seektimeline_peggedToLive",seekSource:34});else if(y_(f.videoData)&&(B=f.getCurrentTime()B;if(!v||!B){t&&v&&(M=Math.max(M,t));var I;t=qgu(K,(I=p.S)==null?void 0:I.videoInfos);I=K.AL.getPlaybackRate();I>1&&t&&(I=Cqg(K.SV.C,p.S.videoInfos,I),z.S!==0&& I=480;if(K.B("html5_exponential_memory_for_sticky")){G=K.SV.Gw;b=1;var e=e===void 0?!1:e;eSI(G,"sticky-lifetime");G.values["sticky-lifetime"]&&G.iY["sticky-lifetime"]||(G.values["sticky-lifetime"]=0,G.iY["sticky-lifetime"]=0);e&&mF(G,"sticky-lifetime")>.0625&&(b=G.iY["sticky-lifetime"]*2); G.values["sticky-lifetime"]+=1*Math.pow(2,G.S/b);G.iY["sticky-lifetime"]=b;G.J.start()}if(K.B("html5_perf_cap_override_sticky")){e=K.T;G=K.B("html5_perserve_av1_perf_cap");G=G===void 0?!1:G;if(G===void 0?0:G){b=TI();z=g.a(Object.keys(b));for(K=z.next();!K.done;K=z.next())K=K.value,K.indexOf("1")!==0&&delete b[K];g.sT("yt-player-performance-cap",b,2592E3)}else g.jp("yt-player-performance-cap");ZhW(G);if(G){G=g.a(jn.keys());for(b=G.next();!b.done;b=G.next())b=b.value,b.startsWith("1")||jn.delete(b); G=g.a(Nj.values());for(b=G.next();!b.done;b=G.next())b=b.value,b.startsWith("1")||Nj.delete(b);G=g.a(e.keys());for(b=G.next();!b.done;b=G.next())b=b.value,b.startsWith("1")||e.delete(b)}else jn.clear(),Nj.clear(),e.clear()}}}this.loader&&(e=this.loader,f=f||"",e.policy.S?F1(e.J.S,f):F1(e.S.C,f));this.sM()}; g.k.getUserPlaybackQualityPreference=function(){return this.videoData.T&&!this.videoData.T.S?aR(this.videoData.gf):hH[oe()]}; g.k.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.k.setUserAudio51Preference=function(z,K){this.getUserAudio51Preference()!==z&&(this.Th("toggle51",{pref:z}),g.sT("yt-player-audio51",z,K?31536E3:2592E3),this.b4())}; g.k.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.k.setProximaLatencyPreference=function(z){var K=this.getProximaLatencyPreference();this.Th("proxima",{pref:z});g.sT("yt-player-proxima-pref",z,31536E3);K!==z&&(z=this.B8,z.rE=!0,z.AL.seekTo(Infinity,{v8:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.k.getProximaLatencyPreference=function(){var z;return(z=Cg())!=null?z:0}; g.k.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.k.Ai=function(){this.videoData.videoId?this.G5.Ai(this.videoData):this.Th("povid",{})}; g.k.ut=function(){this.videoData.videoId?this.G5.ut(this.videoData):this.Th("piavid",{})}; g.k.sM=function(){if(!this.CH()&&!g.Z(this.playerState,128)&&this.videoData.T){if(this.videoData.T.S)$w(this);else{var z=Iy(this),K=this.videoData;a:{var f=this.videoData.QW;if(z.S){for(var M=g.a(f),p=M.next();!p.done;p=M.next()){p=p.value;var t=p.getInfo(),B=g.rI[t.video.quality];if((!z.T||t.video.quality!=="auto")&&B<=z.S){f=p;break a}}f=f[f.length-1]}else f=f[0]}K.b_=f;mNa(this,z.reason,XuI(this,this.videoData.b_))}if(this.B("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.B8.D= !1,this.playVideo()}}; g.k.nR=function(z,K){if(this.CH()||g.Z(this.playerState,128))return!1;var f,M=!((f=this.videoData.T)==null||!f.S);f=M&&K?this.getCurrentTime()-this.MB():NaN;if(this.SV.experiments.sf("html5_record_audio_format_intent")){var p=this.Vh();if(p.qoe){p=p.qoe;var t=[z.b8.id,isNaN(f)?"m":"t"];g.ef(p,g.ZL(p.provider),"afi",t)}}if(M)return K&&(M=X8S(this.B8),this.Th("aswh",{id:z.id,xtags:z.xtags,bh:M.toFixed(3)})),this.loader.setAudioTrack(z,f,K),!0;if(VES(this)){a:{K=this.mediaElement.audioTracks();for(M= 0;M=0?z:this.getCurrentTime()}; g.k.ll=function(){var z;return((z=this.videoData.S)==null?0:z.ll)?this.videoData.S.ll(this.getCurrentTime()-this.MB()):this.mediaElement&&(z=this.mediaElement.jc())&&(z=z.getTime(),!isNaN(z))?z/1E3+this.getCurrentTime():NaN}; g.k.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.MB():this.eU()?this.eU():0}; g.k.Mh=function(){var z=new p8u;if(this.loader){var K=this.SV.schedule,f=this.SV.i8();f=f===void 0?!1:f;z.iO=K.nH;z.Ms=K.Xc;z.bandwidthEstimate=QT(K);if(f){f=(K.D.k9()*1E3).toFixed();var M=(K.eV.k9()*1E3).toFixed(),p=Ei(K).toFixed(2),t=((K.G.k9()||0)*1E9).toFixed(2),B=K.T.k9().toFixed(0),v=K.Bx.k9().toFixed(0),I=K.N.percentile(.5).toFixed(2),G=K.N.percentile(.92).toFixed(2),b=K.N.percentile(.96).toFixed(2),e=K.N.percentile(.98).toFixed(2);K.S?K.S.reset():K.S=new D5;K.S.add(K.Hx);K.S.add(K.interruptions.length); for(var w=0,D=K.interruptions.length-1;D>=0;D--){var y=K.interruptions[D];K.S.add(y-w);w=y}w=0;for(D=K.J.length-1;D>=0;D--){y=K.J[D];var R=y.stamp/36E5;K.S.add(R-w);w=R;K.S.add(y.net/1E3);K.S.add(y.max)}K=K.S.yv();z.S={ttr:f,ttm:M,d:p,st:t,bw:B,abw:v,v50:I,v92:G,v96:b,v98:e,"int":K}}tzW(this.loader,z)}else this.mediaElement&&(z.fk=I4(this.mediaElement));z.iO=this.iO;z.Ms=this.Ms;z.T=this.isAtLiveHead()&&this.isPlaying()?hho(this):NaN;return z}; g.k.FO=function(z,K){this.Ms+=z;this.iO+=K}; g.k.qq=function(){return this.mediaElement?g.V_(this.videoData)?1:n5(this.videoData)?this.isAtLiveHead()||this.EM()?1:this.B8.qq():this.mediaElement.qq():0}; g.k.Da=function(){var z=this.xL,K=Ut(z,"bandwidth"),f=Ut(z,"bufferhealth"),M=Ut(z,"livelatency"),p=Ut(z,"networkactivity"),t=TS(z,"bandwidth"),B=TS(z,"bufferhealth"),v=TS(z,"livelatency");z=TS(z,"networkactivity");var I=this.tT(),G=I.droppedVideoFrames;I=I.totalVideoFrames;var b=this.getCurrentTime();if(this.Rc){var e="IT/"+(this.Rc.S.getInfo()+"/"+aR(this.lT()));e+="/"+this.Rc.getInfo()}else e="";var w=this.isGapless(),D=this.Ao(),y=this.D9(),R=g.v8(this),S=this.getPlayerState(),E=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var L=0;var q="";if(this.Z3){if(this.Z3.d_){q="D,";break a}L=this.Z3.cV;q=this.Z3.Hh.substring(0,4)}L>0?(L="AD"+L+", ",q&&(L+=q+", "),q=L):q=""}return{wz:t,bA:B,currentTime:b,TJ:e,droppedVideoFrames:G,isGapless:w,Ao:D,d1:y,yb:K,aI:f,SW:M,Ak:p,Tt:v,Z8:z,gV:R,playerState:S,t3:E,Gd:q,totalVideoFrames:I}}; g.k.S3=function(z){var K={};if(z===void 0?0:z){Object.assign(K,this.Vh().S3());this.mediaElement&&(Object.assign(K,this.mediaElement.S3()),z=this.tT(),K.dvf=z.droppedVideoFrames,K.tvf=z.totalVideoFrames);this.loader&&Object.assign(K,this.loader.S3());this.Rc&&(K.drm=JSON.stringify(this.Rc.S3()));K.state=this.playerState.state.toString(16);g.Z(this.playerState,128)&&(K.debug_error=JSON.stringify(this.playerState.Pj));this.mu()&&(K.prerolls=this.v9.join(","));this.videoData.RF&&(K.ismb=this.videoData.RF); this.videoData.latencyClass!=="UNKNOWN"&&(K.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(K.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)K.is_mosaic=1;this.videoData.cotn&&(K.is_offline=1,K.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(K.playerResponseCpn=this.videoData.playerResponseCpn);this.G5.isOrchestrationLeader()&&(K.leader=1);this.videoData.isLivePlayback&& (this.videoData.S&&J5(this.videoData.S)&&(K.segduration=J5(this.videoData.S)),z=this.B8,K.lat=z.G?LYS(z.G.J):0,K.liveutcstart=this.videoData.liveUtcStartSeconds);K.relative_loudness=this.videoData.SU.toFixed(3);if(z=g.v8(this))K.optimal_format=z.video.qualityLabel;K.user_qual=oe();K.release_version=N[62]}K.debug_videoId=this.videoData.videoId;return K}; g.k.addCueRange=function(z){this.tA([z])}; g.k.removeCueRange=function(z){this.mR.gL([z])}; g.k.yr=function(){this.mR.sync()}; g.k.Ib=function(z,K){return this.mR.Ib(z,K)}; g.k.tA=function(z,K){this.mR.St(z,K)}; g.k.V4=function(z){this.mR.gL(z)}; g.k.B7=function(){return this.mR.B7()||[]}; g.k.R7=function(){return this.Tf}; g.k.Lz=function(){return this.visibility.Lz()}; g.k.pG=function(){this.mediaElement&&this.mediaElement.pG()}; g.k.GE1=function(){tW(this)}; g.k.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.k.xD=function(){g.g0(this.Mi)}; g.k.i6c=function(){this.C6();this.publish("onLoadProgress",this.qq())}; g.k.FC=function(z){var K=z.target.yc();if(this.mediaElement&&this.mediaElement.yc()&&this.mediaElement.yc()===K){C$u(this,z.type);switch(z.type){case "error":var f=bq(this.mediaElement)||"",M=this.mediaElement.qV();if(f==="capability.changed"){this.B("html5_restart_on_capability_change")?(this.Th("capchg",{msg:M}),this.bW(!0)):pz(this);return}if(this.mediaElement.hasError()&&(M={msg:M},this.B("html5_log_fmt_unplaybable_trigger")&&(M.trg="elementevt"),k2u(this.JD,f,M)))return;if(this.isBackground()&& this.mediaElement.Ko()===4){this.ZM();N9(this,"unplayable");return}break;case "durationchange":f=this.mediaElement.getDuration();isFinite(f)&&(!this.u_||f>0)&&f!==1&&this.uy(f);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());eLg(this.mR);this.Vh().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":UNg(this);this.publish("onLoadedMetadata");Yw8(this);f=this.ll();this.videoData.XR&&(this.videoData.XR=f);break;case "loadstart":Yw8(this); break;case "progress":case "suspend":this.xU.z4();break;case "playing":this.hH.Vz("plev");this.XJ&&!Ot(this)&&(this.XJ=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{v8:"videoplayer_onPlaying"})));break;case "timeupdate":f=this.mediaElement&&!this.mediaElement.getCurrentTime();M=this.mediaElement&&this.mediaElement.S_()===0;if(f&&(!this.FQ||M))return;this.FQ=this.FQ||!!this.mediaElement.getCurrentTime();j58(this);this.C6();if(!this.mediaElement||this.mediaElement.yc()!== K)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.zS().length>0&&this.mediaElement.MV().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.B("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.S_()>2||!this.mediaElement.isSeeking()&&kr(this.mediaElement.MV(),this.mediaElement.getCurrentTime()))&&(f=this.mediaElement.S3(),f.bh=I4(this.mediaElement).toFixed(3), this.Th("uwe",f));break;case "resize":UNg(this);this.videoData.Y&&this.videoData.Y.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.sL&&g.Z(this.playerState,8)&&!g.Z(this.playerState,1024)&&this.getCurrentTime()===0&&g.PJ){N9(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.yc()===K){zhd(this.B8,z);this.publish("videoelementevent",z);K=this.playerState;M=this.XE;var p=this.mediaElement;f=this.videoData.clientPlaybackNonce; if(!g.Z(K,128)){var t=K.state;p=p?p:z.target;var B=p.getCurrentTime();if(!g.Z(K,64)||z.type!=="ended"&&z.type!=="pause"){var v=p.getDuration();v=p.isEnded()||B>1&&Math.abs(B-v)<1.1;var I=z.type==="pause"&&p.isEnded();B=z.type==="ended"||z.type==="waiting"||z.type==="timeupdate"&&!g.Z(K,4)&&!Jx(M,B);if(I||v&&B)p.A4()>0&&p.yc()&&(t=14);else switch(z.type){case "error":bq(p)&&(t|=128);break;case "pause":g.Z(K,256)?(t^=256)||(t=64):g.Z(K,32)||g.Z(K,2)||g.Z(K,4)||(t=4,g.Z(K,1)&&g.Z(K,8)&&(t|=1));break; case "playing":B=t;t=(t|8)&-1093;B&4?(t|=1,wf(M,p,!0)):Jx(M,p.getCurrentTime())&&(t&=-2);g.Z(K,1)&&wf(M,p)&&(t|=1);break;case "seeking":t|=16;g.Z(K,8)&&(t|=1);t&=-3;break;case "seeked":t&=-17;wf(M,p,!0);break;case "waiting":g.Z(K,2)||(t|=1);wf(M,p);break;case "timeupdate":B=g.Z(K,16),v=g.Z(K,4),(g.Z(K,8)||B)&&!v&&Jx(M,p.getCurrentTime())&&(t=8),wf(M,p)&&(t|=1)}}M=t;t=null;M&128&&(t=z.target,p=bq(t),B=1,p?(p==="capability.changed"&&(B=2),v="GENERIC_WITHOUT_LINK",I=t.S3(),I.mediaElem="1",/AUDIO_RENDERER/.test(t.qV())&& (v="HTML5_AUDIO_RENDERER_ERROR"),t={errorCode:p,errorMessage:g.Xa[v]||"",hj:v,uu:Wf(I),gB:B,cpn:K.Pj?K.Pj.cpn:""}):t=null,t&&(t.cpn=f));K=Db(K,M,t)}!g.Z(this.playerState,1)&&g.Z(K,1)&&oWS(this,"evt"+z.type);this.p6(K)}}}; g.k.Dcq=function(z){z=z.S.availability==="available";z!==this.Tf&&(this.Tf=z,this.publish("airplayavailabilitychange"))}; g.k.uca=function(){var z=(0,g.X)(),K=this.mediaElement.Lz();this.Th("airplay",{ia:K});!K&&!isNaN(this.RJ)&&z-this.RJ<2E3||(this.RJ=z,K!==this.Lz()&&(z=this.visibility,z.S!==K&&(z.S=K,z.oX()),this.Th("airplay",{rbld:K}),this.b4()),this.publish("airplayactivechange"))}; g.k.CO=function(z){if(this.loader){var K=this.loader,f=K.T,M=K.getCurrentTime(),p=Date.now()-f.N;f.N=NaN;f.Th("sdai",{adfetchdone:z,d:p});z&&!isNaN(f.G)&&f.Y!==3&&g_(f.loader,M,f.G,f.W);f.policy.Y?f.C=NaN:f.J=NaN;Jp(f,4,f.Y===3?"adfps":"adf");Xy(K)}}; g.k.bz=function(){g.EJ(this.vu);this.kF.stop();this.videoData.Bx=!0;this.SV.Bg=!0;this.SV.LI=0;var z=this.JD;if(z.videoData.Y){var K=z.pH.C,f=z.videoData.Y.Ra;K.J.has(f)&&(K.J.delete(f),K.Y=!0)}z.S.stop();this.f5();g.Z(this.playerState,8)&&this.p6(km(this.playerState,65));this.fO=!1;Tv8(this.Vh());g.$4(this.HS);this.publish("playbackstarted");(z=g.CW("yt.scheduler.instance.clearPriorityThreshold"))?z():Ng(0)}; g.k.f5=function(){var z=this.G5.Y8(),K={},f={};!Cp("pbs",this.hH.timerName)&&iz.measure&&iz.getEntriesByName&&(iz.getEntriesByName("mark_nr")[0]?pLI("mark_nr"):pLI());z.videoId&&(K.videoId=z.videoId);z.clientPlaybackNonce&&!this.B("web_player_early_cpn")&&(K.clientPlaybackNonce=z.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(f.isPausedOnLoad=!0);f.itag=z.Y?Number(z.Y.itag):-1;z.Yx&&(f.preloadType=String(this.pF?2:1));K.liveStreamMode=FN_[Hw(z)];K.playerInfo=f;this.hH.infoGel(K); if(this.loader){z=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(z.T&&(K=window.performance.getEntriesByName(z.T),K.length&&(K=K[0],z.tick("vri",K.fetchStart),z.tick("vdns",K.domainLookupEnd),z.tick("vreq",K.requestStart),z.tick("vrc",K.responseEnd))),z.Y&&(K=window.performance.getEntriesByName(z.Y),K.length&&(K=K[0],z.tick("ari",K.fetchStart),z.tick("adns",K.domainLookupEnd),z.tick("areq",K.requestStart),z.tick("arc",K.responseEnd))));z=z.ticks;for(var M in z)z.hasOwnProperty(M)&& this.hH.tick(M,z[M])}}; g.k.C6=function(z){var K=this;z=z===void 0?!1:z;if(this.mediaElement&&this.videoData){x9I(this.B8,this.isPlaying());var f=this.getCurrentTime();!this.loader||g.Z(this.playerState,4)&&g.V_(this.videoData)||g.Z(this.playerState,32)&&bv(this.videoData)||GG8(this.loader,f);f>5&&(this.B8.T=f);var M=g.BJ();M?g.rh.Yg(this.K9):g.LJ(this.K9);var p=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!p||UM(this.videoData))&&!g.Z(this.playerState,128)){var t=function(){if(K.mediaElement&&!g.Z(K.playerState, 128)){K.SV.i8()&&C$u(K,"pfx");var B=K.getCurrentTime();K.B("html5_buffer_underrun_transition_fix")&&(B-=K.MB());var v=I4(K.mediaElement),I=g.Z(K.playerState,8),G=Jx(K.XE,B),b=rPg(K.XE,B,(0,g.X)(),v);I&&G?K.p6(km(K.playerState,1)):I&&b?(I=K.getDuration(),G=y_(K.videoData),I&&Math.abs(I-B)<1.1?(K.Th("setended",{ct:B,bh:v,dur:I,live:G}),K.mediaElement.FP()?(K.logger.debug("seek to 0 because of looping"),K.seekTo(0,{v8:"videoplayer_loop",seekSource:37})):K.BH()):(K.playerState.isBuffering()||oWS(K,"progress_fix"), K.p6(yW(K.playerState,1)))):(I&&!G&&!b&&B>0&&(I=(Date.now()-K.mT)/1E3,G=K.getDuration(),B>G-1&&K.Th("misspg",{t:B.toFixed(2),d:G.toFixed(2),r:I.toFixed(2),bh:v.toFixed(2)})),K.playerState.isPaused()&&K.playerState.isBuffering()&&I4(K.mediaElement)>5&&K.p6(km(K.playerState,1)));K.C6()}}; this.mediaElement.zS().length===0?this.K9=M?g.rh.DD(t,100):g.Sg(t,100):this.K9=M?g.rh.DD(t,500):g.Sg(t,500)}this.videoData.ra=f;!z&&this.isPlaying()&&xNW(this);crg(this.i9,this.OS,this.qL(),this.isBackground())&&$w(this);this.publish("progresssync",z);p&&UM(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.k.XF=function(){this.HA("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.k.D9=function(){return this.Vh().D9()}; g.k.fL=function(){return this.loader?this.loader.fL():QT(this.SV.schedule,!0)}; g.k.p6=function(z){if(!g.a4(this.playerState,z)){this.logger.debug(function(){return"Setting state "+z.toString()}); var K=new g.S$(z,this.playerState);this.playerState=z;T15(this);var f=!this.C_.length;this.C_.push(K);var M=this.mediaElement&&this.mediaElement.isSeeking();M=K.oldState.state===8&&!M;g.Ld(K,1)&&M&&g.Z(this.playerState,8)&&!g.Z(this.playerState,64)&&this.loader&&(n3S(this.loader),this.mediaElement&&I4(this.mediaElement)>=5&&iop(this.i9,this.OS)&&$w(this));(M=g.uY(this.SV.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.Z(z,1)&&(g.Z(z,8)||g.Z(z,16))?this.S0.start(M):this.S0.stop();(us(K, 8)<0||g.Ld(K,1024))&&this.kF.stop();!g.Ld(K,8)||this.videoData.Bx||g.Z(K.state,1024)||this.kF.start();g.Z(K.state,8)&&us(K,16)<0&&!g.Z(K.state,32)&&!g.Z(K.state,2)&&this.playVideo();g.Z(K.state,2)&&n5(this.videoData)&&(this.uy(this.getCurrentTime()),this.C6(!0));g.Ld(K,2)&&(this.qX(!0),this.SV.i8()&&this.B("html5_sabr_parse_live_metadata_playback_boundaries")&&bv(this.videoData)&&this.videoData.S&&(M={minst:""+this.videoData.S.Bg,cminst:""+(this.videoData.S.L6()+this.MB()),maxst:""+this.videoData.S.RL, hts:""+this.videoData.S.l_,cmaxst:""+(this.videoData.S.eU()+this.MB())},this.Th("sabrSeekableBoundaries",M)));g.Ld(K,128)&&this.ZM();this.videoData.S&&this.videoData.isLivePlayback&&!this.Yh&&(us(K,8)<0?mBo(this.videoData.S):g.Ld(K,8)&&this.videoData.S.resume());YRu(this.B8,K);zL5(this.Vh(),K);if(f&&!this.CH())try{for(var p=g.a(this.C_),t=p.next();!t.done;t=p.next()){var B=t.value;w8v(this.mR,B);this.publish("statechange",B)}}finally{this.C_.length=0}}}; g.k.vk=function(){this.hH.tick("qoes")}; g.k.Pw=function(){this.B8.Pw()}; g.k.tZ=function(z,K,f,M){a:{var p=this.JD;M=M===void 0?"LICENSE":M;f=f.substring(0,256);var t=gI(K);z==="drm.keyerror"&&this.Rc&&this.Rc.Y.keys.length>1&&p.J<96&&(z="drm.sessionlimitexhausted",t=!1);var B=p.pH.experiments.sf("html5_retry_on_drm_unavailable"),v=p.pH.experiments.sf("html5_retry_on_drm_key_error"),I=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(B&&z==="drm.unavailable"||v&&z==="drm.keyerror"&&!f.match(I))p.yW("qoe.restart",{retryOnDrmError:1,e:z,detail:f}),p.AL.bW(!0);else{if(t)if(p.videoData.Y&& p.videoData.Y.video.isHdr())Lbu(p,z);else{if(p.AL.HA(z,K,M,f),w0o(p,{detail:f}))break a}else p.yW(z,{detail:f});z==="drm.sessionlimitexhausted"&&(p.Th("retrydrm",{sessionLimitExhausted:1}),p.J++,ZK5(p.AL))}}}; g.k.I2x=function(){var z=this,K=g.uY(this.SV.experiments,"html5_license_constraint_delay"),f=BK();K&&f?(K=new g.Kl(function(){z.sM();tW(z)},K),g.d(this,K),K.start()):(this.sM(),tW(this))}; g.k.qx=function(z){this.publish("heartbeatparams",z)}; g.k.h1=function(z){this.Th("keystatuses",AIp(z));var K="auto",f=!1;this.videoData.Y&&(K=this.videoData.Y.video.quality,f=this.videoData.Y.video.isHdr());a:{switch(K){case "highres":case "hd2880":K="UHD2";break;case "hd2160":case "hd1440":K="UHD1";break;case "hd1080":case "hd720":K="HD";break;case "large":case "medium":case "small":case "light":case "tiny":K="SD";break;default:K="";break a}f&&(K+="HDR")}K=KH(z)?$x(z,K):z.J.includes(K);if(this.B("html5_enable_vp9_fairplay")){if(f)if(z.G){var M;if((M= this.Rc)==null?0:TO(M.S))if((f=this.Rc)==null)f=0;else{for(var p=M=void 0,t=g.a(f.Y.values()),B=t.next();!B.done;B=t.next())B=B.value,M||(M=Yy8(B,"SD")),p||(p=Yy8(B,"AUDIO"));f.Je({sd:M,audio:p});f=M==="output-restricted"||p==="output-restricted"}else f=!K;if(f){this.Th("drm",{dshdr:1});Lbu(this.JD);return}}else{this.videoData.q$||(this.videoData.q$=!0,this.Th("drm",{dphdr:1}),this.bW(!0));return}var v;if((v=this.Rc)==null?0:TO(v.S))return}else if(v=z.G&&K,f&&!v){Lbu(this.JD);return}K||$x(z,"AUDIO")&& $x(z,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),z=AIp(z),this.CC?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.B("html5_report_fatal_drm_restricted_error_killswitch")||this.HA("drm.keyerror",2,void 0,"info."+z)):(this.CC=!0,this.yW(new Jq("qoe.restart",Object.assign({},{retrydrm:1},z))),$w(this),ZK5(this)))}; g.k.C8h=function(){if(!this.videoData.Bx&&this.mediaElement&&!this.isBackground()){var z="0";this.mediaElement.S_()>0&&I4(this.mediaElement)>=5&&this.videoData.T&&this.videoData.T.S&&(this.p6(yW(this.playerState,1)),oWS(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),z="1");T15(this);var K=this.videoData.T;z={restartmsg:z,mfmt:!Bw(this.videoData),mdrm:!(!(K&&K.videoInfos&&K.videoInfos.length&&K.videoInfos[0].UW)||this.Rc),mfmtinfo:!this.videoData.Y,prerolls:this.mu()?this.v9.join(","): "0"};if(this.Rc){K=this.Rc;if(K.Y.size<=0){var f="ns;";K.N||(f+="nr;");K=f+="ql."+K.T.length}else K=AIp(K.Y.values().next().value),K=Wf(K);z.drmp=K}var M;Object.assign(z,((M=this.loader)==null?void 0:M.S3())||{});var p;Object.assign(z,((p=this.mediaElement)==null?void 0:p.S3())||{});this.Vh().yW("qoe.start15s",Wf(z));this.publish("loadsofttimeout")}}; g.k.uy=function(z){this.videoData.lengthSeconds!==z&&(this.videoData.lengthSeconds=z,tW(this))}; g.k.qX=function(z,K){var f=this;z=z===void 0?!1:z;if(!this.sN)if(Cp("att_s","player_att")||UG("att_s",void 0,"player_att"),this.B("use_rta_for_player"))(function(){var p,t,B,v;return g.n(function(I){switch(I.Y){case 1:if(!(p=z)){I.jV(2);break}return g.l(I,g.WlW(),3);case 3:p=!I.S;case 2:if(p)return I.return();g.Sq(I,4);t=fNS(f.Vh());if(!t)throw Error();B={};return g.l(I,g.nhq((B.cpn=f.videoData.clientPlaybackNonce,B.encryptedVideoId=f.videoData.videoId||"",B),3E4),6);case 6:v=I.S;if(f.sN)throw Error(); if(!v.challenge)throw g.Al(Error("Not sending attestation ping; no attestation challenge string")),Error();f.sN=!0;var G=[v.challenge];v.error?G.push("r1c="+v.error):v.webResponse&&G.push("r1a="+v.webResponse);var b;((b=v.adblockReporting)==null?void 0:b.reportingStatus)!==void 0&&G.push("r6a="+v.adblockReporting.reportingStatus);var e;((e=v.adblockReporting)==null?void 0:e.broadSpectrumDetectionResult)!==void 0&&G.push("r6b="+v.adblockReporting.broadSpectrumDetectionResult);t(G.join("&"));UG("att_f", void 0,"player_att");g.Eu(I,0);break;case 4:g.QI(I),UG("att_e",void 0,"player_att"),g.Rv(I)}})})().then(function(){K==null||K()}); else{var M=new g.AKa(this.videoData);if("c1a"in M.z7&&!g.x$.isInitialized()){UG("att_wb",void 0,"player_att");this.j0===2&&Math.random()<.01&&g.Al(Error("Botguard not available after 2 attempts"));if(z)return;if(this.j0<5){g.$4(this.e0);this.j0++;return}}(M=g.jfu(M))?(UG("att_f",void 0,"player_att"),$9I(this.Vh(),M),this.sN=!0):UG("att_e",void 0,"player_att")}}; g.k.HW=function(z){z=z===void 0?!1:z;return y_(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.EM()||g.V_(this.videoData))?this.getCurrentTime():this.eU(z)}; g.k.BX=function(){return this.L6()}; g.k.eU=function(z){return this.B8.eU(z===void 0?!1:z)}; g.k.L6=function(){return this.B8.L6()}; g.k.MB=function(){return this.B8?this.B8.MB():0}; g.k.getStreamTimeOffset=function(){return this.B8?this.B8.getStreamTimeOffset():0}; g.k.xg=function(){var z=0;this.SV.B("web_player_ss_media_time_offset")&&(z=this.getStreamTimeOffset()===0?this.MB():this.getStreamTimeOffset());return z}; g.k.setPlaybackRate=function(z){var K;this.playbackRate!==z&&qgu(this.i9,(K=this.videoData.T)==null?void 0:K.videoInfos)&&(this.playbackRate=z,$w(this));this.playbackRate=z;this.mediaElement&&this.mediaElement.setPlaybackRate(z)}; g.k.getPlaybackRate=function(){return this.playbackRate}; g.k.getPlaybackQuality=function(){var z="unknown";if(this.videoData.Y&&(z=this.videoData.Y.video.quality,z==="auto"&&this.mediaElement)){var K=this.IK();K&&K.videoHeight>0&&(z=Oq(K.videoWidth,K.videoHeight))}return z}; g.k.isHdr=function(){return!!(this.videoData.Y&&this.videoData.Y.video&&this.videoData.Y.video.isHdr())}; g.k.sendVideoStatsEngageEvent=function(z,K){var f=this.Vh();f.S?(f=Et(f.S,"engage"),f.nH=z,f.send(K)):K&&K()}; g.k.qZ=function(z){return this.Vh().qZ(z)}; g.k.isAtLiveHead=function(z,K){K=K===void 0?!1:K;return y_(this.videoData)&&(this.lx||K)?this.B8.isAtLiveHead(z):!1}; g.k.dL=function(){var z=this.eU(),K=this.getCurrentTime(),f;(f=!y_(this.videoData))||(f=this.B8,f=!(f.S&&f.S.T));return f||this.EM()||isNaN(z)||isNaN(K)?0:Math.max(0,z-K)}; g.k.yI=function(z){(this.lx=z)||this.kF.stop();this.videoData.S&&(z?this.videoData.S.resume():mBo(this.videoData.S));if(this.loader){var K=this.videoData.B("html5_disable_preload_for_ssdai_with_preroll")&&this.kI()&&this.videoData.isLivePlayback;z&&!K?this.loader.resume():GT(this,!0)}g.Z(this.playerState,2)||z?g.Z(this.playerState,512)&&z&&this.p6(km(this.playerState,512)):this.p6(yW(this.playerState,512));K=this.Vh();K.qoe&&(K=K.qoe,g.ef(K,g.ZL(K.provider),"stream",[z?"A":"I"]))}; g.k.Mp=function(z){z={n:z.name,m:z.message};this.Vh().yW("player.exception",Wf(z))}; g.k.sT=zo(28);g.k.KJ=zo(57);g.k.g8=function(z){this.Vh().g8(z)}; g.k.f9=function(z){this.Vh().f9(z)}; g.k.Mm=function(z){this.Vh().Mm(z)}; g.k.uW=zo(34);g.k.uI=zo(40);g.k.KU=function(z){this.Vh().KU(z)}; g.k.qp=function(){this.Th("hidden",{},!0)}; g.k.tT=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.k.Cq=function(){return this.loader?this.loader.Cq():!0}; g.k.setLoop=function(z){this.loop=z;this.mediaElement&&!g.iY(this.SV)&&this.mediaElement.setLoop(z)}; g.k.FP=function(){return this.mediaElement&&!g.iY(this.SV)?this.mediaElement.FP():this.loop}; g.k.Km=function(z){this.Th("timestamp",{o:z.toString()});this.B8.Km(z)}; g.k.bP=function(z){this.hH.tick(z)}; g.k.o5=function(z){return this.hH.o5(z)}; g.k.Vz=function(z){this.hH.Vz(z)}; g.k.Th=function(z,K,f){f=f===void 0?!1:f;this.Vh().Th(z,K,f)}; g.k.Hs=function(z,K,f){f=f===void 0?!1:f;this.Vh().Th(z,K,f)}; g.k.yW=function(z){this.Vh().yW(z.errorCode,Wf(z.details));z=z.errorCode;if(this.videoData.isLivePlayback&&(z==="qoe.longrebuffer"||z==="qoe.slowseek")||z==="qoe.restart"){z=this.loader?FjI(this.loader.videoTrack):{};var K,f;this.Th("lasoe",Object.assign(this.loader?FjI(this.loader.audioTrack):{},(K=this.u_)==null?void 0:(f=K.S)==null?void 0:f.y$()));var M,p;this.Th("lvsoe",Object.assign(z,(M=this.u_)==null?void 0:(p=M.Y)==null?void 0:p.y$()))}}; g.k.WH=function(z,K,f){this.Vh().WH(z,K,f)}; g.k.vH=function(z,K,f,M,p,t,B,v){var I;if((I=this.videoData.S)!=null&&I.isLive){var G=K.playerType===2?K:z,b=z.videoData.videoId,e=K.videoData.videoId;if(b&&e){I=this.Vh();if(I.qoe){var w=I.qoe,D=z.cpn,y=K.cpn,R=G.videoData.K3,S=w.provider.videoData.clientPlaybackNonce,E=w.provider.videoData.videoId,L=y!==S&&e!==E;S=D!==S&&b!==E;w.reportStats();w.adCpn&&w.adCpn!==D||(w.adCpn=S?D:"",w.OV=S?b:"",w.adFormat=S?R:void 0,ac(w,2,t?4:p?2:0,y,e,M),w.reportStats(),w.adCpn=L?y:"",w.OV=L?e:"",w.adFormat=L?R: void 0,ac(w,2,t?5:p?3:1,D,b,f),w.reportStats())}f=z.cpn;if(I.T.has(f)){if(p=I.T.get(f),Qn(p,!0).send(),H3(p),f!==I.provider.videoData.clientPlaybackNonce){xjI(p);var q;(q=I.S)==null||scI(q);I.T.delete(f)}}else I.v7=I.provider.videoData.clientPlaybackNonce,I.v7&&I.S&&(I.T.set(I.v7,I.S),Qn(I.S).send(),H3(I.S));q=K.cpn;G=G.videoData;M-=this.xg();if(I.T.has(q)){M=I.T.get(q);var V=M.T&&isNaN(M.C)?P3(M):NaN;M=X3S(M,!1);isNaN(V)||(M.G=V);M.send()}else M=MdI(I,I.provider,G,M),I.T.set(q,M),FOW(M,new g.S$(yW(new g.ex, 8),new g.ex)),cxp(M),(V=I.S)==null||H3(V);I.v7=q;if(this.B("html5_unify_csi_server_stitched_transition_logging")){if(I=this.hH,V=K.cpn,M=this.videoData.clientPlaybackNonce,K=K.videoData,z=(z.cpn===M?"video":"ad")+"_to_"+(V===M?"video":"ad"),z!=="video_to_ad"){M=z==="ad_to_video"?void 0:K;G=M==null?void 0:M.Gl;q={};if(K==null?0:K.W)q.cttAuthInfo={token:K.W,videoId:K.videoId};B&&(q.startTime=B);oV(z,q);var c,O,x;B={targetVideoId:(c=K==null?void 0:K.videoId)!=null?c:"empty_video",targetCpn:V,adVideoId:(O= M==null?void 0:M.videoId)!=null?O:"empty_video",adClientPlaybackNonce:(x=G==null?void 0:G.cpn)!=null?x:M==null?void 0:M.clientPlaybackNonce};G&&(B.adBreakType=G.adBreakType,B.adType=G.adType);g.ZE(B,z);Dd(I,v,z)}}else c=this.hH,x=this.videoData.clientPlaybackNonce,O=K.videoData,x=(z.cpn===x?"video":"ad")+"_to_"+(K.cpn===x?"video":"ad"),z={},O.W&&(z.cttAuthInfo={token:O.W,videoId:O.videoId}),B&&(z.startTime=B),oV(x,z),g.ZE({targetVideoId:O.videoId,targetCpn:K.cpn,isSsdai:!0},x),c.SV.B("html5_enable_ssdai_transition_with_only_enter_cuerange")? B||Dd(c,v,x):Dd(c,v,x)}}else this.logger.S(360717806,"SSTEvent for nonSS")}; g.k.gw=function(){var z=this.G5,K=z.fC;z.fC=[];return K}; g.k.Jj=function(z){this.videoData.Ls=!0;this.yW(new Jq("sabr.fallback",z));this.bW(!0)}; g.k.Bv=function(z,K){this.videoData.b6=!0;if(K===void 0||K)this.yW(new Jq("qoe.restart",z)),this.bW(!0);this.videoData.Fr()&&this.B("html5_reload_caption_on_ssdai_fallback")&&this.G5.Q4()}; g.k.O$=function(z){this.Th("sdai",{aftimeout:z});this.yW(new Jq("ad.fetchtimeout",{timeout:z}))}; g.k.QC=function(z,K){this.Th("timelineerror",z);z=new Jq("dai.timelineerror",z);K?this.HA("dai.timelineerror",1,"RETRYABLE_ERROR",Wf(z.details)):this.yW(z)}; g.k.j_=function(){return lG(this.Vh())}; g.k.getPlayerSize=function(){return this.M5.getPlayerSize()}; g.k.ox=function(){return this.M5.ox()}; g.k.Rx=function(){return this.hH}; g.k.PX=function(){return this.G5.PX()}; g.k.getVolume=function(){return this.G5.getVolume()}; g.k.qP=function(){return this.G5.qP()}; g.k.isMuted=function(){return this.G5.isMuted()}; g.k.c$=function(){return this.G5.c$()}; g.k.pB=function(){this.Yh=!0}; g.k.B=function(z){return this.SV.B(z)}; g.k.PR=function(z,K,f,M,p){this.Th("xvt",{m:z,g:K?1:0,tt:f?1:0,np:M?1:0,c:p})}; g.k.yC=function(){var z;(z=this.loader)==null||z.resume()}; g.k.kI=function(){return g.h2(this.v9,"ad")}; g.k.fY=function(){var z=this.getCurrentTime(),K=z-this.MB();var f=this.mediaElement?aC(this.mediaElement.MV()):0;f=Math.floor(Math.max(f-K,0))+100;var M;return((M=this.loader)==null?0:M.fY(K,f))?(this.Th("sdai",{skipad:1,ct:K.toFixed(3),adj:f.toFixed(3)}),bv(this.videoData)&&this.loader.seek(K+f,{seekSource:89,v8:"videoplayer_skipServerStitchedAd"}),$NI(this.B8,z),!0):!1}; g.k.i8=function(){return this.SV.i8()}; g.k.XP=function(){if(this.B("html5_generate_content_po_token"))return this.videoData.XD||"";this.G5.Q1();return this.SV.lW||""}; g.k.qn=function(){if(this.videoData.videoId)return this.videoData.oz}; g.k.u3=function(){return this.videoData.videoId}; g.k.K4=function(){return this.G5.C9}; g.k.lc=function(){return this.fO}; g.k.Zs=function(){return this.G5.Zs()}; g.k.jD=function(z,K){this.B8.jD(z,K)}; g.k.Ou=function(){this.B8.Ou()}; g.k.G9=function(z,K){var f=this.B("html5_generate_content_po_token")?this.videoData:void 0;this.G5.G9(z,K,f)}; g.k.eh=function(z,K){var f;(f=this.loader)==null||f.eh(z,K)}; g.k.tP=function(){var z=this.HC();return!!z&&z.tP()}; g.k.PH=function(z,K){this.Vh().PH(z,K)}; g.k.cD=function(){return this.Vh().cD()}; g.k.mC=function(){return this.videoData.xW}; g.k.Ao=function(){return this.G5.Ao()}; g.k.AC=function(){return this.G5.AC(this)}; g.k.wf=function(z){var K;(K=this.loader)==null||K.wf(z)}; g.k.M7=function(){var z;(z=this.loader)==null||z.M7()};g.h(zAS,zD);g.h(ed,B1);ed.prototype.S=function(z){z&&N$(this,this.U.getLoopVideo());this.U.logVisibility(this.element,z)}; ed.prototype.logClick=function(){this.U.logClick(this.element)}; ed.prototype.onLoopChange=function(z){N$(this,z)}; ed.prototype.Y=function(z){this.U.setLoopVideo(z)};g.h(Kv8,zD);g.h($ko,zD);g.k=$ko.prototype;g.k.seekToChapterWithAnimation=function(z){var K=this;if(g.aN(this.api)&&!(z<0)){var f=this.api.getVideoData(),M=f.G8;if(M&&z=0)return;K=~K;g.q5(this.items,K,0,z);M0(this.menuItems.element,z.element,K)}z.subscribe("size-change",this.Hk,this);this.menuItems.publish("size-change")}; g.k.gI=function(z){z.unsubscribe("size-change",this.Hk,this);this.CH()||(g.R8(this.items,z),this.menuItems.element.removeChild(z.element),this.menuItems.publish("size-change"))}; g.k.Hk=function(){this.menuItems.publish("size-change")}; g.k.focus=function(){for(var z=0,K=0;K1&&g.lP(this)}; g.k.YW=function(){lnW(this);this.l8&&(qXS(this),g.ip(this.element,this.size))}; g.k.wS=function(){var z=this.S.pop();mkg(this,z,this.S[this.S.length-1],!0)}; g.k.GM=function(z){if(!z.defaultPrevented)switch(z.keyCode){case 27:this.Ip();z.preventDefault();break;case 37:this.S.length>1&&this.wS();z.preventDefault();break;case 39:z.preventDefault()}}; g.k.focus=function(){this.S.length&&this.S[this.S.length-1].focus()}; g.k.JL=function(){g.xO.prototype.JL.call(this);this.W&&this.W.dispose();this.G&&this.G.dispose()};g.h(Vo,g.q9);Vo.prototype.open=function(z,K){this.initialize(z.items)&&this.uP(K,!!K)}; Vo.prototype.initialize=function(z){g.Qo(this.Yd);if(z===void 0||z.length===0)return!1;var K=z.length;z=g.a(z);for(var f=z.next();!f.done;f=z.next())this.md(f.value,K--);return!0}; Vo.prototype.md=function(z,K){z.menuNavigationItemRenderer?Wva(this,z.menuNavigationItemRenderer,K):z.menuServiceItemRenderer&&JsI(this,z.menuServiceItemRenderer,K)};g.h(nz,ER);g.k=nz.prototype;g.k.t7=function(z){z.target!==this.dismissButton.element&&z.target!==this.overflowButton.element&&(this.Rs(),this.onClickCommand&&this.U.LH("innertubeCommand",this.onClickCommand))}; g.k.qs=function(){this.enabled=!1;this.N.hide()}; g.k.X7=function(){return!!this.S&&this.enabled}; g.k.onVideoDataChange=function(z,K){this.DQ(K);if(this.S){this.ge();a:if(!this.isCounterfactual){var f,M,p;this.banner.update({title:(f=this.S)==null?void 0:f.title,subtitle:(M=this.S)==null?void 0:M.subtitle,metadata:(p=this.S)==null?void 0:p.metadataText});var t;this.onClickCommand=g.A((t=this.S)==null?void 0:t.onTap,XX);var B;if(z=g.A((B=this.S)==null?void 0:B.onOverflow,XX))this.G=g.A(z,BT1);var v;if((v=this.S)==null?0:v.thumbnailImage){var I,G;B=((I=this.S)==null?void 0:(G=I.thumbnailImage)== null?void 0:G.sources)||[];if(B.length===0)break a;this.thumbnailImage.update({url:B[0].url})}else{var b;if((b=this.S)==null?0:b.thumbnailIconName){var e;this.thumbnailIcon.update({icon:(e=this.S)==null?void 0:e.thumbnailIconName})}}var w;this.shouldShowOverflowButton=!((w=this.S)==null||!w.shouldShowOverflowButton);var D;this.shouldHideDismissButton=!((D=this.S)==null||!D.shouldHideDismissButton)}var y;this.banner.element.setAttribute("aria-label",((y=this.S)==null?void 0:y.a11yLabel)||"");var R; this.QE=(R=this.S)==null?void 0:R.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;iy8(this)}}; g.k.jpL=function(){this.isVisible=!0;iy8(this)}; g.k.eaV=function(){this.isVisible=!1;iy8(this)}; g.k.dA=function(){ER.prototype.dA.call(this);this.Y&&this.U.logVisibility(this.banner.element,this.isVisible)}; g.k.Rs=function(){ER.prototype.Rs.call(this,!1);this.Y&&this.U.logClick(this.banner.element)}; g.k.Pq=function(z){this.W||(this.W=new Vo(this.U),g.d(this,this.W));var K,f;if((K=this.G)==null?0:(f=K.menu)==null?0:f.menuRenderer)this.W.open(this.G.menu.menuRenderer,z.target),z.preventDefault()}; g.k.DQ=function(){}; g.k.ge=function(){}; g.k.JL=function(){this.U.GE("suggested_action_view_model");ER.prototype.JL.call(this)};g.h(W8,nz); W8.prototype.DQ=function(z){var K,f,M;this.productUpsellSuggestedActionViewModel=g.A((K=z.getWatchNextResponse())==null?void 0:(f=K.playerOverlays)==null?void 0:(M=f.playerOverlayRenderer)==null?void 0:M.suggestedActionViewModel,LM9);var p;if((p=this.productUpsellSuggestedActionViewModel)==null?0:p.content){var t;this.S=g.A((t=this.productUpsellSuggestedActionViewModel)==null?void 0:t.content,M89)}var B,v;if(this.Y=!!((B=this.productUpsellSuggestedActionViewModel)==null?0:(v=B.loggingDirectives)==null? 0:v.trackingParams)){var I,G;this.U.setTrackingParams(this.banner.element,((I=this.productUpsellSuggestedActionViewModel)==null?void 0:(G=I.loggingDirectives)==null?void 0:G.trackingParams)||null)}var b;this.isCounterfactual=!((b=this.productUpsellSuggestedActionViewModel)==null||!b.isCounterfactualServing)}; W8.prototype.ge=function(){var z=[],K,f=g.a(((K=this.productUpsellSuggestedActionViewModel)==null?void 0:K.ranges)||[]);for(K=f.next();!K.done;K=f.next()){var M=K.value;M&&(K=Number(M.startTimeMilliseconds),M=Number(M.endTimeMilliseconds),isNaN(K)||isNaN(M)||z.push(new g.bS(K,M,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.U.St(z)};g.h(dkW,zD);g.h(JW,zD);JW.prototype.onVideoDataChange=function(z,K){var f=this;if(!F6(K)){z==="newdata"&&s_S(this);var M=this.api.B("html5_fix_duplicate_get_setting_values_requests");if(this.T&&this.S&&z==="dataloaded"){M&&(this.S=!1);var p;Lg(uV(Gt(this.api.Z(),(p=this.api.getVideoData())==null?void 0:g.X6(p)),function(t){M||(f.S=!1);Oy5(f,t)}),function(){f.S=!0})}}}; JW.prototype.Gm=function(){var z=this;if(g.iY(this.api.Z())){var K,f=g.IB(this.api.Z(),(K=this.api.getVideoData())==null?void 0:g.X6(K));return uV(h3(f),function(M){var p=jz();YO(p,M);return z.api.Gm(p)})}return h3(this.api.Gm())};g.h(g.iP,g.oN);g.k=g.iP.prototype;g.k.open=function(){g.mY(this.zP,this.Y)}; g.k.bI=function(z){rsu(this);var K=this.options[z];K&&(K.element.setAttribute("aria-checked","true"),this.s0(this.AD(z)),this.T=z)}; g.k.Ym=function(z){g.Qo(this.Y);for(var K={},f=!1,M=0;M=0?this.S.playbackRate:1}catch(z){return 1}}; g.k.setPlaybackRate=function(z){this.getPlaybackRate()!==z&&(this.S.playbackRate=z);return z}; g.k.FP=function(){return this.S.loop}; g.k.setLoop=function(z){this.S.loop=z}; g.k.canPlayType=function(z,K){return this.S.canPlayType(z,K)}; g.k.isPaused=function(){return this.S.paused}; g.k.isSeeking=function(){return this.S.seeking}; g.k.isEnded=function(){return this.S.ended}; g.k.Sj=function(){return this.S.muted}; g.k.i7=function(z){XI();this.S.muted=z}; g.k.zS=function(){return this.S.played||wn([],[])}; g.k.MV=function(){try{var z=this.S.buffered}catch(K){}return z||wn([],[])}; g.k.F3=function(){return this.S.seekable||wn([],[])}; g.k.jc=function(){var z=this.S;return z.getStartDate?z.getStartDate():null}; g.k.getCurrentTime=function(){return this.S.currentTime}; g.k.setCurrentTime=function(z){this.S.currentTime=z}; g.k.getDuration=function(){return this.S.duration}; g.k.load=function(){var z=this.S.playbackRate;try{this.S.load()}catch(K){}this.S.playbackRate=z}; g.k.pause=function(){this.S.pause()}; g.k.play=function(){var z=this.S.play();if(!z||!z.then)return null;z.then(void 0,function(){}); return z}; g.k.S_=function(){return this.S.readyState}; g.k.A4=function(){return this.S.networkState}; g.k.Ko=function(){return this.S.error?this.S.error.code:null}; g.k.qV=function(){return this.S.error?this.S.error.message:""}; g.k.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.S instanceof window.HTMLVideoElement&&this.S.getVideoPlaybackQuality)return this.S.getVideoPlaybackQuality();if(this.S){var z=this.S,K=z.webkitDroppedFrameCount;if(z=z.webkitDecodedFrameCount)return{droppedVideoFrames:K||0,totalVideoFrames:z}}return{}}; g.k.Lz=function(){return!!this.S.webkitCurrentPlaybackTargetIsWireless}; g.k.pG=function(){return!!this.S.webkitShowPlaybackTargetPicker()}; g.k.togglePictureInPicture=function(){var z=this.S,K=window.document;window.document.pictureInPictureEnabled?this.S!==K.pictureInPictureElement?z.requestPictureInPicture():K.exitPictureInPicture():YI()&&z.webkitSetPresentationMode(z.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.k.hV=function(){var z=this.S;return new g.Vw(z.offsetLeft,z.offsetTop)}; g.k.getSize=function(){return g.dW(this.S)}; g.k.setSize=function(z){g.ip(this.S,z)}; g.k.getVolume=function(){return this.S.volume}; g.k.setVolume=function(z){XI();this.S.volume=z}; g.k.Hw=function(z){this.C[z]||(this.S.addEventListener(z,this.listener),this.C[z]=this.listener)}; g.k.setAttribute=function(z,K){this.S.setAttribute(z,K)}; g.k.removeAttribute=function(z){this.S.removeAttribute(z)}; g.k.hasAttribute=function(z){return this.S.hasAttribute(z)}; g.k.GT=zo(67);g.k.mj=zo(69);g.k.va=zo(71);g.k.NJ=zo(73);g.k.xp=function(){return PK(this.S)}; g.k.sU=function(z){g.ey(this.S,z)}; g.k.kp=function(z){return g.q0(this.S,z)}; g.k.Rm=function(){return g.t$(document.body,this.S)}; g.k.audioTracks=function(){var z=this.S;if("audioTracks"in z)return z.audioTracks}; g.k.JL=function(){for(var z=g.a(Object.keys(this.C)),K=z.next();!K.done;K=z.next())K=K.value,this.S.removeEventListener(K,this.C[K]);NB.prototype.JL.call(this)}; g.k.V7=function(z){this.S.disableRemotePlayback=z};g.h(ZN,g.F);g.h(Cz,g.F);Cz.prototype.show=function(){g.F.prototype.show.call(this);this.Dq();this.Fc.B("html5_enable_moving_s4n_window")&&g.iY(this.Fc.Z())&&this.D()}; Cz.prototype.hide=function(){g.F.prototype.hide.call(this);this.delay.stop();this.J.stop()}; Cz.prototype.Dq=function(){var z=(0,g.X)(),K=t0S(this.Fc);oy(this.S,K.bandwidth_samples);oy(this.G,K.network_activity_samples);oy(this.T,K.live_latency_samples);oy(this.Y,K.buffer_health_samples);var f={};K=g.a(Object.entries(K));for(var M=K.next();!M.done;M=K.next()){var p=g.a(M.value);M=p.next().value;p=p.next().value;this.N[M]!==p&&(f[M]=" "+String(p));this.N[M]=p}this.update(f);z=(0,g.X)()-z>25?5E3:500;this.delay.start(z)}; Cz.prototype.D=function(){this.W?(this.position+=1,this.position>15&&(this.W=!1)):(--this.position,this.position<=0&&(this.W=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.J.start(2E4)};g.h(v2v,zD);g.h(TT,g.J);TT.prototype.S=function(){var z=(0,g.X)()-this.startTime;z=zthis.J[z])&&(this.S=z,z8(this))}; g.k.onCueRangeExit=function(z){var K=uz8(this,z);K&&this.S===z&&this.api.LH("innertubeCommand",K);this.clearTimeout();this.S=void 0}; g.k.onTimeout=function(z){this.S!==void 0&&(z==null?void 0:z.cueRangeId)===this.S&&(this.N=!1,(z=uz8(this,this.S))&&this.api.LH("innertubeCommand",z))}; g.k.Bk=function(z){this.Y=z}; g.k.Cm=function(){z8(this);this.Y=void 0}; g.k.setTimeout=function(z){var K=this,f=Number(z==null?void 0:z.maxVisibleDurationMilliseconds);f&&(this.clearTimeout(),this.Y1=setTimeout(function(){K.onTimeout(z)},f))}; g.k.clearTimeout=function(){this.Y1&&clearTimeout(this.Y1);this.Y1=void 0;this.N=!1}; g.k.JL=function(){this.timelyActions=this.Y=this.S=this.videoId=void 0;this.J={};this.gL();this.clearTimeout();zD.prototype.JL.call(this)};g.h(Pog,zD);g.h($W,B1);$W.prototype.W=function(z){this.J(z?2:1)}; $W.prototype.Y=function(){var z=this.U.getPresentingPlayerType();z===2||z===3?(this.S=!1,this.zP.gI(this)):this.S||(z=this.hasVoiceBoostAudioTrack(),this.setEnabled(z),z=this.T()===2&&z,N$(this,z),this.zP.md(this),this.S=!0)}; $W.prototype.JL=function(){this.zP.gI(this);B1.prototype.JL.call(this)};g.h(fK,zD);fK.prototype.getVoiceBoostUserPreference=function(){return this.S}; fK.prototype.setVoiceBoostUserPreference=function(z){this.api.Th("vb_set",{pref:z});g.sT("yt-player-voice-boost",z);z!==this.S&&(this.S=z,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.b4())}; fK.prototype.hasVoiceBoostAudioTrack=function(){var z,K,f=(z=this.api.getVideoData())==null?void 0:(K=z.T)==null?void 0:K.S;return f?$E(f,function(M){var p;return((p=M.audio)==null?void 0:p.Y)===!0}):!1}; fK.prototype.updateEnvironmentData=function(){this.api.Z().Ar=this.S};var iY5=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.h(ti,zD);ti.prototype.JL=function(){this.G&&(g.EJ(this.G),this.G=void 0);zD.prototype.JL.call(this)}; ti.prototype.Q1=function(){(this.Y?!this.S:this.T)&&NN(this)}; ti.prototype.ij=function(z,K,f){var M=this;if(q1q(z)){var p=f||"";if(this.S)K=vu(this,p),mC8(z,K);else{var t=new g.ai;K.push(t.promise);this.C.promise.then(function(){var B=vu(M,p);mC8(z,B);t.resolve()})}}}; ti.prototype.Ai=function(z){var K=this;if(this.Y||this.T)z.XD=vu(this,z.videoId),this.S||(this.J=new BC,this.C.promise.then(function(){K.hH.o5("pot_if");z.XD=vu(K,z.videoId)}))};g.h(I5,g.F);I5.prototype.onClick=function(){this.U.logClick(this.element)}; I5.prototype.Xr=function(z){this.s3([1,2].includes(z));cz8(this,z)}; I5.prototype.s3=function(z){g.F.prototype.s3.call(this,z);this.element.setAttribute("aria-hidden",String(!z))};g.h(b$,zD);b$.prototype.C=function(){this.Y&&this.S!==0&&(this.S===1?eE(this,2):eE(this,1))}; b$.prototype.setFullscreenQuickActions=function(z){this.J&&this.api.getRootNode().removeChild(this.J);z?(g.ey(z,"ytp-fullscreen-quick-actions"),g.ey(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions"),g.dq(this.api,z,4)):g.Dz(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions");this.J=z;G8(this)}; b$.prototype.setPlayerOverlayVideoDetailsRenderer=function(z){this.playerOverlayVideoDetailsRenderer&&this.api.getRootNode().removeChild(this.playerOverlayVideoDetailsRenderer);z?(g.ey(z,"ytp-fullscreen-metadata"),this.api.B("delhi_modern_web_player_fullscreen_metadata_bottom")?g.ey(this.api.getRootNode(),"ytp-fullscreen-metadata-bottom"):g.ey(this.api.getRootNode(),"ytp-fullscreen-metadata-top"),g.dq(this.api,z,4)):(g.Dz(this.api.getRootNode(),"ytp-hide-fullscreen-title"),g.Dz(this.api.getRootNode(), "ytp-fullscreen-metadata-bottom"));this.playerOverlayVideoDetailsRenderer=z;G8(this)};g.h(jJ5,zD);g.h(w1,g.J);w1.prototype.S=function(){for(var z=g.a(g.i8.apply(0,arguments)),K=z.next();!K.done;K=z.next())(K=K.value)&&this.features.push(K)}; w1.prototype.JL=function(){for(var z=this.features.length-1;z>=0;z--)this.features[z].dispose();this.features.length=0;g.J.prototype.JL.call(this)};Y1q.prototype.reset=function(){this.S=this.Y=NaN};g.k=XEo.prototype;g.k.reset=function(){x5(this.timerName)}; g.k.tick=function(z,K){rl(z,K,this.timerName)}; g.k.o5=function(z){return T9(z,void 0,this.timerName)}; g.k.Vz=function(z){g.iq(z,void 0,this.timerName)}; g.k.infoGel=function(z){g.ZE(z,this.timerName)};g.h(OYI,g.Dv);g.k=OYI.prototype;g.k.WC=function(z){return this.loop||!!z||this.index+1=0}; g.k.setShuffle=function(z){this.shuffle=z;z=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var K=0;K0)||i$(this,1,!0)}; g.k.Fk=function(){this.W=!0;this.S.W8(this.C);this.C=this.S.X(document,"mouseup",this.ud)}; g.k.ud=function(){this.W=!1;i$(this,8,!1);this.S.W8(this.C);this.C=this.S.X(this.target,"mousedown",this.Fk)}; g.k.Xk=function(z){if(z=(z=z.changedTouches)&&z[0])this.nH=z.identifier,this.S.W8(this.D),this.D=this.S.X(this.target,"touchend",this.gX,void 0,!0),i$(this,1024,!0)}; g.k.gX=function(z){if(z=z.changedTouches)for(var K=0;K1280||p>720)if(K=M.JJ("maxresdefault.jpg"))break;if(t>640||p>480)if(K=M.JJ("maxresdefault.jpg"))break;if(t>320||p>180)if(K=M.JJ("sddefault.jpg")||M.JJ("hqdefault.jpg")||M.JJ("mqdefault.jpg"))break;if(K=M.JJ("default.jpg"))break}g.MR(z)&&(z=new Image,z.addEventListener("load", function(){Ipv()}),z.src=K?K:"",this.api.Rx().tick("ftr")); this.J.style.backgroundImage=K?"url("+K+")":""};g.h(g.jE,g.F);g.jE.prototype.resize=function(){}; g.jE.prototype.Y=function(z){var K=this;this.T=!1;jKT(this);var f=z.hj,M=this.api.Z();f!=="GENERIC_WITHOUT_LINK"||M.W?f==="TOO_MANY_REQUESTS"?(M=this.api.getVideoData(),this.s0(xW(this,"TOO_MANY_REQUESTS_WITH_LINK",M.xv(),void 0,void 0,void 0,!1))):f!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||M.W?this.api.Z().B("html5_enable_bandaid_error_screen")&&f==="HTML5_SPS_UMP_STATUS_REJECTED"&&!M.W?(M=M.hostLanguage,z="//support.google.com/youtube?p=videoError",M&&(z=g.V8(z,{hl:M})),this.s0(xW(this,"HTML5_SPS_UMP_STATUS_REJECTED", z))):this.api.Z().B("enable_adb_handling_in_sabr")&&f==="BROWSER_OR_EXTENSION_ERROR"&&!M.W?(M=M.hostLanguage,z="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",M&&(z=g.V8(z,{hl:M})),this.s0(xW(this,"BROWSER_OR_EXTENSION_ERROR",z))):this.s0(g.YW(z.errorMessage)):this.s0(xW(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(z=M.hostLanguage,f="//support.google.com/youtube/?p=player_error1",z&&(f=g.V8(f, {hl:z})),this.s0(xW(this,"GENERIC_WITH_LINK_AND_CPN",f,!0)),M.O3&&!M.J&&AJd(this,function(t){if(g.v1(t,K.api,!Ui(K.api.Z()))){t={as3:!1,html5:!0,player:!0,cpn:K.api.getVideoData().clientPlaybackNonce};var B=K.api;B.rO("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:t});B.isFullscreen()&&B.toggleFullscreen()}})); if(this.T){var p=this.dE("ytp-error-link");p&&(this.api.createClientVe(p,this,216104),this.api.logVisibility(p,!0),AJd(this,function(){K.api.logClick(p)}))}}; var sKd=/([^<>]+)<\/a>/;g.h(Yra,g.F);g.k=Yra.prototype;g.k.onClick=function(z){this.innertubeCommand?(this.U.LH("innertubeCommand",this.innertubeCommand),z.preventDefault()):g.v1(z,this.U,!0);this.U.logClick(this.element)}; g.k.onVideoDataChange=function(z,K){xyv(this,K);this.Dv&&FDo(this,this.Dv)}; g.k.fh=function(z){var K=this.U.getVideoData();this.videoId!==K.videoId&&xyv(this,K);this.S&&FDo(this,z.state);this.Dv=z.state}; g.k.uP=function(){this.fade.show();this.U.publish("paidcontentoverlayvisibilitychange",!0);this.U.logVisibility(this.element,!0)}; g.k.Ip=function(){this.fade.hide();this.U.publish("paidcontentoverlayvisibilitychange",!1);this.U.logVisibility(this.element,!1)};g.h(Fa,g.F);Fa.prototype.hide=function(){this.S.stop();this.message.style.display="none";g.F.prototype.hide.call(this)}; Fa.prototype.onStateChange=function(z){this.Xr(z.state)}; Fa.prototype.Xr=function(z){if(g.Z(z,128)||this.api.lc())var K=!1;else{var f;K=this.api.B("web_watch_enable_multiview_manager")&&((f=this.api.getVideoData())==null?0:F6(f))?!1:g.Z(z,16)||g.Z(z,1)?!0:!1}K?this.S.start():this.hide()}; Fa.prototype.Y=function(){this.message.style.display="block"};g.h(Ow,g.xO);Ow.prototype.onMutedAutoplayChange=function(z){this.T&&(z?(OSu(this),this.uP()):(this.S&&this.logClick(),this.Ip()))}; Ow.prototype.Lb=function(z){this.api.isMutedByMutedAutoplay()&&g.Ld(z,2)&&this.Ip()}; Ow.prototype.onClick=function(){this.api.unMute();this.logClick()}; Ow.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.h(g.r1,g.xI);g.k=g.r1.prototype;g.k.init=function(){var z=this.api,K=z.getPlayerStateObject();this.Dp=z.getPlayerSize();this.p6(K);this.LN();this.NB();this.api.publish("basechromeinitialized",this);this.pu()&&this.api.publish("standardControlsInitialized")}; g.k.onVideoDataChange=function(z,K){var f=this.W2!==K.videoId;if(f||z==="newdata")z=this.api,z.isFullscreen()||(this.Dp=z.getPlayerSize());f&&(this.W2=K.videoId,f=this.I5,f.Hx=3E3,i$(f,512,!0),this.LN());this.api.B("web_render_jump_buttons")&&K.showSeekingControls&&(this.t8=572)}; g.k.bIV=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.k.VX=function(){var z=this.api.AU()&&this.api.Di(),K=this.api.Mn();return this.LV||z||this.XX||K}; g.k.DK=function(){var z=!this.VX();g.k4(this.api.getRootNode(),"ytp-menu-shown",!z)}; g.k.lq=function(z){try{if(!g.t$(this.api.getRootNode(),z))return!1}catch(K){return!1}for(;z&&!c2q(z);)z=z===this.api.getRootNode()?null:z.parentElement||null;return!!z}; g.k.g1=function(z){var K=this.api.getRootNode();g.k4(K,"ytp-autohide",z);g.k4(K,"ytp-autohide-active",!0);this.MS.start(z?250:100);z&&(this.QI=!1,g.Dz(K,"ytp-touch-mode"));this.rT=!z;this.api.nB(!z)}; g.k.rl=function(){var z=this.api.getRootNode();g.k4(z,"ytp-autohide-active",!1)}; g.k.yBE=function(){this.K1=!0}; g.k.NO1=function(z){if(this.api.Z().B("player_doubletap_to_seek")||this.api.Z().G)this.K1=!1,this.iD&&this.W8(this.iD),this.LT===0&&o5(this,z)?(this.DC(),this.Gp.start(),this.iD=this.X(this.api.wE(),"touchmove",this.yBE,void 0,!0)):this.Gp.stop();CCp(this)&&o5(this,z)&&!this.api.Z().G&&ZSo(this);var K=this.uD.U8();if(!g.Jw(this.api.Z())&&lI&&TdI(this,z))K&&z.preventDefault();else if(this.QI=!0,g.ey(this.api.getRootNode(),"ytp-touch-mode"),this.I5.FB(),this.api.Z().B("player_doubletap_to_seek")||this.api.Z().G)if(K= this.api.getPlayerStateObject(),!(!this.api.t_()||g.Z(K,2)&&g.lD(this.api)||g.Z(K,64))){K=Date.now()-this.LF;this.LT+=1;if(K<=350){this.lS=!0;K=this.api.getPlayerSize().width/3;var f=this.api.getRootNode().getBoundingClientRect(),M=z.targetTouches[0].clientX-f.left;f=z.targetTouches[0].clientY-f.top;var p=(this.LT-1)*10;M>0&&MK*2&&M=650,M=z.width<528;this.I5.resize();g.k4(K,"ytp-fullscreen",this.api.isFullscreen());g.k4(K,"ytp-large-width-mode",f);this.api.B("delhi_modern_web_player")?g.k4(K,"ytp-xsmall-width-mode",M):g.k4(K,"ytp-small-mode",this.wI());g.k4(K,"ytp-tiny-mode",this.s6());g.k4(K,"ytp-big-mode",this.po());this.Bm&&this.Bm.resize(z)}; g.k.Lb=function(z){this.p6(z.state);this.LN()}; g.k.Xj=zo(5);g.k.ww=function(){var z=!!this.W2&&!this.api.US()&&!this.fm,K=this.api.getPresentingPlayerType()===2,f=this.api.Z();return K?(K=Vu(this.api.pI()),z&&(K&&K.player?z=(z=K.player.getVideoData(2))?z.isListed&&!g.JK(K.player.Z()):!1:(R3("showInfoBarDuringAd: this is null"),z=!1)),z):z&&(f.Ri||this.api.isFullscreen()||f.Zh)}; g.k.LN=function(){var z=this.ww();this.Mt!==z&&(this.Mt=z,g.k4(this.api.getRootNode(),"ytp-hide-info-bar",!z))}; g.k.p6=function(z){var K=z.isCued()||this.api.mu()&&this.api.getPresentingPlayerType()!==3;K!==this.isCued&&(this.isCued=K,this.F0&&this.W8(this.F0),this.F0=this.X(this.api.wE(),"touchstart",this.NO1,void 0,K));var f=this.I5,M=z.isPlaying()&&!g.Z(z,32)||this.api.Eh();i$(f,128,!M);f=this.I5;M=this.api.getPresentingPlayerType()===3;i$(f,256,M);f=this.api.getRootNode();g.Z(z,2)?M=[Ov.ENDED]:(M=[],g.Z(z,8)?M.push(Ov.PLAYING):g.Z(z,4)&&M.push(Ov.PAUSED),g.Z(z,1)&&!g.Z(z,32)&&M.push(Ov.BUFFERING),g.Z(z, 32)&&M.push(Ov.SEEKING),g.Z(z,64)&&M.push(Ov.UNSTARTED));g.gZ(this.oN,M)||(g.yf(f,this.oN),this.oN=M,g.wy(f,M));M=this.api.Z();var p=g.Z(z,2);a:{var t=this.api.Z();var B=t.controlsType;switch(B){case "2":case "0":t=!1;break a}t=B==="3"&&!g.Z(z,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:P89(Vu(this.api.pI())))||this.api.Mn()||g.Jw(t)&&this.api.getPresentingPlayerType()===2?!1:!0}g.k4(f,"ytp-hide-controls",!t);g.k4(f,"ytp-native-controls",M.controlsType==="3"&&!K&&!p&&!this.XX);g.Z(z, 128)&&!g.Jw(M)?(this.Bm||(this.Bm=new g.jE(this.api),g.d(this,this.Bm),g.dq(this.api,this.Bm.element,4)),this.Bm.Y(z.Pj),this.Bm.show()):this.Bm&&(this.Bm.dispose(),this.Bm=null)}; g.k.WX=function(){return this.api.AU()&&this.api.Di()?(this.api.Ps(!1,!1),!0):this.api.US()?(g.Vp(this.api,!0),!0):!1}; g.k.onMutedAutoplayChange=function(z){this.XX=z;this.DK()}; g.k.po=function(){return!1}; g.k.wI=function(){return!this.po()&&(this.api.getPlayerSize().width=0&&K.left>=0&&K.bottom>K.top&&K.right>K.left?K:null;K=this.size;z=z.clone();K=K.clone();M&&(B=K,p=5,(p&65)==65&&(z.x=M.right)&&(p&=-2),(p&132)==132&&(z.y=M.bottom)&&(p&=-5),z.xM.right&&(B.width=Math.min(M.right-z.x,t+B.width-M.left),B.width=Math.max(B.width,0))),z.x+B.width>M.right&&p&1&&(z.x=Math.max(M.right-B.width,M.left)),z.yM.bottom&&(B.height=Math.min(M.bottom-z.y,t+B.height-M.top),B.height=Math.max(B.height,0))),z.y+B.height>M.bottom&&p&4&&(z.y=Math.max(M.bottom-B.height,M.top)));M=new g.Ls(0,0,0,0);M.left=z.x;M.top=z.y;M.width= K.width;M.height=K.height;g.ns(this.element,new g.Vw(M.left,M.top));g.g0(this.J);this.J.X(Fm(this),"contextmenu",this.Eix);this.J.X(this.U,"fullscreentoggled",this.onFullscreenToggled);this.J.X(this.U,"pageTransition",this.MF)}; g.k.Eix=function(z){if(!z.defaultPrevented){var K=VS(z);g.t$(this.element,K)||this.Ip();this.U.Z().disableNativeContextMenu&&z.preventDefault()}}; g.k.onFullscreenToggled=function(){this.Ip();uLS(this)}; g.k.MF=function(){this.Ip()};g.h(py,g.F);py.prototype.onClick=function(){var z=this,K,f,M,p;return g.n(function(t){if(t.Y==1)return K=z.api.Z(),f=z.api.getVideoData(),M=z.api.getPlaylistId(),p=K.getVideoUrl(f.videoId,M,void 0,!0),g.l(t,Pyv(z,p),2);t.S&&EXg(z);z.api.logClick(z.element);g.Rv(t)})}; py.prototype.Dq=function(){this.updateValue("icon",{j:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",JB:!0,K:"ytp-svg-fill",V:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Sao ch\u00e9p \u0111\u01b0\u1eddng li\u00ean k\u1ebft");this.visible=LP5(this);g.k4(this.element, "ytp-copylink-button-visible",this.visible);this.s3(this.visible);this.tooltip.r$();this.api.logVisibility(this.element,this.visible&&this.C)}; py.prototype.Xt=function(z){g.F.prototype.Xt.call(this,z);this.api.logVisibility(this.element,this.visible&&z)}; py.prototype.JL=function(){g.F.prototype.JL.call(this);g.Dz(this.element,"ytp-copylink-button-visible")};g.h(H7I,g.F);g.k=H7I.prototype;g.k.show=function(){g.F.prototype.show.call(this);g.$4(this.Y)}; g.k.hide=function(){this.J.stop();this.T=0;this.dE("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.Dz(this.element,"ytp-chapter-seek");g.Dz(this.element,"ytp-time-seeking");g.F.prototype.hide.call(this)}; g.k.hQ=function(z,K,f,M){this.T=z===this.G?this.T+M:M;this.G=z;var p=z===-1?this.N:this.D;p&&this.U.logClick(p);this.W?this.Y.stop():g.tU(this.Y);this.J.start();this.element.setAttribute("data-side",z===-1?"back":"forward");var t=3*this.U.wE().getPlayerSize().height;p=this.U.wE().getPlayerSize();p=p.width/3-3*p.height;this.S.style.width=t+"px";this.S.style.height=t+"px";z===1?(this.S.style.left="",this.S.style.right=p+"px"):z===-1&&(this.S.style.right="",this.S.style.left=p+"px");var B=t*2.5;t=B/ 2;var v=this.dE("ytp-doubletap-ripple");v.style.width=B+"px";v.style.height=B+"px";z===1?(z=this.U.wE().getPlayerSize().width-K+Math.abs(p),v.style.left="",v.style.right=z-t+"px"):z===-1&&(z=Math.abs(p)+K,v.style.right="",v.style.left=z-t+"px");v.style.top="calc((33% + "+Math.round(f)+"px) - "+t+"px)";if(f=this.dE("ytp-doubletap-ripple"))f.classList.remove("ytp-doubletap-ripple"),f.classList.add("ytp-doubletap-ripple");Qhu(this,this.W?this.T:M)}; g.k.KN=function(z,K,f){if(f=f===void 0?null:f){var M=z===-1?this.N.visualElement:this.D.visualElement;f={seekData:f};var p=g.Vz();p&&g.Mu(pc)(void 0,p,M,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",f,void 0)}this.T=z===this.G?this.T+K:K;this.G=z;M=this.U.wE().getPlayerSize();this.W?this.Y.stop():g.tU(this.Y);this.J.start();this.element.setAttribute("data-side",z===-1?"back":"forward");g.ey(this.element,"ytp-time-seeking");this.S.style.width="110px";this.S.style.height="110px";f=M.width*.1-15;z=== 1?this.Y1?(this.S.style.right=f+"px",this.S.style.left=""):(this.S.style.right="",this.S.style.left=M.width*.8-30+"px"):z===-1&&(this.Y1?(this.S.style.right="",this.S.style.left=f+"px"):(this.S.style.right="",this.S.style.left=M.width*.1-15+"px"));this.S.style.top=M.height*.5+15+"px";Qhu(this,this.W?this.T:K)}; g.k.fU=function(z,K,f){f=f===void 0?null:f;g.tU(this.Y);this.J.start();switch(z){case -1:z="back";break;case 1:z="forward";break;default:z=""}this.element.setAttribute("data-side",z);this.S.style.width="0";this.S.style.height="0";g.ey(this.element,"ytp-chapter-seek");this.updateValue("seekText",K);this.updateValue("seekTime","");K=this.dE("ytp-seek-icon");if(f){a:if(f){switch(f){case "PREMIUM_STANDALONE":f=niW();break a;case "PREMIUM_STANDALONE_CAIRO":f=Wau();break a}f=void 0}else f=null;this.updateValue("seekIcon", f);K.style.display="inline-block"}else K.style.display="none"};g.h(qbv,ER);g.k=qbv.prototype;g.k.kM=function(z){this.vx||(this.vx=new Vo(this.U),g.d(this,this.vx));var K,f;if((K=this.TP)==null?0:(f=K.menu)==null?0:f.menuRenderer)this.vx.open(this.TP.menu.menuRenderer,z.target),z.preventDefault()}; g.k.X7=function(){return!!this.S}; g.k.Ir=function(){return!!this.S}; g.k.t7=function(z){z.target===this.overflowButton.element?z.preventDefault():(this.ra&&this.U.LH("innertubeCommand",this.ra),this.Rs(!1))}; g.k.qs=function(){this.Rs(!0);var z,K;((z=this.S)==null?0:(K=z.bannerData)==null?0:K.dismissedStatusKey)&&this.Ft.push(this.S.bannerData.dismissedStatusKey);this.Dt()}; g.k.BM=function(){this.Dt();Nk(this)}; g.k.wAc=function(z){var K=this,f;if(z.id!==((f=this.S)==null?void 0:f.identifier)){this.Dt();f=g.a(this.Hx);for(var M=f.next();!M.done;M=f.next()){var p=M.value,t=void 0,B=void 0;if((M=(t=p)==null?void 0:(B=t.bannerData)==null?void 0:B.itemData)&&p.identifier===z.id){B=t=void 0;var v=((t=p)==null?void 0:(B=t.bannerData)==null?void 0:B.dismissedStatusKey)||"";if(this.Ft.includes(v))return;this.S=p;this.banner.element.setAttribute("aria-label",M.accessibilityLabel||"");M.trackingParams&&(this.J=!0, this.U.setTrackingParams(this.badge.element,M.trackingParams));this.N.show();Lz(this);this.eV.s3(!M.stayInApp);AZ5(this);lkS(this);Bq(this);this.ra=g.A(M.onTapCommand,XX);if(p=g.A(M.menuOnTap,XX))this.TP=g.A(p,BT1);p=void 0;this.banner.update({thumbnail:(p=(M.thumbnailSources||[])[0])==null?void 0:p.url,title:M.productTitle,price:M.priceReplacementText?M.priceReplacementText:M.price,salesOriginalPrice:WPv(this),priceDropReferencePrice:JZa(this),promotionText:nXv(this),priceA11yText:gXq(this),affiliateDisclaimer:M.affiliateDisclaimer, vendor:i7v(this)});v=B=t=p=void 0;((p=M)==null?0:(t=p.hiddenProductOptions)==null?0:t.showDropCountdown)&&((B=M)==null?0:(v=B.hiddenProductOptions)==null?0:v.dropTimestampMs)&&(this.W1=new g.Kl(function(){sh5(K)},1E3),this.eV.hide(),this.countdownTimer.show(),sh5(this)); this.U.B("web_player_enable_featured_product_banner_exclusives_on_desktop")&&mHT(this)&&(this.Z2=new g.Kl(function(){VH8(K)},1E3),VH8(this))}}this.U.getRootNode()&&g.ey(this.U.getRootNode(),"ytp-featured-product-shown")}}; g.k.Dt=function(){this.S&&(this.S=void 0,this.Vf(),this.U.getRootNode()&&g.Dz(this.U.getRootNode(),"ytp-featured-product-shown"))}; g.k.onVideoDataChange=function(z,K){var f=this;z==="dataloaded"&&Nk(this);var M,p,t;z=g.A((M=K.getWatchNextResponse())==null?void 0:(p=M.playerOverlays)==null?void 0:(t=p.playerOverlayRenderer)==null?void 0:t.productsInVideoOverlayRenderer,p9_);this.overflowButton.show();this.dismissButton.hide();var B=z==null?void 0:z.featuredProductsEntityKey;this.trendingOfferEntityKey=z==null?void 0:z.trendingOfferEntityKey;this.Hx.length||(cZS(this,B),Bq(this));var v;(v=this.E0)==null||v.call(this);this.E0=g.tf.subscribe(function(){cZS(f, B);Bq(f)})}; g.k.JL=function(){Nk(this);AZ5(this);lkS(this);ER.prototype.JL.call(this)};g.h(FP5,g.F);FP5.prototype.onClick=function(){this.U.logClick(this.element,this.Y)};g.h(O7T,g.xO);g.k=O7T.prototype;g.k.show=function(){g.xO.prototype.show.call(this);this.U.publish("infopaneldetailvisibilitychange",!0);this.U.logVisibility(this.element,!0);rZg(this,!0)}; g.k.hide=function(){g.xO.prototype.hide.call(this);this.U.publish("infopaneldetailvisibilitychange",!1);this.U.logVisibility(this.element,!1);rZg(this,!1)}; g.k.getId=function(){return this.J}; g.k.td=function(){return this.itemData.length}; g.k.onVideoDataChange=function(z,K){if(K){var f,M,p,t;this.update({title:((f=K.Rf)==null?void 0:(M=f.title)==null?void 0:M.content)||"",body:((p=K.Rf)==null?void 0:(t=p.bodyText)==null?void 0:t.content)||""});var B;z=((B=K.Rf)==null?void 0:B.trackingParams)||null;this.U.setTrackingParams(this.element,z);B=g.a(this.itemData);for(z=B.next();!z.done;z=B.next())z.value.dispose();this.itemData=[];var v;if((v=K.Rf)==null?0:v.ctaButtons)for(K=g.a(K.Rf.ctaButtons),v=K.next();!v.done;v=K.next())if(v=g.A(v.value, UnT))v=new FP5(this.U,v,this.S),v.bl&&(this.itemData.push(v),v.hL(this.items))}}; g.k.JL=function(){this.hide();g.xO.prototype.JL.call(this)};g.h(Cy5,g.F);g.k=Cy5.prototype;g.k.onVideoDataChange=function(z,K){oXg(this,K);this.Dv&&UHp(this,this.Dv)}; g.k.Lh=function(z){var K=this.U.getVideoData();this.videoId!==K.videoId&&oXg(this,K);UHp(this,z.state);this.Dv=z.state}; g.k.ou=function(z){(this.T=z)?this.hide():this.S&&this.show()}; g.k.sJ=function(){this.Y||this.uP();this.showControls=!0}; g.k.bd=function(){this.Y||this.Ip();this.showControls=!1}; g.k.uP=function(){var z,K=(z=this.U)==null?void 0:z.getPlayerSize();z=K.width<380;var f;K=K.height<(((f=this.U)==null?0:f.isEmbedsShortsMode())?400:280);var M,p;(((M=this.U)==null?0:M.getPlayerStateObject().isCued())||((p=this.U)==null?0:g.Z(p.getPlayerStateObject(),1024)))&&z&&K||!this.S||this.T||(this.fade.show(),this.U.publish("infopanelpreviewvisibilitychange",!0),this.U.logVisibility(this.element,!0))}; g.k.Ip=function(){this.S&&!this.T&&(this.fade.hide(),this.U.publish("infopanelpreviewvisibilitychange",!1),this.U.logVisibility(this.element,!1))}; g.k.S1d=function(){this.Y=!1;this.showControls||this.Ip()};var vN1={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(vN1).reduce(function(z,K){z[vN1[K]]=K;return z},{}); var Ij2={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(Ij2).reduce(function(z,K){z[Ij2[K]]=K;return z},{}); var Gdo={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(Gdo).reduce(function(z,K){z[Gdo[K]]=K;return z},{});var bC5,eY5;bC5=[{option:"#fff",text:"Tr\u1eafng"},{option:"#ff0",text:"Va\u0300ng"},{option:"#0f0",text:"Xanh l\u1ee5c"},{option:"#0ff",text:"Xanh l\u01a1"},{option:"#00f",text:"M\u00e0u lam"},{option:"#f0f",text:"\u0110\u1ecf t\u00eda"},{option:"#f00",text:"\u0110\u1ecf"},{option:"#080808",text:"\u0110en"}];eY5=[{option:0,text:vq(0)},{option:.25,text:vq(.25)},{option:.5,text:vq(.5)},{option:.75,text:vq(.75)},{option:1,text:vq(1)}]; g.eY=[{option:"fontFamily",text:"H\u1ecd ph\u00f4ng ch\u1eef",options:[{option:1,text:"Serif kh\u00f4ng c\u00e2n x\u1ee9ng"},{option:2,text:"Serif c\u00e2n x\u1ee9ng"},{option:3,text:"Sans-Serif kh\u00f4ng c\u00e2n x\u1ee9ng"},{option:4,text:"Sans-Serif c\u00e2n x\u1ee9ng"},{option:5,text:"Th\u00f4ng th\u01b0\u1eddng"},{option:6,text:"Ch\u1eef th\u1ea3o"},{option:7,text:"Ch\u1eef vi\u1ebft hoa nh\u1ecf"}]},{option:"color",text:"M\u00e0u ph\u00f4ng ch\u1eef",options:bC5},{option:"fontSizeIncrement", text:"C\u1ee1 ch\u1eef",options:[{option:-2,text:vq(.5)},{option:-1,text:vq(.75)},{option:0,text:vq(1)},{option:1,text:vq(1.5)},{option:2,text:vq(2)},{option:3,text:vq(3)},{option:4,text:vq(4)}]},{option:"background",text:"M\u00e0u n\u1ec1n",options:bC5},{option:"backgroundOpacity",text:"\u0110\u1ed9 m\u1edd c\u1ee7a n\u1ec1n",options:eY5},{option:"windowColor",text:"M\u00e0u c\u1eeda s\u1ed5",options:bC5},{option:"windowOpacity",text:"\u0110\u1ed9 m\u1edd c\u1ee7a c\u1eeda s\u1ed5",options:eY5}, {option:"charEdgeStyle",text:"Ki\u1ec3u vi\u1ec1n k\u00fd t\u1ef1",options:[{option:0,text:"Kh\u00f4ng c\u00f3"},{option:4,text:"B\u00f3ng \u0111\u1ed5"},{option:1,text:"T\u0103ng"},{option:2,text:"Ch\u00ecm"},{option:3,text:"\u0110\u01b0\u1eddng vi\u1ec1n"}]},{option:"textOpacity",text:"\u0110\u1ed9 m\u1edd ph\u00f4ng ch\u1eef",options:[{option:.25,text:vq(.25)},{option:.5,text:vq(.5)},{option:.75,text:vq(.75)},{option:1,text:vq(1)}]}];var wif=[27,9,33,34,13,32,187,61,43,189,173,95,79,87,67,80,78,75,70,65,68,87,83,107,221,109,219];g.h(pQI,g.xI);g.k=pQI.prototype; g.k.o$=function(z){z.repeat||(this.T.aR=!1);var K=!1,f=z.keyCode,M=VS(z),p=!z.altKey&&!z.ctrlKey&&!z.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||wif.includes(f)),t=!1,B=!1,v=this.api.Z();z.defaultPrevented?(p=!1,B=!0):v.C3&&!this.api.isMutedByEmbedsMutedAutoplay()&&(p=!1);if(f===9)K=!0;else{if(M)switch(f){case 32:case 13:if(M.tagName==="BUTTON"||M.tagName==="A"||M.tagName==="INPUT")K=!0,p=!1;else if(p){var I=M.getAttribute("role");!I||I!=="option"&&I!=="button"&&I.indexOf("menuitem")!==0|| (K=!0,M.click(),t=!0)}break;case 37:case 39:case 36:case 35:K=M.getAttribute("role")==="slider";break;case 38:case 40:I=M.getAttribute("role"),M=f===38?M.previousSibling:M.nextSibling,I==="slider"?K=!0:p&&(I==="option"?(M&&M.getAttribute("role")==="option"&&M.focus(),t=K=!0):I&&I.indexOf("menuitem")===0&&(M&&M.hasAttribute("role")&&M.getAttribute("role").indexOf("menuitem")===0&&M.focus(),t=K=!0))}if(p&&!t)switch(f){case 38:t=Math.min(this.api.getVolume()+5,100);Uw(this.Ka,t,!1);this.api.setVolume(t); B=t=!0;break;case 40:t=Math.max(this.api.getVolume()-5,0);Uw(this.Ka,t,!0);this.api.setVolume(t);B=t=!0;break;case 36:this.api.t_()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),B=t=!0);break;case 35:this.api.t_()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),B=t=!0)}}K&&Gq(this,!0);(K||B)&&this.I5.FB();(t||p&&this.handleGlobalKeyDown(f,z.shiftKey,z.ctrlKey,z.altKey,z.metaKey,z.key,z.code,z.repeat))&&z.preventDefault();v.D&&(z={keyCode:z.keyCode, altKey:z.altKey,ctrlKey:z.ctrlKey,metaKey:z.metaKey,shiftKey:z.shiftKey,handled:z.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.IX("onKeyPress",z))}; g.k.Sp=function(z){var K=z.keyCode;(!this.api.B("web_player_spacebar_control_bugfix")||this.api.B("web_player_spacebar_control_bugfix")&&!this.T.ri)&&this.handleGlobalKeyUp(K,z.shiftKey,z.ctrlKey,z.altKey,z.metaKey,z.key,z.code)&&z.preventDefault()}; g.k.handleGlobalKeyUp=function(z,K,f,M,p,t,B){this.api.publish("keyboardserviceglobalkeyup",{keyCode:z,shiftKey:K,ctrlKey:f,altKey:M,metaKey:p,key:t,code:B});K=!1;if(this.T.aR)return K;(t=g.gq(this.api.pI()))&&(t=t.g6)&&t.l8&&(t.yj(z),K=!0);switch(z){case 9:Gq(this,!0);K=!0;break;case 32:if(this.api.B("web_speedmaster_spacebar_control")&&(!this.api.B("web_player_spacebar_control_bugfix")&&!this.T.ri||this.api.B("web_player_spacebar_control_bugfix"))&&!this.api.Z().C3){var v,I;z=(v=this.progressBar)== null?void 0:(I=v.Y)==null?void 0:I.isEnabled;K=this.KE(z)}break;case 39:(UK?M:f)&&!p&&this.api.t_()&&this.api.B("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),v=(v=this.api.getVideoData())?v.G8:[],I=KnW(v,this.api.getCurrentTime()*1E3),I!==-1&&this.S!=null&&(this.S.fU(1,v[I].title),this.api.seekTo(v[I].startTime/1E3,void 0,void 0,void 0,52),K=!0))}return K}; g.k.handleGlobalKeyDown=function(z,K,f,M,p,t,B,v){v||(this.T.aR=!1);var I=!1,G=this.api.Z();if(G.C3&&!this.api.isMutedByEmbedsMutedAutoplay())return I;var b=g.gq(this.api.pI());if(b&&(b=b.g6)&&b.l8)switch(z){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:I=b.N6(z)}G.W||I||(I=t||String.fromCharCode(z).toLowerCase(),this.Y+=I,"awesome".indexOf(this.Y)===0||this.api.B("web_player_rtr_ctrls")&&"bday".indexOf(this.Y)===0?(I=!0,4===this.Y.length&&this.Y==="bday"&&this.api.B("web_player_rtr_ctrls")&& (OAI(this.C),this.I5.FB()),7===this.Y.length&&this.Y==="awesome"&&Qko(this.api.getRootNode(),"ytp-color-party")):(this.Y=I,I="awesome".indexOf(this.Y)===0||"bday".indexOf(this.Y)===0));if(!I&&(!this.api.isMutedByEmbedsMutedAutoplay()||wif.includes(z))){var e=this.api.getVideoData(),w,D;b=(w=this.progressBar)==null?void 0:(D=w.Y)==null?void 0:D.isEnabled;w=e?e.G8:[];D=UK?M:f;switch(z){case 80:K&&!G.Xc&&(T8(this.Ka,JOu(),"Tr\u01b0\u1edbc"),this.api.previousVideo(),I=!0);break;case 78:K&&!G.Xc&&(T8(this.Ka, ln(),"Ti\u1ebfp theo"),this.api.nextVideo(),I=!0);break;case 74:this.api.t_()&&(this.api.startSeekCsiAction(),this.S?this.api.B("enable_key_press_seek_logging")?(I=bQ(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.S.KN(-1,10,I)):this.S.KN(-1,10):T8(this.Ka,{j:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",JB:!0,K:"ytp-svg-fill",V:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),I=!0);break;case 76:this.api.t_()&&(this.api.startSeekCsiAction(),this.S?this.api.B("enable_key_press_seek_logging")?(I=bQ(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.S.KN(1,10,I)):this.S.KN(1,10):T8(this.Ka,{j:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",JB:!0,K:"ytp-svg-fill",V:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),I=!0);break;case 37:this.api.t_()&&(this.api.startSeekCsiAction(),D?(D=$2d(w,this.api.getCurrentTime()*1E3),D!==-1&&this.S!=null&&(this.S.fU(-1,w[D].title),this.api.seekTo(w[D].startTime/1E3,void 0,void 0,void 0,53),I=!0)):(this.S?this.api.B("enable_key_press_seek_logging")?(I=bQ(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.S.KN(-1,5,I)):this.S.KN(-1,5):T8(this.Ka,{j:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},L:[{j:"path",JB:!0,K:"ytp-svg-fill",V:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),I=!0));break;case 39:this.api.t_()&&(this.api.startSeekCsiAction(),D?this.api.B("web_enable_keyboard_shortcut_for_timely_actions")||(D=KnW(w,this.api.getCurrentTime()*1E3),D!==-1&&this.S!=null&&(this.S.fU(1,w[D].title),this.api.seekTo(w[D].startTime/1E3,void 0,void 0,void 0,52),I=!0)):(this.S!=null?this.api.B("enable_key_press_seek_logging")?(I=bQ(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.S.KN(1,5,I)):this.S.KN(1, 5):T8(this.Ka,{j:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",JB:!0,K:"ytp-svg-fill",V:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),I=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),Uw(this.Ka,this.api.getVolume(),!1)):(this.api.mute(),Uw(this.Ka,0,!0));I=!0;break;case 32:I=this.api.B("web_speedmaster_spacebar_control")?!this.api.Z().Xc:this.KE(b);break;case 75:I=this.KE(b);break;case 190:K?G.enableSpeedOptions&&B6g(this)&&(I=this.api.getPlaybackRate(),this.api.setPlaybackRate(I+.25,!0),z08(this.Ka,!1),I=!0):this.api.t_()&&(this.step(1),I=!0);break;case 188:K? G.enableSpeedOptions&&B6g(this)&&(I=this.api.getPlaybackRate(),this.api.setPlaybackRate(I-.25,!0),z08(this.Ka,!0),I=!0):this.api.t_()&&(this.step(-1),I=!0);break;case 70:PVu(this.api)&&(this.api.toggleFullscreen().catch(function(){}),I=!0); break;case 27:b?(this.progressBar.Sz(),I=!0):this.W()&&(I=!0)}if(G.controlsType!=="3")switch(z){case 67:g.qN(this.api.pI())&&(G=this.api.getOption("captions","track"),this.api.toggleSubtitles(),KPu(this.Ka,!G||G&&!G.displayName),I=!0);break;case 79:w2(this,"textOpacity");break;case 87:w2(this,"windowOpacity");break;case 187:case 61:w2(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:w2(this,"fontSizeIncrement",!0,!0)}var y;K||f||M||(z>=48&&z<=57?y=z-48:z>=96&&z<=105&&(y=z-96));y!=null&&this.api.t_()&& (this.api.startSeekCsiAction(),G=this.api.getProgressState(),this.api.seekTo(y/10*(G.seekableEnd-G.seekableStart)+G.seekableStart,void 0,void 0,void 0,81),I=!0);I&&this.I5.FB()}this.T.GG=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:z,shiftKey:K,ctrlKey:f,altKey:M,metaKey:p,key:t,code:B,repeat:v},this.T);this.T.GG&&(I=!0);return I}; g.k.step=function(z){this.api.t_();if(this.api.getPlayerStateObject().isPaused()){var K=this.api.getVideoData().Y;K&&(K=K.video)&&this.api.seekBy(z/(K.fps||30),void 0,void 0,z>0?77:78)}}; g.k.KE=function(z){if(!this.api.Z().Xc){var K;var f,M=(K=this.api.getVideoData())==null?void 0:(f=K.getPlayerResponse())==null?void 0:f.playabilityStatus;if(M){var p;K=((p=g.A(M.miniplayer,w9Q))==null?void 0:p.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else K=!1;K&&this.api.LH("onExpandMiniplayer");z?this.progressBar.CL():(z=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.Ka.nx(z),z?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.k.JL=function(){g.tU(this.J);g.xI.prototype.JL.call(this)};g.h(g.Dn,g.F);g.Dn.prototype.Wn=zo(11); g.Dn.prototype.Dq=function(){var z=this.U.Z(),K=z.T||this.U.B("web_player_hide_overflow_button_if_empty_menu")&&this.ET.isEmpty();z=g.Jw(z)&&g.WD(this.U)&&g.Z(this.U.getPlayerStateObject(),128);var f=this.U.getPlayerSize();this.visible=this.U.wI()&&!z&&f.width>=240&&!g.zG(this.U.getVideoData())&&!K&&!this.S&&!this.U.isEmbedsShortsMode();g.k4(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.U.r$();this.U.logVisibility(this.element,this.visible&&this.C)}; g.Dn.prototype.Xt=function(z){g.F.prototype.Xt.call(this,z);this.U.logVisibility(this.element,this.visible&&z)}; g.Dn.prototype.JL=function(){g.F.prototype.JL.call(this);g.Dz(this.element,"ytp-overflow-button-visible")};g.h(N6u,g.xO);g.k=N6u.prototype;g.k.rX=function(z){z=VS(z);g.t$(this.element,z)&&(g.t$(this.S,z)||g.t$(this.closeButton,z)||Oh(this))}; g.k.Ip=function(){g.xO.prototype.Ip.call(this);this.U.Em(this.element)}; g.k.show=function(){this.l8&&this.U.publish("OVERFLOW_PANEL_OPENED");g.xO.prototype.show.call(this);this.element.setAttribute("aria-modal","true");I3a(this,!0)}; g.k.hide=function(){g.xO.prototype.hide.call(this);this.element.removeAttribute("aria-modal");I3a(this,!1)}; g.k.onFullscreenToggled=function(z){!z&&this.U8()&&Oh(this)}; g.k.isEmpty=function(){return this.actionButtons.length===0}; g.k.focus=function(){for(var z=g.a(this.actionButtons),K=z.next();!K.done;K=z.next())if(K=K.value,K.l8){K.focus();break}};g.h(GXq,g.F);g.h(biq,g.F);biq.prototype.onClick=function(z){g.v1(z,this.api)&&this.api.playVideoAt(this.index)};g.h(eKp,g.xO);g.k=eKp.prototype;g.k.show=function(){g.xO.prototype.show.call(this);this.S.X(this.api,"videodatachange",this.kC);this.S.X(this.api,"onPlaylistUpdate",this.kC);this.kC()}; g.k.hide=function(){g.xO.prototype.hide.call(this);g.g0(this.S);this.updatePlaylist(null)}; g.k.kC=function(){this.updatePlaylist(this.api.getPlaylist());this.api.Z().T&&(this.dE("ytp-playlist-menu-title-name").removeAttribute("href"),this.T&&(this.W8(this.T),this.T=null))}; g.k.Rk=function(){var z=this.playlist,K=z.author,f=K?"c\u1ee7a $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",M={CURRENT_POSITION:String(z.index+1),PLAYLIST_LENGTH:String(z.length)};K&&(M.AUTHOR=K);this.update({title:z.title,subtitle:g.Pt(f,M),playlisturl:this.api.getVideoUrl(!0)});K=z.Y;if(K===this.J)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[z.index];else{f=g.a(this.playlistData);for(M=f.next();!M.done;M=f.next())M.value.dispose(); f=z.length;this.playlistData=[];for(M=0;M=this.Y&&!z.T&&!K.isAd()&&!this.api.isEmbedsShortsMode()}else z=!1;this.visible=z;this.s3(this.visible);g.k4(this.element,"ytp-search-button-visible",this.visible);g.k4(this.element,"ytp-show-search-title",!this.api.wI());this.api.logVisibility(this.element,this.visible&&this.C)}; a_.prototype.Xt=function(z){g.F.prototype.Xt.call(this,z);this.api.logVisibility(this.element,this.visible&&z)};g.h(R_,g.F); R_.prototype.trigger=function(z,K,f,M){this.show();if(this.J&&z!==this.J){var p=1;this.Y&&(p=P9q(this));RKu(this,p,!1);Edd(this)}this.J=z;this.T=this.J===-1?this.D:this.N;z="";K?(this.G+=K,z=g.nd(this.G)):this.G=0;this.updateValue(this.J===-1?"durationBack":"durationForward",z);if(this.S==="hidden"||this.S==="fading-out")K=0,this.S==="fading-out"&&(K=P9q(this),Ln8(this)),Sv5(this,K),this.S!=="fading-out"&&uD8(this,this.T.querySelector(".ytp-seek-overlay-arrow-persistent")),this.S="fading-in";else if(this.S=== "fading-in"||this.S==="lingering")K=this.T.querySelector(".ytp-seek-overlay-duration"),z=g.uY(this.U.Z().experiments,"web_player_seek_overlay_duration_bump_scale")||.95,K.animate([{offset:0,transform:"scale(1)"},{offset:.5,transform:"scale("+z+")"},{offset:1,transform:"scale(1)"}],{duration:200,easing:"cubic-bezier(0, 1, 0.1, 1)"}),Ln8(this),this.S==="lingering"&&(this.W.stop(),this.W.start());this.Y1=(0,g.X)();f&&Hiu(this,f,M)}; R_.prototype.hQ=function(z,K,f,M){this.trigger(z,M)}; R_.prototype.KN=function(z,K,f){this.trigger(z,K);f&&(z=z===-1?this.N.visualElement:this.D.visualElement,f={seekData:f},(K=g.Vz())&&g.Mu(pc)(void 0,K,z,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",f,void 0))}; R_.prototype.fU=function(z,K,f){this.trigger(z,void 0,K,f)};g.h(g.SY,g.F);g.k=g.SY.prototype;g.k.mD=zo(8);g.k.onClick=function(){var z=this,K=this.api.Z(),f=this.api.getVideoData(this.api.getPresentingPlayerType()),M=this.api.getPlaylistId();K=this.api.B("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):K.getVideoUrl(f.videoId,M,void 0,!0);if(navigator.share)try{var p=navigator.share({title:f.title,url:K});p instanceof Promise&&p.catch(function(t){qvv(z,t)})}catch(t){t instanceof Error&&qvv(this,t)}else this.S.WX(),Oh(this.T,this.element,!1); this.api.logClick(this.element)}; g.k.Dq=function(){var z=this.api.Z(),K=this.api.isEmbedsShortsMode();g.k4(this.element,"ytp-show-share-title",g.Jw(z)&&!K);this.S.po()&&K?(z=(this.api.wE().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.H6(this.element,"right",z+"px")):K&&g.H6(this.element,"right","0px");this.updateValue("icon",{j:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",JB:!0,K:"ytp-svg-fill",V:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]}); this.visible=Qbu(this);g.k4(this.element,"ytp-share-button-visible",this.visible);this.s3(this.visible);this.tooltip.r$();this.api.logVisibility(this.element,Qbu(this)&&this.C)}; g.k.Xt=function(z){g.F.prototype.Xt.call(this,z);this.api.logVisibility(this.element,this.visible&&z)}; g.k.JL=function(){g.F.prototype.JL.call(this);g.Dz(this.element,"ytp-share-button-visible")};g.h(l3S,g.xO);g.k=l3S.prototype;g.k.yp=function(z){z=VS(z);g.t$(this.W,z)||g.t$(this.closeButton,z)||Oh(this)}; g.k.Ip=function(){g.xO.prototype.Ip.call(this);this.tooltip.Em(this.element);this.api.logVisibility(this.S,!1);for(var z=g.a(this.T),K=z.next();!K.done;K=z.next())K=K.value,this.api.hasVe(K.element)&&this.api.logVisibility(K.element,!1)}; g.k.show=function(){var z=this.l8;g.xO.prototype.show.call(this);this.Dq();z||this.api.LH("onSharePanelOpened")}; g.k.lqH=function(){this.l8&&this.Dq()}; g.k.Dq=function(){var z=this;g.ey(this.element,"ytp-share-panel-loading");g.Dz(this.element,"ytp-share-panel-fail");var K=this.api.getVideoData(),f=this.api.getPlaylistId()&&this.J.checked;K.getSharePanelCommand&&KI(this.api.Gm(),K.getSharePanelCommand,{includeListId:f}).then(function(M){z.CH()||(g.Dz(z.element,"ytp-share-panel-loading"),Wnu(z,M))}); K=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",K);this.updateValue("linkText",K);this.updateValue("shareLinkWithUrl",g.Pt("Chia s\u1ebb \u0111\u01b0\u1eddng li\u00ean k\u1ebft $URL",{URL:K}));b4(this.S);this.api.logVisibility(this.S,!0)}; g.k.onFullscreenToggled=function(z){!z&&this.U8()&&Oh(this)}; g.k.focus=function(){this.S.focus()}; g.k.JL=function(){g.xO.prototype.JL.call(this);VZd(this)};g.h(ii8,ER);g.k=ii8.prototype;g.k.JL=function(){jbS(this);ER.prototype.JL.call(this)}; g.k.t7=function(z){z.target!==this.dismissButton.element&&(this.Rs(!1),this.U.LH("innertubeCommand",this.onClickCommand))}; g.k.qs=function(){this.b_=!0;this.Rs(!0);this.Vf()}; g.k.mvE=function(z){this.G=z;this.Vf()}; g.k.onVideoDataChange=function(z,K){if(z=!!K.videoId&&this.videoId!==K.videoId)this.videoId=K.videoId,this.b_=!1,this.nH=!0,this.D=this.l_=!1,jbS(this),ANv(this,!1),this.Y=this.S=!1,Ly(this),d2g(this);if(z||!K.videoId)this.Y1=this.J=!1;var f,M;if(K==null?0:(f=K.getPlayerResponse())==null?0:(M=f.videoDetails)==null?0:M.isLiveContent)this.oX(!1);else{var p,t,B;K=g.A((p=K.getWatchNextResponse())==null?void 0:(t=p.playerOverlays)==null?void 0:(B=t.playerOverlayRenderer)==null?void 0:B.productsInVideoOverlayRenderer, p9_);this.G=this.enabled=!1;if(K){if(p=K==null?void 0:K.featuredProductsEntityKey){t=g.tf.getState().entities;var v;if((v=R7(t,"featuredProductsEntity",p))==null?0:v.productsData){this.oX(!1);return}}this.enabled=!0;if(!this.J){var I;v=(I=K.badgeInteractionLogging)==null?void 0:I.trackingParams;(this.J=!!v)&&this.U.setTrackingParams(this.badge.element,v||null)}if(!this.Y1){var G;if(this.Y1=!((G=K.dismissButton)==null||!G.trackingParams)){var b;this.U.setTrackingParams(this.dismissButton.element,((b= K.dismissButton)==null?void 0:b.trackingParams)||null)}}K.isContentForward&&(I=K.productsData,ANv(this,!0),d2g(this),I=sba(this,I),G=[],I.length>0&&G.push(I[0]),I.length>1&&(b=new g.F({j:"div",K:"ytp-suggested-action-more-products-icon"}),g.d(this,b),G.push(b),G.push.apply(G,g.P(I.slice(1)))),this.W=new g.F({j:"div",L:G,K:"ytp-suggested-action-content-forward-container"}),g.d(this,this.W),this.Bx.element.append(this.W.element));this.text=g.Lc(K.text);var e;if(I=(e=K.dismissButton)==null?void 0:e.a11yLabel)this.QE= g.Lc(I);this.onClickCommand=K.onClickCommand;this.timing=K.timing;this.St()}Hyq(this);Lz(this);this.Vf()}}; g.k.X7=function(){return!this.G&&this.enabled&&!this.b_&&!this.U.wI()&&!this.nI&&(this.D||this.nH)}; g.k.V6=function(z){ER.prototype.V6.call(this,z);if(this.S||this.Y)this.timing&&uQ(this.timing.preview)&&(this.S=!1,Ly(this),this.Y=!1,Ly(this),this.U.GE("shopping_overlay_preview_collapsed"),this.U.GE("shopping_overlay_preview_expanded"),z=EX(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),uQ(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.U.GE("shopping_overlay_expanded"),z.end=this.timing.expanded.endSec*1E3),this.U.St([z])), this.l_=!0,Lz(this);Ly(this)}; g.k.oX=function(z){(this.D=z)?(uP(this),Lz(this,!1)):(jbS(this),this.Px.start());this.Vf()}; g.k.St=function(z){var K=this.timing;z=(z===void 0?0:z)+this.U.getCurrentTime();var f=[],M=K.visible,p=K.preview;K=K.expanded;uQ(M)&&(JN8(M,z),f.push(EX(M.startSec,M.endSec,"shopping_overlay_visible")));uQ(p)&&(JN8(p,z),M=p.startSec+1,f.push(EX(p.startSec,M,"shopping_overlay_preview_collapsed")),f.push(EX(M,p.endSec,"shopping_overlay_preview_expanded")));uQ(K)&&(JN8(K,z),f.push(EX(K.startSec,K.endSec,"shopping_overlay_expanded")));this.U.St(f)}; g.k.Vf=function(){ER.prototype.Vf.call(this);this.U.getRootNode()&&g.k4(this.U.getRootNode(),"ytp-shopping-pill-shown",this.X7())};g.h(x2u,g.F); x2u.prototype.Dq=function(){var z=this.api.Z();this.s3(g.Jw(z)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.l8);var K=this.api.getVideoData(),f=!1;this.api.getPresentingPlayerType()===2?f=!!K.videoId&&!!K.isListed&&!!K.author&&!!K.TP&&!!K.profilePicture:g.Jw(z)&&(f=!!K.videoId&&!!K.TP&&!!K.profilePicture&&!g.zG(K)&&!z.T&&!(z.G&&this.api.getPlayerSize().width<200));var M=K.profilePicture;z=g.Jw(z)?K.expandedTitle:K.author;M=M===void 0? "":M;z=z===void 0?"":z;f?(this.Y!==M&&(this.S.style.backgroundImage="url("+M+")",this.Y=M),this.updateValue("channelLogoLabel",g.Pt("H\u00ecnh \u1ea3nh c\u1ee7a $CHANNEL_NAME",{CHANNEL_NAME:z})),g.ey(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Dz(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.S,f&&this.C);this.api.logVisibility(this.channelName,f&&this.C);this.subscribeButton&&(this.subscribeButton.channelId=K.rL);this.updateValue("expandedTitle", K.expandedTitle)};g.h(Pq,g.xO);Pq.prototype.show=function(){g.xO.prototype.show.call(this);this.S.start()}; Pq.prototype.hide=function(){g.xO.prototype.hide.call(this);this.S.stop()}; Pq.prototype.Up=function(z,K){z==="dataloaded"&&((this.w$=K.w$,this.PA=K.PA,isNaN(this.w$)||isNaN(this.PA))?this.T&&(this.U.GE("intro"),this.U.removeEventListener(g.wE("intro"),this.G),this.U.removeEventListener(g.DU("intro"),this.W),this.U.removeEventListener("onShowControls",this.J),this.hide(),this.T=!1):(this.U.addEventListener(g.wE("intro"),this.G),this.U.addEventListener(g.DU("intro"),this.W),this.U.addEventListener("onShowControls",this.J),z=new g.bS(this.w$,this.PA,{priority:9,namespace:"intro"}), this.U.St([z]),this.T=!0))};g.h(Hq,g.F);Hq.prototype.onClick=function(){this.U.pG()}; Hq.prototype.Dq=function(){var z=!0;g.Jw(this.U.Z())&&(z=z&&this.U.wE().getPlayerSize().width>=480);this.s3(z);z=this.updateValue;var K=this.U.B("delhi_modern_web_player_icons"),f=K?{j:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",V:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{j:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",JB:!0,V:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]};K=K?{j:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",V:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{j:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",JB:!0,K:"ytp-svg-fill",V:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]};z.call(this,"icon",this.U.Lz()?f:K)};g.h(Oi8,g.F);Oi8.prototype.JL=function(){this.S=null;g.F.prototype.JL.call(this)};g.h(QX,g.F);QX.prototype.onClick=function(){this.U.LH("innertubeCommand",this.Y)}; QX.prototype.Y1=function(z){z!==this.G&&(this.update({title:z,ariaLabel:z}),this.G=z);z?this.show():this.hide()}; QX.prototype.N=function(){this.S.disabled=this.Y==null;g.k4(this.S,"ytp-chapter-container-disabled",this.S.disabled);this.C6()};g.h(qk,QX);qk.prototype.onClickCommand=function(z){g.A(z,p5)&&this.C6()}; qk.prototype.updateVideoData=function(z,K){var f,M,p;z=g.A((f=K.getWatchNextResponse())==null?void 0:(M=f.playerOverlays)==null?void 0:(p=M.playerOverlayRenderer)==null?void 0:p.decoratedPlayerBarRenderer,VJ);f=g.A(z==null?void 0:z.playerBarActionButton,g.Fd);if(this.U.B("web_player_updated_entrypoint")){this.D=Vm(f==null?void 0:f.text);var t;M=(t=f==null?void 0:f.tooltip)!=null?t:"Xem ch\u01b0\u01a1ng";this.W.setAttribute("title",M)}this.Y=f==null?void 0:f.command;QX.prototype.N.call(this)}; qk.prototype.C6=function(){var z=this.D,K=this.J.S,f,M=((f=this.U.getLoopRange())==null?void 0:f.type)==="clips";if(K.length>1&&!M){z=this.U.getProgressState().current*1E3;f=I_(K,z);z=K[f].title||"Ph\u00e2n c\u1ea3nh";if(f!==this.currentIndex||this.T)this.U.LH("innertubeCommand",K[f].onActiveCommand),this.currentIndex=f;this.T=!1}else this.T=!0;QX.prototype.Y1.call(this,z)};g.h(mv,g.RT);mv.prototype.Y=function(){var z;(z=this.element.parentElement)==null||z.classList.contains("ytp-right-controls-left");(this.S=!this.S)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; mv.prototype.isExpanded=function(){return this.S};g.h(lQ,g.F);lQ.prototype.T=function(z){g.Z(z.state,32)?Zi8(this,this.api.ax()):this.l8&&(g.Z(z.state,16)||g.Z(z.state,1))||this.fade.hide()}; lQ.prototype.Xo=function(){var z=this.api.getPlayerStateObject();(g.Z(z,32)||g.Z(z,16))&&od5(this)}; lQ.prototype.J=function(){this.frameIndex=NaN;od5(this)}; lQ.prototype.hide=function(){this.S&&Zi8(this,null);g.F.prototype.hide.call(this)};g.h(C98,g.F);g.k=C98.prototype;g.k.onClick=function(){var z=this;if(this.U.Z().nI||this.U.Z().G){this.U.logClick(this.element);try{this.U.toggleFullscreen().catch(function(K){z.wr(K)})}catch(K){this.wr(K)}}else Oh(this.message,this.element,!0)}; g.k.wr=function(z){String(z).includes("fullscreen error")?g.Al(z):g.sm(z);this.T9()}; g.k.T9=function(){this.disable();this.message.uP(this.element,!0)}; g.k.xT=function(){ET()===this.U.getRootNode()?this.T.start():(this.T.stop(),this.message&&this.message.hide())}; g.k.C8=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var z=window.screen.width*.9,K=window.screen.height*.9,f=Math.max(window.outerWidth,window.innerWidth),M=Math.max(window.outerHeight,window.innerHeight);if(f>M!==z>K){var p=f;f=M;M=p}z>f&&K>M&&this.T9()}}; g.k.disable=function(){var z=this;if(!this.message){var K=(Sp(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Ch\u1ebf \u0111\u1ed9 to\u00e0n m\u00e0n h\u00ecnh kh\u00f4ng kh\u1ea3 d\u1ee5ng. $BEGIN_LINKT\u00ecm hi\u1ec3u th\u00eam$END_LINK":"Tr\u00ecnh duy\u1ec7t c\u1ee7a b\u1ea1n kh\u00f4ng h\u1ed7 tr\u1ee3 ch\u1ebf \u0111\u1ed9 to\u00e0n m\u00e0n h\u00ecnh. $BEGIN_LINKT\u00ecm hi\u1ec3u th\u00eam$END_LINK").split(/\$(BEGIN|END)_LINK/); this.message=new g.xO(this.U,{j:"div",Wx:["ytp-popup","ytp-generic-popup"],V:{role:"alert",tabindex:"0"},L:[K[0],{j:"a",V:{href:"https://support.google.com/youtube/answer/6276924",target:this.U.Z().N},qc:K[2]},K[4]]},100,!0);this.message.hide();g.d(this,this.message);this.message.subscribe("show",function(f){z.Y.zJ(z.message,f)}); g.dq(this.U,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.S)();this.S=null}}; g.k.Dq=function(){var z=PVu(this.U),K=this.U.Z().G&&this.U.getPlayerSize().width<250;this.s3(z&&!K);var f;((f=this.U.Z())==null?0:f.B("embeds_use_parent_visibility_in_ve_logging"))?this.U.logVisibility(this.element,this.l8&&this.C):this.U.logVisibility(this.element,this.l8)}; g.k.ZE=function(z){if(z){var K=g.qs(this.U,"Tho\u00e1t kh\u1ecfi ch\u1ebf \u0111\u1ed9 to\u00e0n m\u00e0n h\u00ecnh","f");this.update({"data-title-no-tooltip":"Tho\u00e1t kh\u1ecfi ch\u1ebf \u0111\u1ed9 to\u00e0n m\u00e0n h\u00ecnh"});document.activeElement===this.element&&this.U.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(f){g.Al(f)})}else K=g.qs(this.U,"To\u00e0n m\u00e0n h\u00ecnh","f"),this.update({"data-title-no-tooltip":"To\u00e0n m\u00e0n h\u00ecnh"}); z=T6T(this,z);K=this.message?null:K;this.update({title:K,icon:z});this.Y.XL().r$()}; g.k.JL=function(){this.message||((0,this.S)(),this.S=null);g.F.prototype.JL.call(this)}; g.k.Xt=function(z){g.F.prototype.Xt.call(this,z);var K;((K=this.U.Z())==null?0:K.B("embeds_use_parent_visibility_in_ve_logging"))&&this.U.logVisibility(this.element,this.l8&&z)};g.h(VX,g.F);VX.prototype.onClick=function(){this.U.logClick(this.element);this.U.seekBy(this.S,!0);var z=this.S>0?1:-1,K=Math.abs(this.S),f=this.U.Cb().Tb;f&&f.KN(z,K);this.Y.isActive()?this.T=!0:(z=["ytp-jump-spin"],this.S<0&&z.push("backwards"),this.element.classList.add.apply(this.element.classList,g.P(z)),g.$4(this.Y))};g.h(ny,QX);ny.prototype.onClickCommand=function(z){g.A(z,fyS)&&this.C6()}; ny.prototype.updateVideoData=function(){var z,K;this.Y=(z=zRS(this))==null?void 0:(K=z.onTap)==null?void 0:K.innertubeCommand;QX.prototype.N.call(this)}; ny.prototype.C6=function(){var z="",K=this.J.G,f,M=(f=zRS(this))==null?void 0:f.headerTitle;f=M?g.Lc(M):"";var p;M=((p=this.U.getLoopRange())==null?void 0:p.type)==="clips";K.length>1&&!M&&(z=this.U.getProgressState().current*1E3,p=zKo(K,z),z=p!=null?K[p].title:f,p!=null&&p!==this.currentIndex&&(this.U.LH("innertubeCommand",K[p].onActiveCommand),this.currentIndex=p));QX.prototype.Y1.call(this,z)};g.h(Wq,g.F);Wq.prototype.onClick=function(){this.U.LH("onCollapseMiniplayer");this.U.logClick(this.element)}; Wq.prototype.Dq=function(){this.visible=!this.U.isFullscreen();this.s3(this.visible);this.U.logVisibility(this.element,this.visible&&this.C)}; Wq.prototype.Xt=function(z){g.F.prototype.Xt.call(this,z);this.U.logVisibility(this.element,this.visible&&z)};g.h(Js,g.F);Js.prototype.init=function(){this.updateValue("minvalue",this.T);this.updateValue("maxvalue",this.J);this.updateValue("stepvalue",this.W);this.updateValue("slidervalue",this.S);K5q(this,this.S)}; Js.prototype.a_=function(){g2(this,Number(this.Y.value));this.Y.focus()}; Js.prototype.Xq=function(z){if(!z.defaultPrevented){switch(z.code){case "ArrowDown":z=-this.W;break;case "ArrowUp":z=this.W;break;default:return}g2(this,Math.min(this.J,Math.max(Number((this.S+z).toFixed(2)),this.T)))}};g.h($_p,Js);g.k=$_p.prototype;g.k.onVolumeChange=function(z){if(this.G)this.G=!1;else{var K=z.volume;K===0||z.muted?g2(this,0):g2(this,K)}}; g.k.a_=function(){Js.prototype.a_.call(this);this.D(this.S)}; g.k.Xq=function(z){Js.prototype.Xq.call(this,z);this.D(this.S)}; g.k.oe=function(z){var K=z.deltaX||z.deltaY;K=z.deltaMode?g.qt(this.S+K,0,100):g.qt(this.S+g.qt(K/10,-10,10),0,100);K===0?g2(this,0):g2(this,K);this.D(K);z.preventDefault()}; g.k.SO=function(z,K){this.G=!0;z===0||K?this.U.mute():(this.U.isMuted()&&this.U.unMute(),this.U.setVolume(z))};g.h(fCu,g.F);g.h(d2,g.F);g.k=d2.prototype;g.k.gD=function(z){this.visible=z.width>=300||this.vx;this.s3(this.visible);this.U.logVisibility(this.element,this.visible&&this.C)}; g.k.xJ=function(){this.U.Z().Bx?this.U.isMuted()?this.U.unMute():this.U.mute():Oh(this.message,this.element,!0);this.U.logClick(this.element)}; g.k.Plh=function(z){if(this.U.Z().Bx&&this.S)if(z.target===this.T){var K;if(!this.U.vc()||((K=this.S)==null?0:K.isVisible))this.xJ();else{var f;(f=this.S)!=null&&iQ(f,!0)}}else{var M;(M=this.S)!=null&&iQ(M,!0)}else this.xJ()}; g.k.onVolumeChange=function(z){this.setVolume(z.volume,z.muted)}; g.k.setVolume=function(z,K){var f=this,M=K?0:z/100;z=M===0?1:z>50?1:0;if(this.N!==z){var p=this.D;isNaN(p)?NCW(this,z):bYa(this.Bx,function(B){NCW(f,p+(f.N-p)*B)},250); this.N=z}M=M===0?1:0;if(this.G!==M){var t=this.nH;isNaN(t)?vAI(this,M):bYa(this.Hx,function(B){vAI(f,t+(f.G-t)*B)},250); this.G=M}pn8(this,K)}; g.k.Xt=function(z){g.F.prototype.Xt.call(this,z);this.U.logVisibility(this.element,this.visible&&z)}; var tVp=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",24.77," C",21.89,",",23.85," ",24,",",21.17," ",24,",",18," C",24,",",14.83," ",21.89,",",12.15," ",19,",",11.29," L",19,",",11.29," Z"],BCT=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ", 23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.h(g.cq,g.F);g.k=g.cq.prototype;g.k.onStateChange=function(z){this.Xr(z.state);var K;((K=this.U.Z())==null?0:K.B("embeds_use_parent_visibility_in_ve_logging"))&&this.U.logVisibility(this.element,this.l8&&this.C)}; g.k.Xr=function(z){var K=g.V_(this.U.getVideoData()),f=!1;z.isOrWillBePlaying()?z=K?4:2:g.Z(z,2)?(z=3,f=K):z=1;this.element.disabled=f;if(this.S!==z){K=null;switch(z){case 2:K=g.qs(this.U,"T\u1ea1m d\u1eebng","k");this.update({"data-title-no-tooltip":"T\u1ea1m d\u1eebng"});break;case 3:K="Ph\u00e1t l\u1ea1i";this.update({"data-title-no-tooltip":"Ph\u00e1t l\u1ea1i"});break;case 1:K=g.qs(this.U,"Ph\u00e1t","k");this.update({"data-title-no-tooltip":"Ph\u00e1t"});break;case 4:K="Ng\u1eebng ph\u00e1t l\u1ea1i tr\u1ef1c ti\u1ebfp", this.update({"data-title-no-tooltip":"Ng\u1eebng ph\u00e1t l\u1ea1i tr\u1ef1c ti\u1ebfp"})}z===3?this.update({title:K,icon:ICg(this,z)}):(this.update({title:K}),(K=ICg(this,z))&&this.S&&this.S!==3?wEp(this.transition,this.element,K):this.updateValue("icon",K));this.tooltip.r$();this.S=z}}; g.k.onVideoDataChange=function(){g.k4(this.element,"ytp-play-button-playlist",g.WD(this.U))}; g.k.KE=function(z){this.U.logClick(this.element);if(this.U.getPlayerStateObject().isOrWillBePlaying())this.U.pauseVideo();else{if(this.U.isMinimized()&&this.U.getPlayerStateObject().isCued()){var K={},f;if((f=this.U.getVideoData())==null?0:f.W)K.cttAuthInfo={token:this.U.getVideoData().W,videoId:this.U.getVideoData().videoId};oV("direct_playback",K);this.U.Rx().timerName="direct_playback"}this.U.playVideo()}this.U.isMinimized()&&(z==null?void 0:z.type)==="click"&&this.element.blur()}; g.k.Xt=function(z){g.F.prototype.Xt.call(this,z);var K;((K=this.U.Z())==null?0:K.B("embeds_use_parent_visibility_in_ve_logging"))&&this.U.logVisibility(this.element,this.l8&&z)};g.h(g.sX,g.F);g.k=g.sX.prototype;g.k.onVideoDataChange=function(){eR5(this);this.J&&(this.W8(this.J),this.J=null);this.videoData=this.U.getVideoData(1);if(this.playlist=this.U.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.J=this.X(this.U,"progresssync",this.YS);this.T=wnS(this);bTu(this);this.bJ(this.U.wE().getPlayerSize())}; g.k.bJ=function(z){z=z===void 0?this.U.wE().getPlayerSize():z;var K,f=((K=this.U.getLoopRange())==null?void 0:K.type)==="clips";z=(g.WD(this.U)||this.S&&g.cD(this.U)&&!this.U.B("web_hide_next_button")||D_u(this))&&!f&&(this.S||z.width>=400);this.s3(z);this.U.logVisibility(this.element,z)}; g.k.onClick=function(z){this.U.logClick(this.element);var K=!0;this.G?K=g.v1(z,this.U):z.preventDefault();K&&(this.S&&this.U.getPresentingPlayerType()===5?this.U.publish("ytoprerollinternstitialnext"):this.S?(yu(this.U.Rx()),this.U.publish("playlistnextbuttonclicked",this.element),this.U.nextVideo(!0)):this.T?this.U.seekTo(0):(yu(this.U.Rx()),this.U.publish("playlistprevbuttonclicked",this.element),this.U.previousVideo(!0)))}; g.k.YS=function(){var z=wnS(this);z!==this.T&&(this.T=z,bTu(this))}; g.k.JL=function(){this.Y&&(this.Y(),this.Y=null);eR5(this);g.F.prototype.JL.call(this)};g.h(kyq,g.F);g.k=kyq.prototype;g.k.qE=function(z){this.rJ(z.pageX);this.Lw(z.pageX+z.deltaX);hRI(this)}; g.k.rJ=function(z){this.Y1=z-this.vx}; g.k.Lw=function(z){z-=this.vx;!isNaN(this.Y1)&&this.thumbnails.length>0&&(this.N=z-this.Y1,this.thumbnails.length>0&&this.N!==0&&(this.T=this.D+this.N,z=L5S(this,this.T),this.T<=this.S/2&&this.T>=uKd(this)?(this.api.seekTo(z,!1,void 0,void 0,25),g.H6(this.nH,"transform","translateX("+(this.T-this.S/2)+"px)"),yDW(this,z)):this.T=this.D))}; g.k.Tv=function(){this.l_&&(this.l_.L4=!0);var z=(0,g.X)()-this.Xc<300;if(Math.abs(this.N)<5&&!z){this.Xc=(0,g.X)();z=this.Y1+this.N;var K=this.S/2-z;this.rJ(z);this.Lw(z+K);hRI(this);this.api.logClick(this.W)}hRI(this)}; g.k.JW=function(){As(this,this.api.getCurrentTime())}; g.k.play=function(z){this.api.seekTo(L5S(this,this.T),void 0,void 0,void 0,26);this.api.playVideo();z&&this.api.logClick(this.playButton)}; g.k.onExit=function(z){this.api.seekTo(this.Px,void 0,void 0,void 0,63);this.api.playVideo();z&&this.api.logClick(this.dismissButton)}; g.k.NB=function(z,K){this.vx=z;this.S=K;As(this,this.api.getCurrentTime())}; g.k.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Px=this.api.getCurrentTime(),yDW(this,this.Px),g.k4(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Bx=this.X(this.element,"wheel",this.qE),this.logVisibility(this.isEnabled))}; g.k.disable=function(){this.isEnabled=!1;this.hide();g.k4(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Bx&&this.W8(this.Bx);this.logVisibility(this.isEnabled)}; g.k.reset=function(){this.disable();this.J=[];this.eV=!1}; g.k.logVisibility=function(z){this.api.logVisibility(this.element,z);this.api.logVisibility(this.W,z);this.api.logVisibility(this.dismissButton,z);this.api.logVisibility(this.playButton,z)}; g.k.JL=function(){for(;this.Y.length;){var z=void 0;(z=this.Y.pop())==null||z.dispose()}g.F.prototype.JL.call(this)}; g.h(aCI,g.F);g.h(RRa,g.F);g.h(EAv,g.F);g.h(jY,g.F);jY.prototype.H1=function(z){return z==="PLAY_PROGRESS"?this.D:z==="LOAD_PROGRESS"?this.G:z==="LIVE_BUFFER"?this.W:this.T};QXS.prototype.update=function(z,K,f,M){f=f===void 0?0:f;this.width=K;this.J=f;this.S=K-f-(M===void 0?0:M);this.position=g.qt(z,f,f+this.S);this.T=this.position-f;this.Y=this.T/this.S};g.h(qO8,g.F);g.h(g.xJ,g.RT);g.k=g.xJ.prototype; g.k.Ab=function(){var z=!1,K=this.api.getVideoData();if(!K)return z;this.api.GE("timedMarkerCueRange");VVg(this);for(var f=g.a(K.VE),M=f.next();!M.done;M=f.next()){M=M.value;var p=void 0,t=(p=this.QE[M])==null?void 0:p.markerType;p=void 0;var B=(p=this.QE[M])==null?void 0:p.markers;if(!B)break;if(t==="MARKER_TYPE_TIMESTAMPS"){z=g.a(B);for(t=z.next();!t.done;t=z.next()){p=t.value;t=new qO8;B=void 0;t.title=((B=p.title)==null?void 0:B.simpleText)||"";t.timeRangeStartMillis=Number(p.startMillis);t.S= Number(p.durationMillis);var v=B=void 0;t.onActiveCommand=(v=(B=p.onActive)==null?void 0:B.innertubeCommand)!=null?v:void 0;d_p(this,t)}cDu(this,this.G);z=this.G;t=this.XK;p=[];B=null;for(v=0;vI&&(B.end=I);I=f3u(I,I+b);p.push(I);B=I;t[I.id]=z[v].onActiveCommand}}this.api.St(p);this.Ix=this.QE[M];z=!0}else if(t==="MARKER_TYPE_HEATMAP"){M=this.QE[M];b=G=p=I=v=B=void 0;if(M&& M.markers){t=(p=(b=M.markersMetadata)==null?void 0:(G=b.heatmapMetadata)==null?void 0:G.minHeightDp)!=null?p:0;p=(B=(I=M.markersMetadata)==null?void 0:(v=I.heatmapMetadata)==null?void 0:v.maxHeightDp)!=null?B:60;B=this.S.length;v=null;for(I=0;I=b&&y<=e&&G.push(D)}p>0&&(this.l_.style.height= p+"px");b=this.J[I];e=G;D=t;var R=p,S=I===0;S=S===void 0?!1:S;Pw8(b,R);w=e;y=b.Y;S=S===void 0?!1:S;var E=1E3/w.length,L=[];L.push({x:0,y:100});for(var q=0;q0&&(v=G[G.length-1])}g.F_(this)}p=void 0;t=[];if(M=(p=M.markersDecoration)==null?void 0:p.timedMarkerDecorations)for(M=g.a(M),p=M.next();!p.done;p=M.next())p=p.value,I=v=B=void 0,t.push({visibleTimeRangeStartMillis:(B=p.visibleTimeRangeStartMillis)!=null?B:-1,visibleTimeRangeEndMillis:(v=p.visibleTimeRangeEndMillis)!=null?v:-1,decorationTimeMillis:(I=p.decorationTimeMillis)!= null?I:NaN,label:p.label?g.Lc(p.label):""});M=t;this.heatMarkersDecorations=M}}K.mW=this.G;g.k4(this.element,"ytp-timed-markers-enabled",z);return z}; g.k.NB=function(){g.F_(this);Zn(this);cDu(this,this.G);if(this.Y){var z=g.J$(this.element).x||0;this.Y.NB(z,this.W)}}; g.k.sFd=function(){var z=this.api.getVideoData();z&&oAW(this,z)}; g.k.onClickCommand=function(z){if(z=g.A(z,p5)){var K=z.key;z.isVisible&&K&&YO8(this,K)}}; g.k.UL1=function(z){this.api.LH("innertubeCommand",this.XK[z.id])}; g.k.C6=function(){Zn(this);var z=this.api.getCurrentTime();(zthis.clipEnd)&&this.kV()}; g.k.Ej=function(z){if(!z.defaultPrevented){var K=!1;switch(z.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);K=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);K=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);K=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);K=!0;break;case 38:this.api.B("enable_key_press_seek_logging")&&KY(this,this.api.getCurrentTime(),this.api.getCurrentTime()+5,"SEEK_SOURCE_SEEK_FORWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"); this.api.seekBy(5,void 0,void 0,72);K=!0;break;case 40:this.api.B("enable_key_press_seek_logging")&&KY(this,this.api.getCurrentTime(),this.api.getCurrentTime()-5,"SEEK_SOURCE_SEEK_BACKWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"),this.api.seekBy(-5,void 0,void 0,71),K=!0}K&&z.preventDefault()}}; g.k.Up=function(z,K){this.updateVideoData(K,z==="newdata")}; g.k.Mz=function(){this.Up("newdata",this.api.getVideoData())}; g.k.updateVideoData=function(z,K){K=K===void 0?!1:K;var f=!!z&&z.bl();f&&(UM(z)||rD5(this)?this.lW=!1:this.lW=z.allowLiveDvr,g.k4(this.api.getRootNode(),"ytp-enable-live-buffer",!(z==null||!UM(z))),oAW(this,z));v1S(this,this.api.t_());if(K){if(f){K=z.clipEnd;this.clipStart=z.clipStart;this.clipEnd=K;$2(this);for(Tq(this,this.Y1,this.TP);this.J.length>0;)this.J.pop().dispose();this.heatMarkersDecorations=[];this.W1={};var M;(M=this.Y)==null||M.reset();BE(this);g.k4(this.api.getRootNode(),"ytp-fine-scrubbing-exp", X_(this))}else this.kV();this.SY()}if(z){var p;M=((p=this.U3)==null?void 0:p.type)==="clips";if(p=!z.isLivePlayback){p=this.api.getVideoData();K=g.na(p);f=W5T(p);var t;p=K!=null||f!=null&&f.length>0||((t=p.UO)==null?void 0:t.length)>0}if(p&&!M){t=this.api.getVideoData();M=g.na(t);p=!1;if(M==null?0:M.markersMap){p=this.api.getVideoData();var B;p.EO=((B=M.visibleOnLoad)==null?void 0:B.key)||p.EO;B=g.a(M.markersMap);for(M=B.next();!M.done;M=B.next())M=M.value,M.key&&M.value&&(this.W1[M.key]=M.value, M.value.onChapterRepeat&&(p.MUc=M.value.onChapterRepeat));p.EO!=null&&YO8(this,p.EO);p=!0}var v;if(((v=t.UO)==null?void 0:v.length)>0){v=g.tf.getState().entities;B=g.a(t.UO);for(M=B.next();!M.done;M=B.next()){M=M.value;f=void 0;K=(f=R7(v,"macroMarkersListEntity",M))==null?void 0:f.markersList;var I=f=void 0;if(((f=K)==null?void 0:f.markerType)==="MARKER_TYPE_TIMESTAMPS"||((I=K)==null?void 0:I.markerType)==="MARKER_TYPE_HEATMAP")this.QE[M]=K}p=this.Ab()||p}!p&&(v=W5T(t))&&(gA8(this,v),t.G8=this.S, JDq(this));Cwq(this,null);z.Fu&&this.J.length===0&&(z=z.Fu,v=z.key,z.isVisible&&v&&YO8(this,v))}else m_d(this),VVg(this)}Zn(this)}; g.k.kG=function(z){this.D&&!g.Z(z.state,32)&&this.api.getPresentingPlayerType()!==3&&this.D.cancel();var K;((K=this.Y)==null?0:K.isEnabled)&&g.Z(z.state,8)&&this.api.pauseVideo();z=this.api.getPresentingPlayerType()===2||!this.api.t_()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.k4(this.K3,"ytp-hide-scrubber-button",z)}; g.k.Z5=function(z){var K=!!this.U3!==!!z,f=this.U3;this.U3=z;Cwq(this,f);(z==null?void 0:z.type)!=="clips"&&z||(z?(this.updateValue("clipstarticon",H8a()),this.updateValue("clipendicon",H8a()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",kNI()),this.updateValue("clipendicon",yO5()),this.updateValue("clipstarttitle","Xem to\u00e0n b\u1ed9 video"),this.updateValue("clipendtitle","Xem to\u00e0n b\u1ed9 video")),K&&(this.updateVideoData(this.api.getVideoData(), !0),g.F_(this)),$2(this));Tq(this,this.Y1,this.TP)}; g.k.I3E=function(){this.api.publish("progressBarHoverStart")}; g.k.BOE=function(z,K,f){var M=g.J$(this.element),p=r2(this).S,t=f?f.getAttribute("data-tooltip"):void 0,B=f?f.getAttribute("data-position"):void 0,v=f?f.getAttribute("data-offset-y"):void 0;v=v?Number(v):0;B&&(z=XN(this.T,Number(f.getAttribute("data-position")),0)*p+g.J$(this.progressBar).x);this.SE.x=z-M.x;this.SE.y=K-M.y;z=r2(this);f=zB(this,z);K=0;var I;if((I=this.api.getVideoData())==null?0:UM(I))(I=this.api.getProgressState().seekableEnd)&&f>I&&(f=I,z.position=XN(this.T,I)*r2(this).S),K=this.T.Y; rD5(this)&&(K=this.T.Y);I=t||g.nd(this.lW?f-this.T.S:f-K);K=z.position+this.w$;f-=this.api.MB();var G;if((G=this.Y)==null||!G.isEnabled)if(this.api.ax()){if(this.S.length>1){G=UX(this,this.SE.x,!0);if(!this.U3)for(M=0;M1)for(M=0;M0)for(G=this.SE.x,M=g.a(this.G),p=M.next();!p.done;p=M.next())p=p.value,B=OX(this,p.timeRangeStartMillis/ (this.T.S*1E3),r2(this)),g.k4(p.element,"ytp-timed-marker-hover",B<=G&&B+6>=G);M=this.tooltip.scale;G=this.api.B("delhi_modern_web_player")?67:45;v=(isNaN(v)?0:v)-G*M;this.api.B("web_key_moments_markers")?this.Ix?(G=zKo(this.G,f*1E3),G=G!=null?this.G[G].title:""):(G=I_(this.S,f*1E3),G=this.S[G].title):(G=I_(this.S,f*1E3),G=this.S[G].title);G||(v+=16*M);this.tooltip.scale===.6&&(g.$t(this.api.Z())?(v=this.api.wE().getPlayerSize().height-225,M=this.api.B("delhi_modern_web_player")?70:110,v=G?v+M:v+ M+16):v=G?110:126);M=I_(this.S,f*1E3);this.eV=TCa(this,f,M)?M:TCa(this,f,M+1)?M+1:-1;g.k4(this.api.getRootNode(),"ytp-progress-bar-snap",this.eV!==-1&&this.S.length>1);M=!1;p=g.a(this.heatMarkersDecorations);for(B=p.next();!B.done;B=p.next()){B=B.value;var b=f*1E3;b>=B.visibleTimeRangeStartMillis&&b<=B.visibleTimeRangeEndMillis&&(G=B.label,I=g.nd(B.decorationTimeMillis/1E3),M=!0)}this.C3!==M&&(this.C3=M,this.api.logVisibility(this.t9,this.C3));g.k4(this.api.getRootNode(),"ytp-progress-bar-decoration", M);M=160*this.tooltip.scale*2;p=G.length*(this.N?8.55:5.7);p=p<=M?p:M;B=p<160*this.tooltip.scale;M=3;!B&&p/2>z.position&&(M=1);!B&&p/2>this.W-z.position&&(M=2);this.api.Z().G&&(v-=10);this.J.length&&this.J[0].bl&&(v-=14*(this.N?2:1),this.Px||(this.Px=!0,this.api.logVisibility(this.l_,this.Px)));var e;if(X_(this)&&(((e=this.Y)==null?0:e.isEnabled)||this.VE>0)){var w;v-=((w=this.Y)==null?0:w.isEnabled)?MC(this):this.VE}e=void 0;X_(this)&&!this.api.B("web_player_hide_fine_scrubbing_edu")&&(e="K\u00e9o l\u00ean \u0111\u1ec3 tua ch\u00ednh x\u00e1c", this.vx||(this.vx=!0,this.api.logVisibility(this.b3,this.vx)));this.tooltip.Gu(K,f,I,!!t,v,G,M,e)}else this.tooltip.Gu(K,f,I,!!t,v);g.ey(this.api.getRootNode(),"ytp-progress-bar-hover");OTo(this)}; g.k.CPf=function(){this.SY();g.Dz(this.api.getRootNode(),"ytp-progress-bar-hover");this.Px&&(this.Px=!1,this.api.logVisibility(this.l_,this.Px));this.vx&&(this.vx=!1,this.api.logVisibility(this.b3,this.vx));this.api.B("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.k.vbL=function(z,K){var f=g.J$(this.element);this.RF=z-f.x;X_(this)&&this.Y&&(this.Y.eV?As(this.Y,this.api.getCurrentTime()):SOS(this.Y),this.Y.show(),g.k4(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.Y.isEnabled));this.PA&&(this.PA.dispose(),this.PA=null);this.Yx=K;this.Gw=this.api.getCurrentTime();this.S.length>1&&this.eV!==-1?this.api.seekTo(this.S[this.eV].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(zB(this,r2(this)),!1,void 0,void 0,7);g.ey(this.element,"ytp-drag");(this.Hm= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.k.G5c=function(){if(X_(this)&&this.Y){var z=MC(this);this.VE>=z*.5?(this.Y.enable(),As(this.Y,this.api.getCurrentTime()),N$u(this,z)):BE(this)}if(g.Z(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var K;if((K=this.Y)==null?0:K.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.S.length>1&&this.eV!==-1)this.api.B("html5_enable_progress_bar_slide_seek_logging")&&KY(this,this.Gw,this.S[this.eV].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.S[this.eV].startTime/1E3,void 0,void 0,void 0,7);else{z=zB(this,r2(this));this.api.B("html5_enable_progress_bar_slide_seek_logging")&&KY(this,this.Gw,z,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(z,void 0,void 0,void 0,7);K=g.a(this.heatMarkersDecorations);for(var f=K.next();!f.done;f=K.next())f=f.value,z*1E3>=f.visibleTimeRangeStartMillis&&z*1E3<=f.visibleTimeRangeEndMillis&& this.api.logClick(this.t9)}g.Dz(this.element,"ytp-drag");this.Hx&&(this.nH.src=this.Hx);this.Hm&&!g.Z(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.k.PPq=function(z,K){var f=this,M=r2(this),p=zB(this,M);this.api.wE().ED||(M.position>this.RF+2?this.ra&&(this.nH.src=this.ra):M.position1);this.s3(z&&this.U.wE().getPlayerSize().width>=400);this.U.logVisibility(this.element,this.l8);var K=1;z&&this.isActive()&&(K=2);if(this.S!==K){this.S=K;z=this.U.B("delhi_modern_web_player_icons");switch(K){case 1:this.updateValue("icon",z?{j:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",V:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V8C1.68 8.00 2.34 8.05 3 8.15V5H21V19H13.84C13.94 19.65 13.99 20.31 14 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:{j:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",JB:!0,V:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",fill:"#fff"}}]});break;case 2:this.updateValue("icon", z?{j:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",V:{d:"M21.20 3.01C21.69 3.06 22.15 3.29 22.48 3.65C22.81 4.02 23.00 4.50 23 5V19L22.99 19.20C22.94 19.66 22.73 20.08 22.41 20.41C22.08 20.73 21.66 20.94 21.20 20.98L21 21H14C13.99 20.31 13.94 19.65 13.84 19H21V5H3V8.15C2.34 8.05 1.68 8.00 1 8V5C0.99 4.50 1.18 4.02 1.51 3.65C1.84 3.29 2.30 3.06 2.79 3.01L3 3H21L21.20 3.01ZM19 17V7H5V8.62C6.95 9.26 8.73 10.35 10.19 11.80C11.64 13.26 12.73 15.04 13.37 17H19ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:g.wJ8())}g.k4(this.element,"ytp-remote-button-active",this.isActive())}}; NC.prototype.Y=function(){if(this.U.getOption("remote","quickCast"))this.U.setOption("remote","quickCast",!0);else{var z=this.zP,K=this.element;if(z.U8())z.Ip();else{z.initialize();a:{var f=g.a(z.Yd.items);for(var M=f.next();!M.done;M=f.next())if(M=M.value,M.priority===1){f=M;break a}f=null}f&&(f.open(),z.uP(K));z.uP(K)}}this.U.logClick(this.element)};g.h(vE,g.F);vE.prototype.S=function(z){var K=this.U.Z(),f=400;this.U.B("web_player_small_hbp_settings_menu")&&K.W?f=300:K.G&&(f=200);z=this.Y&&z.width>=f;this.s3(z);this.U.B("embeds_use_parent_visibility_in_ve_logging")?this.U.logVisibility(this.element,z&&this.C):this.U.logVisibility(this.element,z)}; vE.prototype.T=function(){if(this.zP.l8)this.zP.Ip();else{var z=g.qN(this.U.pI());z&&!z.loaded&&(z.Lo("tracklist",{includeAsr:!0}).length||z.load());this.U.logClick(this.element);this.zP.uP(this.element)}}; vE.prototype.updateBadge=function(){var z=this.U.isHdr(),K=this.U.getPresentingPlayerType(),f=K!==2&&K!==3,M=g.iD(this.U),p=f&&!!g.gq(this.U.pI());K=p&&M.displayMode===1;M=p&&M.displayMode===2;f=(p=K||M)||!f?null:this.U.getPlaybackQuality();g.k4(this.element,"ytp-hdr-quality-badge",z);g.k4(this.element,"ytp-hd-quality-badge",!z&&(f==="hd1080"||f==="hd1440"));g.k4(this.element,"ytp-4k-quality-badge",!z&&f==="hd2160");g.k4(this.element,"ytp-5k-quality-badge",!z&&f==="hd2880");g.k4(this.element,"ytp-8k-quality-badge", !z&&f==="highres");g.k4(this.element,"ytp-3d-badge-grey",!z&&p&&K);g.k4(this.element,"ytp-3d-badge",!z&&p&&M)};g.h(IJ,B1);IJ.prototype.isLoaded=function(){var z=g.Ji(this.U.pI());return z!==void 0&&z.loaded}; IJ.prototype.Dq=function(){g.Ji(this.U.pI())!==void 0&&this.U.getPresentingPlayerType()!==3?this.S||(this.zP.md(this),this.S=!0):this.S&&(this.zP.gI(this),this.S=!1);N$(this,this.isLoaded())}; IJ.prototype.onSelect=function(z){this.isLoaded();z?this.U.loadModule("annotations_module"):this.U.unloadModule("annotations_module");this.U.publish("annotationvisibility",z)}; IJ.prototype.JL=function(){this.S&&this.zP.gI(this);B1.prototype.JL.call(this)};g.h(GB,g.iP);GB.prototype.Dq=function(){var z=this.U.getAvailableAudioTracks();z.length>1?(this.Ym(g.UZ(z,this.S)),this.tracks=g.s9(z,this.S,this),this.countLabel.s0(z.length?" ("+z.length+")":""),this.publish("size-change"),this.bI(this.S(this.U.getAudioTrack())),this.enable(!0)):this.enable(!1)}; GB.prototype.Y3=function(z){g.iP.prototype.Y3.call(this,z);this.U.setAudioTrack(this.tracks[z]);this.zP.wS()}; GB.prototype.S=function(z){return z.toString()};g.h(bo,B1); bo.prototype.Y=function(){var z=this.U.getPresentingPlayerType();if(z!==2&&z!==3&&g.cD(this.U))this.S||(this.zP.md(this),this.S=!0,this.T.push(this.X(this.U,"videodatachange",this.Y)),this.T.push(this.X(this.U,"videoplayerreset",this.Y)),this.T.push(this.X(this.U,"onPlaylistUpdate",this.Y)),this.T.push(this.X(this.U,"autonavchange",this.J)),z=this.U.getVideoData(),this.J(z.autonavState),this.U.logVisibility(this.element,this.S));else if(this.S){this.zP.gI(this);this.S=!1;z=g.a(this.T);for(var K=z.next();!K.done;K= z.next())this.W8(K.value)}}; bo.prototype.J=function(z){N$(this,z!==1)}; bo.prototype.onSelect=function(z){this.U.rb(z?2:1);this.S&&(this.U.logVisibility(this.element,this.S),this.U.logClick(this.element))}; bo.prototype.JL=function(){this.S&&this.zP.gI(this);B1.prototype.JL.call(this)};g.h(GKW,g.oN);GKW.prototype.onClick=function(z){z.preventDefault();var K,f;(K=g.aN(this.U))==null||(f=K.Hc())==null||f.Ip();var M,p;(M=g.aN(this.U))==null||(p=M.zs())==null||p.uP(z.target)};g.h(bkd,g.iP);g.k=bkd.prototype; g.k.Rz=function(){var z=this.U.getPresentingPlayerType();if(z!==2&&z!==3){this.nH=this.U.Cd();var K=this.U.getAvailableQualityLevels();if(this.S){this.J={};z=g.wq(this.U,"getAvailableQualityData",[]);z=g.a(z);for(var f=z.next();!f.done;f=z.next())f=f.value,this.J[f.qualityLabel]=f;z=Object.keys(this.J);K[K.length-1]==="auto"&&z.push("auto");this.Hx=new Set(K)}else if(this.W){f=g.wq(this.U,"getAvailableQualityData",[]);z=[];f=g.a(f);for(var M=f.next();!M.done;M=f.next())M=M.value,this.N[M.quality]= M,M.quality&&z.push(M.quality);K[K.length-1]==="auto"&&z.push("auto")}else z=K;g.Iw8(this.U)&&this.U.Hr()&&z.unshift("missing-qualities");K=this.U.app.Of();f=K.getVideoData();if(!f.Y||!f.Y.video||f.Y.video.qualityOrdinal<1080||f.Au)K=!1;else{M=/^qsa/.test(f.clientPlaybackNonce);var p="r";f.Y.id.indexOf(";")>=0&&(M=/^[a-p]/.test(f.clientPlaybackNonce),p="x");M?(K.Th("iqss",{trigger:p},!0),K=!0):K=!1}K&&z.unshift("inline-survey");this.Ym(z);K=this.U.getVideoData().cotn?!0:!1;f=this.l_.d$();f=!g.$t(this.U.Z())|| !(K===void 0?0:K)||!(f===void 0||f);K=this.Y;f=f===void 0?!1:f;K.Jc&&g.k4(K.dE("ytp-panel-footer"),"ytp-panel-hide-footer",f===void 0?!1:f);if(z.length){this.Ov();this.enable(!0);return}}this.enable(!1)}; g.k.Ov=function(){if(this.S){var z=this.U.getPreferredQuality();this.Hx.has(z)&&(this.G=this.U.getPlaybackQuality(),this.Y1=this.U.getPlaybackQualityLabel(),z==="auto"?(this.bI(z),this.s0(this.AD(z))):this.bI(this.Y1))}else z=this.U.getPreferredQuality(),this.options[z]&&(this.G=this.U.getPlaybackQuality(),this.bI(z),z==="auto"&&this.s0(this.AD(z)))}; g.k.Y3=function(z){if(z!=="missing-qualities"){g.iP.prototype.Y3.call(this,z);var K=this.S?this.J[z]:this.N[z];var f=K==null?void 0:K.quality,M=K==null?void 0:K.formatId,p=K==null?void 0:K.paygatedQualityDetails;K=p==null?void 0:p.endpoint;if(p){var t;p=(t=this.options[z])==null?void 0:t.element;this.U.logClick(p)}if(this.S){var B,v;if((B=g.A(K,g.CE7))==null?0:(v=B.popup)==null?0:v.notificationActionRenderer)this.U.LH("innertubeCommand",K);else if(K){this.U.LH("innertubeCommand",K);return}M?this.U.setPlaybackQuality(f, M):this.U.setPlaybackQuality(f)}else{if(this.W){var I,G;if((I=g.A(K,g.CE7))==null?0:(G=I.popup)==null?0:G.notificationActionRenderer)this.U.LH("innertubeCommand",K);else if(K){this.U.LH("innertubeCommand",K);return}}this.U.setPlaybackQuality(z)}this.zP.Ip();this.Rz()}}; g.k.open=function(){for(var z=g.a(Object.values(this.options)),K=z.next();!K.done;K=z.next()){K=K.value;var f=void 0;this.U.hasVe((f=K)==null?void 0:f.element)&&(f=void 0,this.U.logVisibility((f=K)==null?void 0:f.element,!0))}g.iP.prototype.open.call(this);this.U.logClick(this.element)}; g.k.sV=function(z,K,f){var M=this;if(z==="missing-qualities")return new g.oN({j:"a",Wx:["ytp-menuitem"],V:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.U.Z().N,tabindex:"0",role:"menuitemradio"},L:[{j:"div",Wx:["ytp-menuitem-label"],qc:"{{label}}"}]},K,this.AD(z));if(z!=="inline-survey"){var p,t=(p=this.S?this.J[z]:this.N[z])==null?void 0:p.paygatedQualityDetails;p=t==null?void 0:t.veType;t=t==null?void 0:t.trackingParams;K=g.iP.prototype.sV.call(this,z,K,f);t?(this.U.createServerVe(K.element, this,!0),this.U.setTrackingParams(K.element,t)):p&&this.U.createClientVe(K.element,this,p,!0);return K}z=[{j:"span",qc:"Ch\u1ea5t l\u01b0\u1ee3ng t\u1ed1t?"}];f=g.a([!0,!1]);t=f.next();for(p={};!t.done;p={fu:void 0},t=f.next())p.fu=t.value,t=new g.F({j:"span",K:"ytp-menuitem-inline-survey-response",L:[p.fu?PNq():RWa()],V:{tabindex:"0",role:"button"}}),t.listen("click",function(B){return function(){var v=M.U.app.Of();v.Th("iqsr",{tu:B.fu});v.getVideoData().Au=!0;M.zP.Ip();M.Rz()}}(p)),z.push(t); return new g.oN({j:"div",K:"ytp-menuitem",V:{"aria-disabled":"true"},L:[{j:"div",Wx:["ytp-menuitem-label"],L:z}]},K)}; g.k.AD=function(z,K){K=K===void 0?!1:K;if(z==="missing-qualities")return{j:"div",qc:"Thi\u1ebfu t\u00f9y ch\u1ecdn?"};if(z==="inline-survey")return"";var f=this.W||this.S?[DO8(this,z,K,!1)]:[whq(this,z)];var M=this.U.getPreferredQuality();K||M!=="auto"||z!=="auto"||(f.push(" "),this.S?f.push(DO8(this,this.Y1,K,!0,["ytp-menu-label-secondary"])):this.W?f.push(DO8(this,this.G,K,!0,["ytp-menu-label-secondary"])):f.push(whq(this,this.G,["ytp-menu-label-secondary"])));return{j:"div",L:f}};g.h(e0,Js);e0.prototype.a_=function(){Js.prototype.a_.call(this);this.G&&y9W(this)}; e0.prototype.Y1=function(){this.D()}; e0.prototype.N=function(){this.U.setPlaybackRate(this.S,!0)}; e0.prototype.Xq=function(z){Js.prototype.Xq.call(this,z);this.D();y9W(this);z.preventDefault()};g.h(wR,g.F);g.k=wR.prototype;g.k.init=function(){this.y4(this.S);this.updateValue("minvalue",this.Y);this.updateValue("maxvalue",this.T)}; g.k.pX=function(z){if(!z.defaultPrevented){switch(z.keyCode){case 37:case 40:var K=-this.D;break;case 39:case 38:K=this.D;break;default:return}this.y4(this.S+K);z.preventDefault()}}; g.k.zv=function(z){var K=this.S;K+=(z.deltaX||-z.deltaY)<0?-this.N:this.N;this.y4(K);z.preventDefault()}; g.k.nX=function(z){z=(z-g.J$(this.J).x)/this.Y1*this.range+this.Y;this.y4(z)}; g.k.y4=function(z,K){K=K===void 0?"":K;z=g.qt(z,this.Y,this.T);K===""&&(K=z.toString());this.updateValue("valuenow",z);this.updateValue("valuetext",K);this.l_.style.left=(z-this.Y)/this.range*(this.Y1-this.eV)+"px";this.S=z}; g.k.focus=function(){this.Bx.focus()};g.h(DG,wR);DG.prototype.nH=function(){this.U.setPlaybackRate(this.S,!0)}; DG.prototype.y4=function(z){wR.prototype.y4.call(this,z,hsu(this,z).toString());this.W&&(kK8(this),this.Hx())}; DG.prototype.updateValues=function(){var z=this.U.getPlaybackRate();hsu(this,this.S)!==z&&(this.y4(z),kK8(this))};g.h(ar8,g.RT);ar8.prototype.focus=function(){this.S.focus()};g.h(Rs8,P8);g.h(SCq,g.iP);g.k=SCq.prototype;g.k.AD=function(z){return z==="1"?"Chu\u1ea9n":z.toLocaleString()}; g.k.Dq=function(){var z,K=(z=this.U.getVideoData())==null?void 0:z.Fr();z=this.U.getPresentingPlayerType(K);this.enable(z!==2&&z!==3);E1I(this)}; g.k.Ym=function(z){g.iP.prototype.Ym.call(this,z);this.G&&this.G.Y.focus()}; g.k.Fq=function(z){g.iP.prototype.Fq.call(this,z);z?(this.Y1=this.X(this.U,"onPlaybackRateChange",this.onPlaybackRateChange),E1I(this),uwp(this,this.U.getPlaybackRate())):(this.W8(this.Y1),this.Y1=null)}; g.k.onPlaybackRateChange=function(z){var K=this.U.getPlaybackRate();!this.J&&this.N.includes(K)||LBq(this,K);uwp(this,z)}; g.k.sV=function(z,K,f){return z===this.S&&PtS(this.U)?g.iP.prototype.sV.call(this,z,K,f,{j:"div",K:"ytp-speed-slider-menu-footer",L:[this.G]}):g.iP.prototype.sV.call(this,z,K,f)}; g.k.Y3=function(z){g.iP.prototype.Y3.call(this,z);z===this.S?this.U.setPlaybackRate(this.W,!0):this.U.setPlaybackRate(Number(z),!0);PtS(this.U)&&z===this.S||this.zP.wS()}; g.k.On=function(z){var K=z===this.S;this.J=!1;K&&yC(this.U)&&!PtS(this.U)?(z=new Rs8(this.U),g.mY(this.zP,z)):g.iP.prototype.On.call(this,z)};g.h(QHg,g.iP);g.k=QHg.prototype;g.k.bI=function(z){g.iP.prototype.bI.call(this,z)}; g.k.Qy=function(z){return z.option.toString()}; g.k.getOption=function(z){return this.settings[z]}; g.k.AD=function(z){return this.getOption(z).text||""}; g.k.Y3=function(z){g.iP.prototype.Y3.call(this,z);this.publish("settingChange",this.setting,this.settings[z].option)};g.h(hz,g.H8);hz.prototype.H7=function(z){for(var K=g.a(Object.keys(z)),f=K.next();!f.done;f=K.next()){var M=f.value;if(f=this.aK[M]){var p=z[M].toString();M=!!z[M+"Override"];f.options[p]&&(f.bI(p),f.J.element.setAttribute("aria-checked",String(!M)),f.S.element.setAttribute("aria-checked",String(M)))}}}; hz.prototype.K7=function(z,K){this.publish("settingChange",z,K)};g.h(aJ,g.iP);aJ.prototype.S=function(z){return z.languageCode}; aJ.prototype.AD=function(z){return this.languages[z].languageName||""}; aJ.prototype.Y3=function(z){this.publish("select",z);this.U.logClick(this.element);g.lP(this.zP)};g.h(lrS,g.iP);g.k=lrS.prototype;g.k.Nu=function(z){return g.U9(z)?"__off__":z.displayName}; g.k.AD=function(z){return z==="__off__"?"T\u1eaft":z==="__translate__"?"D\u1ecbch t\u1ef1 \u0111\u1ed9ng":z==="__contribute__"?"Th\u00eam ph\u1ee5 \u0111\u1ec1":z==="__correction__"?"\u0110\u1ec1 xu\u1ea5t b\u1ea3n s\u1eeda ph\u1ee5 \u0111\u1ec1":(z==="__off__"?{}:this.tracks[z]).displayName}; g.k.Y3=function(z){if(z==="__translate__")this.S.open();else if(z==="__contribute__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();var K=g.Oo(this.U.Z(),this.U.getVideoData());g.U$(K)}else if(z==="__correction__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();var f=Vt8(this);RJ(this,f);g.iP.prototype.Y3.call(this,this.Nu(f));var M,p;f=(K=this.U.getVideoData().getPlayerResponse())==null?void 0:(M=K.captions)==null?void 0:(p=M.playerCaptionsTracklistRenderer)== null?void 0:p.openTranscriptCommand;this.U.LH("innertubeCommand",f);this.zP.wS();this.J&&this.U.logClick(this.J)}else{if(z==="__correction__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();K=Vt8(this);RJ(this,K);g.iP.prototype.Y3.call(this,this.Nu(K));var t,B;K=(f=this.U.getVideoData().getPlayerResponse())==null?void 0:(t=f.captions)==null?void 0:(B=t.playerCaptionsTracklistRenderer)==null?void 0:B.openTranscriptCommand;this.U.LH("innertubeCommand",K)}else this.U.logClick(this.element), RJ(this,z==="__off__"?{}:this.tracks[z]),g.iP.prototype.Y3.call(this,z);this.zP.wS()}}; g.k.Dq=function(){var z=this.U.getOptions();z=z&&z.indexOf("captions")!==-1;var K=this.U.getVideoData(),f=K&&K.Ns,M,p=!((M=this.U.getVideoData())==null||!g.op(M));M={};if(z||f){var t;if(z){var B=this.U.getOption("captions","track");M=this.U.getOption("captions","tracklist",{includeAsr:!0});var v=p?[]:this.U.getOption("captions","translationLanguages");this.tracks=g.s9(M,this.Nu,this);p=g.UZ(M,this.Nu);var I,G;Vt8(this)&&((t=K.getPlayerResponse())==null?0:(I=t.captions)==null?0:(G=I.playerCaptionsTracklistRenderer)== null?0:G.openTranscriptCommand)&&p.push("__correction__");if(v.length&&!g.U9(B)){if((t=B.translationLanguage)&&t.languageName){var b=t.languageName;t=v.findIndex(function(e){return e.languageName===b}); m8W(v,t)}qCa(this.S,v);p.push("__translate__")}t=this.Nu(B)}else this.tracks={},p=[],t="__off__";p.unshift("__off__");this.tracks.__off__={};f&&p.unshift("__contribute__");this.tracks[t]||(this.tracks[t]=B,p.push(t));this.Ym(p);this.bI(t);B&&B.translationLanguage?this.S.bI(this.S.S(B.translationLanguage)):rsu(this.S);z&&this.W.H7(this.U.getSubtitlesUserSettings());this.countLabel.s0(M&&M.length?" ("+M.length+")":"");this.publish("size-change");this.U.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.k.jO=function(z){var K=this.U.getOption("captions","track");K=g.$o(K);K.translationLanguage=this.S.languages[z];RJ(this,K)}; g.k.K7=function(z,K){if(z==="reset")this.U.resetSubtitlesUserSettings();else{var f={};f[z]=K;this.U.updateSubtitlesUserSettings(f)}mOW(this,!0);this.G.start();this.W.H7(this.U.getSubtitlesUserSettings())}; g.k.J9h=function(z){z||g.tU(this.G)}; g.k.JL=function(){g.tU(this.G);g.iP.prototype.JL.call(this)}; g.k.open=function(){g.iP.prototype.open.call(this);this.options.__correction__&&!this.J&&(this.J=this.options.__correction__.element,this.U.createClientVe(this.J,this,167341),this.U.logVisibility(this.J,!0))};g.h(n15,g.q9);g.k=n15.prototype; g.k.initialize=function(){if(!this.isInitialized){var z=this.U.Z();this.isInitialized=!0;try{this.AY=new bkd(this.U,this)}catch(f){g.Al(Error("QualityMenuItem creation failed"))}g.d(this,this.AY);var K=new lrS(this.U,this);g.d(this,K);z.T||(K=new IJ(this.U,this),g.d(this,K));z.enableSpeedOptions&&(K=new SCq(this.U,this),g.d(this,K));(g.Jw(z)||z.W)&&(z.Y||z.QE)&&(K=new GKW(this.U,this),g.d(this,K));z.t9&&!z.B("web_player_move_autonav_toggle")&&(z=new bo(this.U,this),g.d(this,z));z=new GB(this.U,this); g.d(this,z);this.U.publish("settingsMenuInitialized");Iro(this.settingsButton,this.Yd.td())}}; g.k.md=function(z){this.initialize();this.Yd.md(z);Iro(this.settingsButton,this.Yd.td())}; g.k.gI=function(z){this.l8&&this.Yd.td()<=1&&this.hide();this.Yd.gI(z);Iro(this.settingsButton,this.Yd.td())}; g.k.uP=function(z){this.initialize();this.Yd.td()>0&&g.q9.prototype.uP.call(this,z)}; g.k.Ip=function(){this.Hu?this.Hu=!1:g.q9.prototype.Ip.call(this)}; g.k.show=function(){g.q9.prototype.show.call(this);g.ey(this.U.getRootNode(),"ytp-settings-shown")}; g.k.hide=function(){g.q9.prototype.hide.call(this);g.Dz(this.U.getRootNode(),"ytp-settings-shown")}; g.k.oX=function(z){this.U.logVisibility(this.element,z);this.U.publish("settingsMenuVisibilityChanged",z)};g.h(J9o,g.F);g.k=J9o.prototype;g.k.onClick=function(){if(g1T(this)&&(this.U.toggleSubtitles(),this.U.logClick(this.element),!this.isEnabled())){var z=!1,K=g.r0(g.OT(),65);g.$t(this.U.Z())&&K!=null&&(z=!K);z&&this.U.Z().B("web_player_nitrate_promo_tooltip")&&this.U.publish("showpromotooltip",this.element)}}; g.k.mL1=function(z){var K,f;(K=g.aN(this.U))==null||(f=K.Hc())==null||f.uP(z)}; g.k.isEnabled=function(){return!!this.U.getOption("captions","track").displayName}; g.k.Dq=function(){var z=g1T(this),K=300;this.U.Z().G&&(K=480);if(this.U.Z().W){this.updateValue("title",g.qs(this.U,"Ph\u1ee5 \u0111\u1ec1","c"));this.update({"data-title-no-tooltip":"Ph\u1ee5 \u0111\u1ec1"});var f=z}else{if(z)(f=this.dE("ytp-subtitles-button-icon"))==null||f.setAttribute("fill-opacity","1"),this.updateValue("title",g.qs(this.U,"Ph\u1ee5 \u0111\u1ec1","c")),this.update({"data-title-no-tooltip":"Ph\u1ee5 \u0111\u1ec1"});else{var M;(M=this.dE("ytp-subtitles-button-icon"))==null||M.setAttribute("fill-opacity", "0.3");this.updateValue("title","Kh\u00f4ng c\u00f3 ph\u1ee5 \u0111\u1ec1");this.update({"data-title-no-tooltip":"Kh\u00f4ng c\u00f3 ph\u1ee5 \u0111\u1ec1"})}f=!0}this.tooltip.r$();f=f&&this.U.wE().getPlayerSize().width>=K;this.s3(f);this.U.B("embeds_use_parent_visibility_in_ve_logging")?this.U.logVisibility(this.element,f&&this.C):this.U.logVisibility(this.element,f);z?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.k.Xt=function(z){g.F.prototype.Xt.call(this,z);this.U.Z().B("embeds_use_parent_visibility_in_ve_logging")&&this.U.logVisibility(this.element,this.l8&&z)};g.h(g.S0,g.F);g.k=g.S0.prototype; g.k.C6=function(){var z=this.api.wE().getPlayerSize().width,K=this.N;this.api.Z().G&&(K=400);K=z>=K&&(!uo(this)||!g.Z(this.api.getPlayerStateObject(),64));this.s3(K);g.k4(this.element,"ytp-time-display-allow-autohide",K&&z<400);z=this.api.getProgressState();if(K){var f=this.api.getPresentingPlayerType();K=this.api.getCurrentTime(f,!1);this.Y&&(K-=z.airingStart);LY(this)&&(K-=this.U3.startTimeMs/1E3);LY(this)||uo(this)||!this.T||(K-=this.api.getDuration(f,!1));var M=g.nd(K);this.J!==M&&(this.updateValue("currenttime", M),this.J=M);f=LY(this)?(this.U3.endTimeMs-this.U3.startTimeMs)/1E3:this.api.getDuration(f,!1);M=g.nd(f);this.W!==M&&(this.updateValue("duration",M),this.W=M,K&&(K=g.Pt("$PLAY_PROGRESS / $DURATION",{PLAY_PROGRESS:g.nd(K,!0),DURATION:g.nd(f,!0)}),this.updateValue("timeDisplayAriaLabel",K)))}ik5(this,z.isAtLiveHead);dOI(this,this.api.getLoopRange())}; g.k.onLoopRangeChange=function(z){var K=this.U3!==z;this.U3=z;K&&(this.C6(),c9p(this))}; g.k.KPf=function(){this.api.setLoopRange(null)}; g.k.Y3a=function(){this.T=!this.T;this.C6()}; g.k.onVideoDataChange=function(z,K,f){this.updateVideoData((this.api.Z().B("enable_topsoil_wta_for_halftime")||this.api.Z().B("enable_topsoil_wta_for_halftime_live_infra"))&&f===2?this.api.getVideoData(1):K);this.C6();c9p(this)}; g.k.updateVideoData=function(z){this.J7=z.isLivePlayback&&!z.oa;this.Y=UM(z);this.isPremiere=z.isPremiere;g.k4(this.element,"ytp-live",uo(this))}; g.k.onClick=function(z){z.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.k.JL=function(){this.S&&this.S();g.F.prototype.JL.call(this)};g.h(A9S,g.F);g.k=A9S.prototype;g.k.xT=function(){var z=this.api.po();this.T!==z&&(this.T=z,sHg(this,this.api.getVolume(),this.api.isMuted()))}; g.k.Vy=function(z){this.s3(z.width>=350)}; g.k.xS=function(z){if(!z.defaultPrevented){var K=z.keyCode,f=null;K===37?f=this.volume-5:K===39?f=this.volume+5:K===36?f=0:K===35&&(f=100);f!==null&&(f=g.qt(f,0,100),f===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(f)),z.preventDefault())}}; g.k.H6=function(z){var K=z.deltaX||-z.deltaY;z.deltaMode?this.api.setVolume(this.volume+(K<0?-10:10)):this.api.setVolume(this.volume+g.qt(K/10,-10,10));z.preventDefault()}; g.k.phH=function(){E1(this,this.S,!0,this.Y,this.api.vc());this.N=this.volume;this.api.isMuted()&&this.api.unMute()}; g.k.eO=function(z){var K=this.T?78:52,f=this.T?18:12;z-=g.J$(this.D).x;this.api.setVolume(g.qt((z-f/2)/(K-f),0,1)*100)}; g.k.n81=function(){E1(this,this.S,!1,this.Y,this.api.vc());this.volume===0&&(this.api.mute(),this.api.setVolume(this.N))}; g.k.onVolumeChange=function(z){sHg(this,z.volume,z.muted)}; g.k.JK=function(){E1(this,this.S,this.isDragging,this.Y,this.api.vc())}; g.k.JL=function(){g.F.prototype.JL.call(this);g.Dz(this.G,"ytp-volume-slider-active")};g.h(PE,g.F); PE.prototype.onVideoDataChange=function(){var z=this.api.Z();this.NB();this.visible=!!this.api.getVideoData().videoId&&!g.zG(this.api.getVideoData(1));this.s3(this.visible);this.api.logVisibility(this.element,this.visible&&this.C);if(this.visible){var K=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",K)}z.T&&(this.S&&(this.W8(this.S),this.S=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.ey(this.element,"no-link")); K=this.api.Z();z=this.api.getVideoData();var f="";K.T||(K=g.CO(K),K.indexOf("www.")===0&&(K=K.substring(4)),f=g.Kq(z)?"Xem tr\u00ean YouTube Music":K==="youtube.com"?"Xem tr\u00ean YouTube":g.Pt("Xem tr\u00ean $WEBSITE",{WEBSITE:K}));this.updateValue("title",f)}; PE.prototype.onClick=function(z){this.api.B("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var K=this.api.Z(),f=this.api.getVideoUrl(!g.WP(z),!1,!0,!0);if(g.Jw(K)){var M={};g.Jw(K)&&g.wq(this.api,"addEmbedsConversionTrackingParams",[M]);f=g.V8(f,M)}g.I0(f,this.api,z);this.api.B("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; PE.prototype.NB=function(){var z={j:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},L:[{j:"path",JB:!0,K:"ytp-svg-fill",V:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}, K=28666,f=this.api.getVideoData();this.api.isEmbedsShortsMode()?z={j:"svg",V:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},L:[{j:"path",V:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z", fill:"#fff"}}]}:g.Kq(f)&&(z={j:"svg",V:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},L:[{j:"path",V:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{j:"path",V:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", fill:"white"}},{j:"path",V:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{j:"path",V:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{j:"path",V:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", fill:"white"}},{j:"path",V:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{j:"path",V:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", fill:"white"}},{j:"path",V:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{j:"path",V:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", fill:"white"}},{j:"path",V:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", fill:"white"}},{j:"path",V:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{j:"path",V:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z", fill:"white"}}]},K=216163);g.Kq(f)?g.ey(this.element,"ytp-youtube-music-button"):g.Dz(this.element,"ytp-youtube-music-button");z.V=Object.assign({},z.V,{"aria-hidden":"true"});this.updateValue("logoSvg",z);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,K,!0)}; PE.prototype.Xt=function(z){g.F.prototype.Xt.call(this,z);this.api.logVisibility(this.element,this.visible&&z)};g.h(XhS,g.xI);g.k=XhS.prototype;g.k.Xo=function(){if(this.U.B("web_player_max_seekable_on_ended")||!g.Z(this.U.getPlayerStateObject(),2))this.progressBar.C6(),this.Bx.C6()}; g.k.g1=function(){this.V1();this.I5.Y?this.Xo():this.progressBar.SY()}; g.k.hW=function(){this.Xo();this.N.start()}; g.k.V1=function(){var z;if(z=!this.U.Z().Y){z=this.progressBar;var K=2*g.Ka()*z.W,f=z.T;z=(f.S-f.Y)*1E3/z.api.getPlaybackRate()/K<300}z=z&&this.U.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;K=!z;this.I5.Y||(z=K=!1);K?this.nH||(this.nH=this.X(this.U,"progresssync",this.Xo)):this.nH&&(this.W8(this.nH),this.nH=null);z?this.N.isActive()||this.N.start():this.N.stop()}; g.k.NB=function(){var z=this.U.po(),K=this.U.wE().getPlayerSize(),f=this.U.wE().ED,M=FBq(this),p=Okq(this),t=Math.max(K.width-M*2,100);if(this.TP!==K.width||this.SE!==z||this.U.B("web_player_rtr_ctrls")&&this.v2!==f)this.TP=K.width,this.SE=z,this.v2=f,this.S.element.style.width=p+"px",this.S.element.style.left=M+"px",g.ttu(this.progressBar,M,p,z),this.U.XL().MQ=p;f=this.J;t=Math.min(570*(z?1.5:1),t);z=Math.min(413*(z?1.5:1),Math.round((K.height-r9S(this))*.82));f.maxWidth=t;f.maxHeight=z;f.YW();this.V1(); this.U.Z().B("html5_player_dynamic_bottom_gradient")&&Fn5(this.oa,K.height)}; g.k.onVideoDataChange=function(){var z=this.U.getVideoData();this.QE.style.background=z.f3?z.kR:"";this.l_&&U28(this.l_,z.showSeekingControls);this.Y1&&U28(this.Y1,z.showSeekingControls)}; g.k.H1=function(){return this.S.element};g.h(Zko,ER);g.k=Zko.prototype;g.k.t7=function(z){z.target!==this.dismissButton.element&&(this.onClickCommand&&this.U.LH("innertubeCommand",this.onClickCommand),this.qs())}; g.k.qs=function(){this.enabled=!1;this.N.hide()}; g.k.onVideoDataChange=function(z,K){z==="dataloaded"&&o1I(this);z=[];var f,M,p,t;if(K=(t=g.A((f=K.getWatchNextResponse())==null?void 0:(M=f.playerOverlays)==null?void 0:(p=M.playerOverlayRenderer)==null?void 0:p.suggestedActionsRenderer,Pe7))==null?void 0:t.suggestedActions)for(f=g.a(K),M=f.next();!M.done;M=f.next())(M=g.A(M.value,Hmp))&&g.A(M.trigger,E78)&&z.push(M);if(z.length!==0){f=[];z=g.a(z);for(M=z.next();!M.done;M=z.next())if(M=M.value,p=g.A(M.trigger,E78))t=(t=M.title)?g.Lc(t):"View Chapters", K=p.timeRangeStartMillis,p=p.timeRangeEndMillis,K!=null&&p!=null&&M.tapCommand&&(f.push(new g.bS(K,p,{priority:9,namespace:"suggested_action_button_visible",id:t})),this.suggestedActions[t]=M.tapCommand);this.U.St(f)}}; g.k.X7=function(){return this.enabled}; g.k.oX=function(){this.enabled?this.Px.start():uP(this);this.Vf()}; g.k.JL=function(){o1I(this);ER.prototype.JL.call(this)};var Pn={},qC=(Pn.CHANNEL_NAME="ytp-title-channel-name",Pn.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",Pn.LINK="ytp-title-link",Pn.SESSIONLINK="yt-uix-sessionlink",Pn.SUBTEXT="ytp-title-subtext",Pn.TEXT="ytp-title-text",Pn.TITLE="ytp-title",Pn);g.h(mL,g.F);mL.prototype.onClick=function(z){this.api.logClick(this.element);var K=this.api.Z(),f=this.api.getVideoUrl(!g.WP(z),!1,!0);g.Jw(K)&&(K={},g.wq(this.api,"addEmbedsConversionTrackingParams",[K]),f=g.V8(f,K));g.I0(f,this.api,z)}; mL.prototype.Dq=function(){var z=this.api.getVideoData(),K=this.api.Z();this.updateValue("title",z.title);var f={j:"a",K:qC.CHANNEL_NAME,V:{href:"{{channelLink}}",target:"_blank"},qc:"{{channelName}}"};this.api.Z().T&&(f={j:"span",K:qC.CHANNEL_NAME,qc:"{{channelName}}",V:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",f);CtI(this);this.api.getPresentingPlayerType()===2&&(f=this.api.getVideoData(),f.videoId&&f.isListed&&f.author&&f.TP&&f.profilePicture?(this.updateValue("channelLink", f.TP),this.updateValue("channelName",f.author),this.updateValue("channelTitleFocusable","0")):CtI(this));f=K.externalFullscreen||!this.api.isFullscreen()&&K.Zh;g.k4(this.link,qC.FULLERSCREEN_LINK,f);K.l_||!z.videoId||f||g.zG(z)||K.T?this.S&&(this.updateValue("url",null),this.W8(this.S),this.S=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.S||(this.S=this.X(this.link,"click",this.onClick)));K.T&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.Jw(K)?z.expandedTitle: z.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.h(g.VC,g.F);g.k=g.VC.prototype;g.k.setEnabled=function(z){if(this.type!=null)if(z)switch(this.type){case 3:case 2:zCu(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.W=z}; g.k.Gu=function(z,K,f,M,p,t,B,v){if(!this.nH||this.env.G){this.type===3&&this.SY();this.type!==1&&(g.GJ(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.W&&this.fade.show(),this.Y&&this.Y.dispose(),(this.Y=this.api.ax())&&this.Y.subscribe("l",this.YU,this));if(v){var I=g.dW(this.bg).height||141;this.Hx.style.bottom=I+2+"px"}else this.Hx.style.display="none";this.env.B("delhi_modern_web_player")?(this.update({pillTimeStamp:f,pillTitle:t!=null?t:"",eduText:v!=null?v:""}),g.ey(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:f,title:t!=null?t:"",eduText:v!=null?v:""}),g.k4(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!t));this.api.isInline()&&g.ey(this.bottomText,"ytp-modern-tooltip-text");g.k4(this.element,"ytp-text-detail",!!M);f=-1;this.Y&&(f=j1(this.Y,243*this.scale),this.env.B("web_l3_storyboard")&&this.Y.levels.length===4&&(f=this.Y.levels.length-1),f=Jv5(this.Y,f,K));$Vp(this,f);if(B)switch(K=g.dW(this.element).width,B){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=K+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=K/2+"px",this.title.style.textAlign="center"}KJ8(this,!!M,z,p)}}; g.k.u$=function(){this.type===1&&this.SY()}; g.k.dW=function(z,K){if(this.type)if(this.type===3)this.SY();else return;UOd(this,z,3,K)}; g.k.r$=function(z){this.S&&!this.G&&this.S.hasAttribute("title")&&(this.T=this.S.getAttribute("title")||"",this.S.removeAttribute("title"),this.W&&zCu(this,z))}; g.k.YU=function(z,K){z<=this.J&&this.J<=K&&(z=this.J,this.J=NaN,$Vp(this,z))}; g.k.rY=function(){nPq(this.Y,this.J,243*this.scale)}; g.k.SY=function(){switch(this.type){case 2:var z=this.S;z.removeEventListener("mouseout",this.D);z.addEventListener("mouseover",this.eV);z.removeEventListener("blur",this.D);z.addEventListener("focus",this.eV);f78(this);break;case 3:f78(this);break;case 1:this.Y&&(this.Y.unsubscribe("l",this.YU,this),this.Y=null),this.api.removeEventListener("videoready",this.N),this.Y1.stop()}this.type=null;this.W&&this.fade.hide()}; g.k.Em=function(){if(this.S)for(var z=0;z=0;K--)if(this.AF[K]===z){this.AF.splice(K,1);break}i$(this.I5,64,this.AF.length>0)}; g.k.VX=function(){this.api.AU()&&this.api.Di();return!!this.N$||vup(this)||g.r1.prototype.VX.call(this)}; g.k.Fj=zo(3);g.k.mD=zo(7);g.k.Wn=zo(10); g.k.DK=function(){var z=!this.VX(),K=z&&this.api.AU()&&!g.Z(this.api.getPlayerStateObject(),2)&&!g.zG(this.api.getVideoData())&&!this.api.Z().T&&!this.api.isEmbedsShortsMode(),f=this.fD&&g.WD(this.api)&&g.Z(this.api.getPlayerStateObject(),128);z||f?(this.ZJ.show(),this.OF.show()):(this.ZJ.hide(),this.OF.hide(),this.api.Em(this.eY.element));K?this.T8.uP():this.T8.Ip();this.fz&&xOd(this.fz,this.gg||!z);this.api.B("web_player_hide_overflow_button_if_empty_menu")&&I7S(this);g.r1.prototype.DK.call(this)}; g.k.Gr=function(z,K,f,M,p){z.style.left="";z.style.top="";z.style.bottom="";var t=g.dW(z),B=M||this.fz&&g.t$(this.fz.H1(),K),v=M=null;f!=null&&B||(M=g.dW(K),v=g.gW(K,this.api.getRootNode()),f==null&&(f=v.x+M.width/2));f-=t.width/2;B?(K=this.fz,M=FBq(K),v=Okq(K),B=this.api.wE().getPlayerSize().height,f=g.qt(f,M,M+v-t.width),t=B-r9S(K)-t.height):g.t$(this.eY.element,K)?(K=this.api.wE().getPlayerSize().width,f=g.qt(f,12,K-t.width-12),t=this.po()?this.DN:this.XW,this.api.Z().playerStyle==="gvn"&&(t+= 20),this.fD&&(t-=this.po()?26:18)):(K=this.api.wE().getPlayerSize(),f=g.qt(f,12,K.width-t.width-12),t=v.y>(K.height-M.height)/2?v.y-t.height-12:v.y+M.height+12);z.style.top=t+(p||0)+"px";z.style.left=f+"px"}; g.k.g1=function(z){z&&(this.api.Em(this.eY.element),this.fz&&this.api.Em(this.fz.H1()));this.O6&&(g.k4(this.contextMenu.element,"ytp-autohide",z),g.k4(this.contextMenu.element,"ytp-autohide-active",!0));g.r1.prototype.g1.call(this,z)}; g.k.rl=function(){g.r1.prototype.rl.call(this);this.O6&&(g.k4(this.contextMenu.element,"ytp-autohide-active",!1),this.O6&&(this.contextMenu.hide(),this.ET&&this.ET.hide()))}; g.k.hD=function(z,K){var f=this.api.wE().getPlayerSize();f=new g.Ls(0,0,f.width,f.height);if(z||this.I5.Y&&!this.VX()){if(this.api.Z().Ri||K)z=this.po()?this.DN:this.XW,f.top+=z,f.height-=z;this.fz&&(f.height-=r9S(this.fz))}return f}; g.k.xT=function(z){var K=this.api.getRootNode();z?K.parentElement?(K.setAttribute("aria-label","Tr\u00ecnh ph\u00e1t video YouTube \u1edf ch\u1ebf \u0111\u1ed9 to\u00e0n m\u00e0n h\u00ecnh"),this.api.Z().externalFullscreen||(K.parentElement.insertBefore(this.m_.element,K),K.parentElement.insertBefore(this.WF.element,K.nextSibling))):g.sm(Error("Player not in DOM.")):(K.setAttribute("aria-label","Tr\u00ecnh ph\u00e1t video YouTube"),this.m_.detach(),this.WF.detach());this.NB();this.LN()}; g.k.po=function(){var z=this.api.Z();return this.api.isFullscreen()&&!z.G||!1}; g.k.showControls=function(z){this.LV=!z;this.DK()}; g.k.NB=function(){var z=this.po();this.tooltip.scale=z?1.5:1;this.contextMenu&&g.k4(this.contextMenu.element,"ytp-big-mode",z);this.DK();this.api.B("web_player_hide_overflow_button_if_empty_menu")||I7S(this);this.LN();var K=this.api.isEmbedsShortsMode();K&&z?(z=(this.api.wE().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.H6(this.eY.element,"padding-left",z+"px"),g.H6(this.eY.element,"padding-right",z+"px")):K&&(g.H6(this.eY.element,"padding-left",""),g.H6(this.eY.element,"padding-right", ""));g.r1.prototype.NB.call(this)}; g.k.ww=function(){if(vup(this)&&!g.WD(this.api))return!1;var z=this.api.getVideoData();return!g.Jw(this.api.Z())||this.api.getPresentingPlayerType()===2||!this.I1||((z=this.I1||z.I1)?(z=z.embedPreview)?(z=z.thumbnailPreviewRenderer,z=z.videoDetails&&g.A(z.videoDetails,hBS)||null):z=null:z=null,z&&z.collapsedRenderer&&z.expandedRenderer)?g.r1.prototype.ww.call(this):!1}; g.k.LN=function(){g.r1.prototype.LN.call(this);this.api.logVisibility(this.title.element,!!this.Mt);this.AQ&&this.AQ.Xt(!!this.Mt);this.channelAvatar.Xt(!!this.Mt);this.overflowButton&&this.overflowButton.Xt(this.wI()&&!!this.Mt);this.shareButton&&this.shareButton.Xt(!this.wI()&&!!this.Mt);this.I3&&this.I3.Xt(!this.wI()&&!!this.Mt);this.searchButton&&this.searchButton.Xt(!this.wI()&&!!this.Mt);this.copyLinkButton&&this.copyLinkButton.Xt(!this.wI()&&!!this.Mt);if(!this.Mt){this.api.Em(this.eY.element); for(var z=0;z5&&K.Th("glrs",{cmt:f});K.seekTo(0,{seekSource:58});K.Th("glrre",{cmt:f})}}; gR.prototype.JL=function(){this.S=null;g.J.prototype.JL.call(this)};g.h(g.io,NB);g.k=g.io.prototype;g.k.isView=function(){return!0}; g.k.hY=function(){var z=this.mediaElement.getCurrentTime();if(z1;kr(z.NL(),M-.01)&&!p&&(cE(this,4),f.isActive=!1,f.tq=f.tq||f.isActive,(this.C===1?this.S:this.Y).Th("sbh",{}),K.isActive=!0,K.tq=K.tq||K.isActive,this.C!==0&&(this.S.getVideoData().I0=!0));z=this.J.Y;if(this.J.S.isActive&&z.isActive&&(cE(this,5),this.C!==0)){z=this.Y.LG();f=this.S.LG(); this.S.Th("sbs",{citag:f==null?void 0:f.itag,nitag:z==null?void 0:z.itag});this.Y.Th("gitags",{pitag:f==null?void 0:f.itag,citag:z==null?void 0:z.itag});var t;(t=this.Y)==null||t.XQ()}}}; g.k.TC=function(){this.Zs()&&this.a5("player-reload-after-handoff")}; g.k.a5=function(z,K){K=K===void 0?{}:K;if(!this.CH()&&this.status.status!==6){var f=this.status.status>=4&&z!=="player-reload-after-handoff";this.status={status:Infinity,error:z};if(this.S&&this.Y){var M=this.Y.getVideoData().clientPlaybackNonce;this.S.yW(new Jq("dai.transitionfailure",Object.assign(K,{cpn:M,transitionTimeMs:this.Vw,msg:z})));this.S.df(f)}this.OM.reject(z);this.dispose()}}; g.k.Zs=function(){return this.status.status>=4&&this.status.status<6}; g.k.JL=function(){uo5(this);this.S.unsubscribe("newelementrequired",this.TC,this);if(this.T){var z=this.T.Y;this.T.S.oF.unsubscribe("updateend",this.Du,this);z.oF.unsubscribe("updateend",this.Du,this)}g.J.prototype.JL.call(this)}; g.k.k5=function(z){g.Ld(z,128)&&this.a5("player-error-event")};g.h(s1,g.J);s1.prototype.clearQueue=function(z,K){z=z===void 0?!1:z;K=K===void 0?!1:K;this.J&&this.J.reject("Queue cleared");this.app.Z().B("html5_gapless_fallback_on_qoe_restart_v2")||K&&this.Y&&this.Y.df(!1);Az(this,z)}; s1.prototype.Ao=function(){return!this.S}; s1.prototype.Zs=function(){var z;return((z=this.T)==null?void 0:z.Zs())||!1}; s1.prototype.JL=function(){Az(this);g.J.prototype.JL.call(this)};g.h(l7a,g.Dv);g.k=l7a.prototype;g.k.getVisibilityState=function(z,K,f,M,p,t,B,v){return z?4:NXg()?3:K?2:f?1:M?5:p?7:t?8:B?9:v?10:0}; g.k.ZE=function(z){this.fullscreen!==z&&(this.fullscreen=z,this.oX())}; g.k.setMinimized=function(z){this.Y!==z&&(this.Y=z,this.oX())}; g.k.setInline=function(z){this.inline!==z&&(this.inline=z,this.oX())}; g.k.G0=function(z){this.pictureInPicture!==z&&(this.pictureInPicture=z,this.oX())}; g.k.setSqueezeback=function(z){this.T!==z&&(this.T=z,this.oX())}; g.k.OH=function(z){this.J!==z&&(this.J=z,this.oX())}; g.k.Lz=function(){return this.S}; g.k.qP=function(){return this.fullscreen!==0}; g.k.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.k.Fv=function(){return this.fullscreen}; g.k.isMinimized=function(){return this.Y}; g.k.isInline=function(){return this.inline}; g.k.isBackground=function(){return NXg()}; g.k.Uo=function(){return this.pictureInPicture}; g.k.Sy=function(){return!1}; g.k.zn=function(){return this.T}; g.k.mY=function(){return this.J}; g.k.oX=function(){this.publish("visibilitychange");var z=this.getVisibilityState(this.Lz(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Uo(),this.Sy(),this.zn(),this.mY());z!==this.W&&this.publish("visibilitystatechange");this.W=z}; g.k.JL=function(){G2T(this.C);g.Dv.prototype.JL.call(this)};g.h(g.j0,g.J);g.k=g.j0.prototype;g.k.JL=function(){this.videoData=this.playerState=null;g.J.prototype.JL.call(this)}; g.k.addCueRange=function(){}; g.k.tA=function(){}; g.k.f5=function(){}; g.k.tP=function(){return!1}; g.k.M_=function(){return!1}; g.k.Uw=function(){return!1}; g.k.R9=function(){}; g.k.Bv=function(){}; g.k.Ib=function(){return[]}; g.k.H$=function(){}; g.k.getAudioTrack=function(){return this.getVideoData().r8}; g.k.eg=function(){return null}; g.k.getAvailableAudioTracks=function(){return[]}; g.k.Cd=function(){return[]}; g.k.HD=function(){return[]}; g.k.d8=function(){return""}; g.k.B7=function(){return[]}; g.k.UA=function(){}; g.k.t$=function(){return 0}; g.k.getCurrentTime=function(){return 0}; g.k.W$=function(){}; g.k.LG=function(){}; g.k.S3=function(){return{}}; g.k.getDuration=function(){return 0}; g.k.jk=function(){return 0}; g.k.ll=function(){return 0}; g.k.R7=function(){return!1}; g.k.dL=function(){return 0}; g.k.jo=function(){return 0}; g.k.iB=zo(15);g.k.j_=function(){return 0}; g.k.FP=function(){return!1}; g.k.HW=function(){return 0}; g.k.qL=function(){return null}; g.k.HC=function(){return null}; g.k.L6=function(){return 0}; g.k.BX=function(){return 0}; g.k.bW=function(){return g.n(function(z){g.Rv(z)})}; g.k.wU=zo(21);g.k.getPlaybackQuality=function(){return"auto"}; g.k.getPlaybackRate=function(){return 1}; g.k.getPlayerState=function(){this.playerState||(this.playerState=new g.ex);return this.playerState}; g.k.getPlayerType=function(){return 0}; g.k.getPlaylistSequenceForTime=function(){return null}; g.k.qZ=function(){return function(){}}; g.k.XP=function(){return""}; g.k.getPreferredQuality=function(){return"unknown"}; g.k.cD=function(){}; g.k.getProximaLatencyPreference=function(){return 0}; g.k.di=function(){return ZY}; g.k.ax=function(){return null}; g.k.getStoryboardFormat=function(){return null}; g.k.getStreamTimeOffset=function(){return 0}; g.k.xg=function(){return 0}; g.k.MB=function(){return 0}; g.k.Da=function(){return{wz:[],bA:[],currentTime:0,TJ:"",droppedVideoFrames:0,isGapless:!1,Ao:!0,d1:0,yb:0,aI:0,SW:0,Ak:0,Tt:[],Z8:[],gV:null,playerState:this.getPlayerState(),t3:null,Gd:"",totalVideoFrames:0}}; g.k.getUserAudio51Preference=function(){return 0}; g.k.getUserPlaybackQualityPreference=function(){return""}; g.k.getVideoData=function(){this.videoData||(this.videoData=new g.oB(this.SV),g.d(this,this.videoData));return this.videoData}; g.k.H3=function(){return null}; g.k.IK=function(){return null}; g.k.u3=function(){}; g.k.getVideoLoadedFraction=function(){return 0}; g.k.CO=function(){}; g.k.handleError=function(){}; g.k.df=function(){}; g.k.vJ=function(){}; g.k.o3=zo(46);g.k.mu=function(){return!1}; g.k.hasSupportedAudio51Tracks=function(){return!1}; g.k.kI=function(){return!1}; g.k.Lz=function(){return!1}; g.k.isAtLiveHead=function(){return!1}; g.k.Cq=function(){return!0}; g.k.isGapless=function(){return!1}; g.k.isHdr=function(){return!1}; g.k.gZ=function(){return!1}; g.k.zf=function(){return!1}; g.k.lc=function(){return!1}; g.k.isProximaLatencyEligible=function(){return!1}; g.k.Ao=function(){return!0}; g.k.Jt=function(){return!1}; g.k.Dj=function(){return!1}; g.k.qp=function(){}; g.k.wf=function(){}; g.k.XQ=function(){}; g.k.Y$=function(){}; g.k.bz=function(){}; g.k.yr=function(){}; g.k.Mp=function(){}; g.k.KJ=zo(56);g.k.sT=zo(27);g.k.M7=function(){}; g.k.pauseVideo=function(){}; g.k.playVideo=function(){return g.n(function(z){return z.return()})}; g.k.nE=function(){}; g.k.uW=zo(33);g.k.uI=zo(39);g.k.PR=function(){}; g.k.Th=function(){}; g.k.g8=function(){}; g.k.U9=function(){}; g.k.WH=function(){}; g.k.yW=function(){}; g.k.O$=function(){}; g.k.QC=function(){}; g.k.vH=function(){}; g.k.ER=function(){}; g.k.VC=function(){}; g.k.ZM=function(){}; g.k.eh=function(){}; g.k.removeCueRange=function(){}; g.k.V4=function(){}; g.k.GE=function(){return[]}; g.k.P9=function(){}; g.k.dS=function(){}; g.k.xD=function(){}; g.k.h8=function(){}; g.k.yC=function(){}; g.k.jD=function(){}; g.k.seekTo=function(){}; g.k.sendAbandonmentPing=function(){}; g.k.sendVideoStatsEngageEvent=function(){}; g.k.BH=function(){}; g.k.setLoop=function(){}; g.k.pB=function(){}; g.k.setMediaElement=function(){}; g.k.Kf=function(){}; g.k.setPlaybackRate=function(){}; g.k.HA=function(){}; g.k.PH=function(){}; g.k.A_=function(){}; g.k.setProximaLatencyPreference=function(){}; g.k.u7=function(){}; g.k.gs=function(){}; g.k.CE=function(){}; g.k.QX=function(){}; g.k.xK=function(){}; g.k.setUserAudio51Preference=function(){}; g.k.T3=function(){}; g.k.o1=function(){return!1}; g.k.pG=function(){}; g.k.fY=function(){return!1}; g.k.GK=function(){}; g.k.b7=function(){}; g.k.sH=function(){}; g.k.stopVideo=function(){}; g.k.subscribe=function(){return NaN}; g.k.Qw=function(){}; g.k.togglePictureInPicture=function(){}; g.k.XB=function(){return 0}; g.k.unsubscribe=function(){return!1}; g.k.s9=function(){}; g.k.nR=function(){return!1}; g.k.sM=function(){}; g.k.yI=function(){}; g.k.b4=function(){};g.h(x2,g.J);g.k=x2.prototype;g.k.get=function(z){Y2(this);var K=this.data.find(function(f){return f.key===z}); return K?K.value:null}; g.k.set=function(z,K,f){this.remove(z,!0);Y2(this);z={key:z,value:K,expire:Infinity};f&&isFinite(f)&&(f*=1E3,z.expire=(0,g.X)()+f);for(this.data.push(z);this.data.length>this.T;)(f=this.data.shift())&&Fz(this,f,!0);Xz(this)}; g.k.remove=function(z,K){K=K===void 0?!1:K;var f=this.data.find(function(M){return M.key===z}); f&&(Fz(this,f,K),g.SS(this.data,function(M){return M.key===z}),Xz(this))}; g.k.removeAll=function(z){if(z=z===void 0?!1:z)for(var K=g.a(this.data),f=K.next();!f.done;f=K.next())Fz(this,f.value,z);this.data=[];Xz(this)}; g.k.JL=function(){var z=this;g.J.prototype.JL.call(this);this.data.forEach(function(K){Fz(z,K,!0)}); this.data=[]};g.h(g.O1,g.J);g.k=g.O1.prototype;g.k.JL=function(){for(var z=g.a(Object.values(this.T)),K=z.next();!K.done;K=z.next())K.value.dispose();VBI(this);this.S.dispose();g.J.prototype.JL.call(this)}; g.k.cA=function(z){return z?z===1?this.D:this.Y.getVideoData().enableServerStitchedDai&&z===2?this.Y.getVideoData().pk?this.T[2]||this.Y:this.Y:this.T[z]||null:this.Y}; g.k.FL=function(z){var K=z.cpn;z=z.playerType;if(K)a:{z=g.a(Object.values(this.T));for(var f=z.next();!f.done;f=z.next())if(f=f.value,f.d8()===K){K=f;break a}K=this.G[K]||null}else K=z?this.cA(z):this.Y;return K}; g.k.JH=function(){return this.D}; g.k.EF=function(z){this.D=z}; g.k.Of=function(){return this.Y}; g.k.vn=function(z){this.Y=z;rR(this)}; g.k.Aq=zo(52);g.k.gN=zo(54);g.h(ZG,g.J);ZG.prototype.enqueue=function(z){if(z.S()!==this)return!1;this.segments.push(z);return!0}; ZG.prototype.removeAll=function(){for(;this.segments.length;){var z=void 0;(z=this.segments.pop())==null||z.dispose()}this.S.clear()}; ZG.prototype.JL=function(){this.removeAll();g.J.prototype.JL.call(this)};g.h(AF5,g.Xm);g.k=AF5.prototype;g.k.VD=function(){}; g.k.d8=function(){return this.videoData.clientPlaybackNonce}; g.k.getVideoData=function(){if(g.Xm.prototype.getVideoData.call(this).B("html5_huli_ssdai_use_playback_state"))var z=this.videoData;else{var K=this.Z3;var f=g.Xm.prototype.getCurrentTime.call(this);if(K.d_)K=void 0;else{var M=void 0;K.Hh&&(M=K.S.S.get(K.Hh));if(!M){M=zjT(K,f*1E3);var p,t=(p=M)==null?void 0:p.cpn;K.Hh?t&&K.Hh!==t&&K.Nc({cpcnm:t+"_"+K.Hh,cmt:f.toFixed(3)}):K.Nc({cpcna:t,cmt:f.toFixed(3)})}K=(z=M)==null?void 0:z.videoData}z=K||g.Xm.prototype.getVideoData.call(this)}return z}; g.k.getCurrentTime=function(z){var K=g.Xm.prototype.getCurrentTime.call(this);g.Xm.prototype.getVideoData.call(this).B("html5_huli_ssdai_use_playback_state")?this.endTime===0?z||(K-=this.startTime):z&&(K=this.endTime-this.startTime):(z?z=this.Z3.IP/1E3||K:(z=K,z=(K=UVv(this.Z3,z*1E3))?z-K.start/1E3:z),K=z);return K}; g.k.getDuration=function(){if(g.Xm.prototype.getVideoData.call(this).B("html5_huli_ssdai_use_playback_state"))var z=this.duration;else{z=this.Z3;var K=g.Xm.prototype.getCurrentTime.call(this);z=(z=zjT(z,K*1E3))?z.durationMs/1E3:0}return z}; g.k.uy=function(z){this.duration=z};g.oJ.prototype.X3=function(z,K){if(K===1)return this.S.get(z);if(K===2)return this.T.get(z);if(K===3)return this.Y.get(z)}; g.oJ.prototype.LK=zo(64);g.oJ.prototype.pK=function(z,K,f,M){f={N_:M,Zu:f};K?this.T.set(z,f):this.S.set(z,f)}; g.oJ.prototype.clearAll=function(){this.S.clear();this.T.clear();this.Y.clear()}; Y6S.prototype.clear=function(){this.Y=[];this.S.clear();this.J.clear();this.T.clear()}; g.h(g.CY,g.J);g.k=g.CY.prototype;g.k.E4=function(z){var K=z.TR?z.TR*1E3:z.D2,f=this.T.get(z.cpn);f&&this.playback.removeCueRange(f);this.T.delete(z.cpn);this.S.S.delete(z.cpn);f=this.S.Y.indexOf(z);f>=0&&this.S.Y.splice(f,1);f=[];for(var M=g.a(this.C),p=M.next();!p.done;p=M.next())p=p.value,p.end<=K?this.playback.removeCueRange(p):f.push(p);this.C=f;v_T(this,0,K+z.durationMs)}; g.k.onCueRangeEnter=function(z){this.Bx.push(z);var K=z.getId();this.Nc({oncueEnter:1,cpn:K,start:z.start,end:z.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.t$()||0).toFixed(3)});var f=K==="";this.Xc.add(z.Y);var M=this.S.S.get(K);if(f){var p;if(this.playback.getVideoData().Fr()&&((p=this.Y)==null?0:p.SG)&&this.J){this.cV=0;this.Y=void 0;this.D&&(this.events.W8(this.D),this.D=null);this.J="";this.vx=!0;return}}else if(this.Nc({enterAdCueRange:1}),this.playback.getVideoData().Fr()&& (M==null?0:M.q7))return;if(this.vx&&!this.Y)this.vx=!1,!f&&M&&(f=this.playback.getCurrentTime(),fS(this,{Wh:z,isAd:!0,J1:!0,vj:f,adCpn:K},{isAd:!1,J1:!1,vj:f}),this.Hh=M.cpn,this.fd(M.cpn,f),KS(this,M),z=z3(this,"midab",M),this.Nc(z),this.cV=1),this.W=!1;else if(this.Y){if(this.Y.J1)this.Nc({a_pair_of_same_transition_occurs_enter:1,acpn:this.Y.adCpn,transitionTime:this.Y.vj,cpn:K,currentTime:this.playback.getCurrentTime()}),M=this.playback.getCurrentTime(),z={Wh:z,isAd:!f,J1:!0,vj:M,adCpn:K},K={Wh:this.Y.Wh, isAd:this.Y.isAd,J1:!1,vj:M,adCpn:this.Y.adCpn},this.Y.Wh&&this.Xc.delete(this.Y.Wh.Y),fS(this,z,K);else{if(this.Y.Wh===z){this.Nc({same_cue_range_pair_enter:1,acpn:this.Y.adCpn,transitionTime:this.Y.vj,cpn:K,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:z.start,cueRangeEndTime:z.end});this.Y=void 0;return}if(this.Y.adCpn===K){K&&this.Nc({dchtsc:K});this.Y=void 0;return}z={Wh:z,isAd:!f,J1:!0,vj:this.playback.getCurrentTime(),adCpn:K};fS(this,z,this.Y)}this.Y=void 0;this.W=!1}else this.Y= {Wh:z,isAd:!f,J1:!0,vj:this.playback.getCurrentTime(),adCpn:K}}; g.k.fd=function(z,K){if(z===this.playback.d8())nuT(this.app.e_(),this.playback,!1);else{var f=this.oa.get(z);f?(f.endTime=0,f.startTime=K,nuT(this.app.e_(),f,!0)):this.Nc({nop_s:z})}}; g.k.onCueRangeExit=function(z){var K=z.getId();this.Nc({oncueExit:1,cpn:K,start:z.start,end:z.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.t$()||0).toFixed(3)});var f=K==="",M=this.S.S.get(K);if(this.playback.getVideoData().Fr()&&!f&&M){if(M.q7)return;M.q7=!0;this.G.clear();if(this.SV.B("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.tP()){var p=M.D2;this.playback.eh(p/1E3,(p+M.durationMs)/1E3)}else this.playback.Th("lifa",{remove:0})}if(this.Xc.has(z.Y))if(this.Xc.delete(z.Y), this.Bx=this.Bx.filter(function(t){return t!==z}),this.vx&&(this.W=this.vx=!1,this.Nc({cref:1})),this.Y){if(this.Y.J1){if(this.Y.Wh===z){this.Nc({same_cue_range_pair_exit:1, acpn:this.Y.adCpn,transitionTime:this.Y.vj,cpn:K,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:z.start,cueRangeEndTime:z.end});this.Y=void 0;return}if(this.Y.adCpn===K){K&&this.Nc({dchtsc:K});this.Y=void 0;return}K={Wh:z,isAd:!f,J1:!1,vj:this.playback.getCurrentTime(),adCpn:K};fS(this,this.Y,K)}else if(this.Nc({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.Y.adCpn,transitionTime:this.Y.vj,upcomingCpn:K,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), this.Y.adCpn===K)return;this.Y=void 0;this.W=!1}else this.Y={Wh:z,isAd:!f,J1:!1,vj:this.playback.getCurrentTime(),adCpn:K};else this.Nc({ignore_single_exit:1})}; g.k.pJ=function(){return{cpn:this.playback.d8(),durationMs:0,D2:0,playerType:1,TE:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.k.yT=function(){if(this.d_)return!1;var z=void 0;this.Hh&&(z=this.S.S.get(this.Hh));return this.playback.getVideoData().Fr()?!!z&&!z.q7:!!z}; g.k.seekTo=function(z,K,f,M){z=z===void 0?0:z;K=K===void 0?{}:K;f=f===void 0?!1:f;M=M===void 0?null:M;if(this.playback.getVideoData().Fr()&&z<=this.IP/1E3)this.playback.pauseVideo(),this.IP=0,this.W=!0,this.playback.bW(),this.playback.seekTo(z),this.playback.playVideo();else if(this.W=!0,f)XHu(this,z,K);else{f=this.app.Of();var p=f===this.Px?this.TP:null;pS(this,!1);this.LI=z;this.W1=K;M!=null&&this.nI.start(M);f&&(this.TP=p||f.getPlayerState(),f.sH(K),this.Px=f)}}; g.k.JL=function(){pS(this,!1);$lI(this);f_8(this);g.J.prototype.JL.call(this)}; g.k.Rd=function(z){this.Z2=z;this.Nc({swebm:z})}; g.k.hU=function(z,K,f){if(f&&K){var M=this.G.get(z);if(M){M.locations||(M.locations=new Map);var p=Number(K.split(";")[0]);f=new g.WN(f);this.Nc({hdlredir:1,itag:K,seg:z,hostport:gp(f)});M.locations.set(p,f)}}}; g.k.xl=function(z,K,f,M,p,t){var B=M===3,v=pVp(this,z,K,M,f,t);if(!v){BS(this,K,B);var I=g.MMa(this,K)?"undec":"ncp";this.Nc({gvprp:I,mt:z,seg:K,tt:M,itag:f,ce:t});return null}B||this.G.set(K,v);t=v.Eo;var G;M=((G=this.X3(K-1,M,p))==null?void 0:G.N_)||"";M===""&&this.Nc({eds:1});G=BY8(this,v.ssdaiAdsConfig);p=this.playback.getVideoData();var b;B=((b=p.Y)==null?void 0:b.containerType)||0;b=p.Jf[B];v=v.fN&&K>=v.fN?v.fN:void 0;b={Bf:t?Gaq(this,t):[],nV:G,N_:M,zG:v,rq:S8(b.split(";")[0]),wq:b.split(";")[1]|| ""};v={X_:b};this.VE&&(z={gvprpro:"v",sq:K,mt:z.toFixed(3),itag:f,acpns:((I=b.Bf)==null?void 0:I.join("_"))||"none",abid:t},this.Nc(z));return v}; g.k.nu=function(z){a:{if(!this.d_){var K=tMg(this,z);if(!(this.playback.getVideoData().Fr()&&(K==null?0:K.q7)))break a}K=void 0}var f=K;if(!f)return this.Nc({gvprp:"ncp",mt:z}),null;K=f.Eo;var M=BY8(this,f.ssdaiAdsConfig);f=f.fN&&f.KB&&z>=f.KB?f.fN:void 0;var p=this.playback.getVideoData(),t,B=((t=p.Y)==null?void 0:t.containerType)||0;t=p.Jf[B];t={Bf:K?Gaq(this,K):[],nV:M,zG:f,rq:S8(t.split(";")[0]),wq:t.split(";")[1]||""};var v;z={gvprpro:"v",mt:z.toFixed(3),acpns:((v=t.Bf)==null?void 0:v.join("_"))|| "none",abid:K};this.Nc(z);return t}; g.k.mU=function(z,K,f,M,p,t){var B=Number(f.split(";")[0]),v=M===3;z=pVp(this,z,K,M,f,t);this.Nc({gdu:1,seg:K,itag:B,pb:""+!!z});if(!z)return BS(this,K,v),null;z.locations||(z.locations=new Map);if(!z.locations.has(B)){var I,G;t=(I=z.videoData.getPlayerResponse())==null?void 0:(G=I.streamingData)==null?void 0:G.adaptiveFormats;if(!t)return this.Nc({gdu:"noadpfmts",seg:K,itag:B}),BS(this,K,v),null;I=t.find(function(w){return w.itag===B}); if(!I||!I.url){var b=z.videoData.videoId;z=[];var e=g.a(t);for(M=e.next();!M.done;M=e.next())z.push(M.value.itag);this.Nc({gdu:"nofmt",seg:K,vid:b,itag:B,fullitag:f,itags:z.join(",")});BS(this,K,v);return null}z.locations.set(B,new g.WN(I.url,!0))}t=z.locations.get(B);if(!t)return this.Nc({gdu:"nourl",seg:K,itag:B}),BS(this,K,v),null;t=new Pe(t);this.Z2&&(t.get("dvc")?this.Nc({dvc:t.get("dvc")||""}):t.set("dvc","webm"));(M=(e=this.X3(K-1,M,p))==null?void 0:e.N_)&&t.set("daistate",M);z.fN&&K>=z.fN&& t.set("skipsq",""+z.fN);(e=this.playback.getVideoData().clientPlaybackNonce)&&t.set("cpn",e);e=[];z.Eo&&(e=Gaq(this,z.Eo),e.length>0&&t.set("acpns",e.join(",")));v||this.G.set(K,z);v=null;v=t.get("aids");M=t.Ic();(M==null?void 0:M.length)>2048&&this.Nc({urltoolong:1,sq:K,itag:B,len:M.length});this.VE&&(M&&(t=z.cpn,p=z.Eo,wV5(this,t,p),p&&!this.RF.has(p)&&(t=bAv(this,t,p),I=eju(this,p),this.Nc({iofa:t}),this.Nc({noawnzd:I-t}),this.Nc({acpns:e.join("."),aids:(b=v)==null?void 0:b.replace(/,/g,".")}), this.RF.add(p))),this.Nc({gdu:"v",seg:K,itag:f,ast:z.D2.toFixed(3),alen:z.durationMs.toFixed(3),acpn:z.cpn,avid:z.videoData.videoId}));return M}; g.k.DL=function(z,K,f){f=f===void 0?!1:f;var M=tJ(this,z,K);if(M){var p=void 0,t=M.Eo;if(t){this.Nc({skipadonsq:K,sts:f,abid:t,acpn:M.cpn,avid:M.videoData.videoId});f=this.S.T.get(t);if(!f)return;f=g.a(f);for(t=f.next();!t.done;t=f.next())t=t.value,t.fN=K,t.KB=z,t.D2>M.D2&&(p=t)}this.J=M.cpn;NYS(this);z=this.playback.getCurrentTime();$U(this,M,p,z,z,!1,!0)}}; g.k.WQ=function(){for(var z=g.a(this.S.Y),K=z.next();!K.done;K=z.next())K=K.value,K.fN=NaN,K.KB=NaN;NYS(this);this.Nc({rsac:"resetSkipAd",sac:this.J});this.J=""}; g.k.X3=function(z,K,f){return this.Hx.X3(z,K,f)}; g.k.LK=zo(63); g.k.pK=function(z,K,f,M,p,t,B,v,I){M.length>0&&this.Nc({onssinfo:1,sq:z,start:K.toFixed(3),cpns:M.join(","),ds:p.join(","),isVideo:B?1:0});I&&this.Hx.pK(z,B,v,I);if(B){if(M.length&&p.length)for(this.J&&this.J===M[0]&&this.Nc({skipfail:1,sq:z,acpn:this.J}),z=K+this.xg(),B=0;B0&&(this.cV=0,this.Hh="",this.api.publish("serverstitchedvideochange"));this.playback.Bv(f,M);return!0}; g.k.jz=function(){this.Nc({rstdaist:1});this.Hx.clearAll()}; g.k.z0=function(z){var K;if(z!==((K=this.Y1)==null?void 0:K.identifier))this.Nc({ignorenoad:z});else{this.SE.add(z);this.Nc({noadrcv:z});var f;((f=this.Y1)==null?void 0:f.identifier)===z&&U1(this)}}; g.k.JF=function(z){if(this.d_)return this.Nc({dai_disabled:z.event}),!1;if(this.playback.getVideoData().Fr()&&(this.SV.B("html5_lifa_no_gab_on_predict_start")&&z.event==="predictStart"||z.event==="continue"||z.event==="stop"))return this.Nc({cuepoint_skipped:z.event}),!1;var K=Vu(this.api.pI());if(K=K?K.JF(z):!1)this.N={b5:z.identifier,f2:z.startSecs};else if(this.N&&this.N.b5===z.identifier&&z.startSecs>this.N.f2+1){this.Nc({cueStChg:z.identifier,oldSt:this.N.f2.toFixed(3),newSt:z.startSecs.toFixed(3), abid:this.N.g0});if(this.N.g0){var f=z.startSecs-this.N.f2,M=this.S.T.get(this.N.g0);if(M){M=g.a(M);for(var p=M.next();!p.done;p=M.next())p=p.value,p.D2>=0&&(p.D2+=f*1E3,this.SV.B("html5_ssdai_update_timeline_on_start_time_change")&&(p.TE+=f*1E3),this.Nc({newApEt:p.D2,newApPrt:p.TE,acpn:p.cpn}))}}this.N.f2=z.startSecs}return K}; g.k.zx=function(z){return this.d_?!1:!!tMg(this,z)}; g.k.P_=function(z){var K=this;if(this.SV.B("html5_lifa_ignore_multiple_skips")&&this.D)return this.Nc({ufs_ad:this.J,ufs_cur:this.Hh,ufs_cont:this.pJ().cpn}),!1;this.playback.pauseVideo();var f=this.playback.getCurrentTime(),M=this.SV.B("html5_lifa_reset_segment_index_on_skip"),p=M?f+this.playback.xg():f,t=this.S.S.get(this.Hh),B=this.T.get(this.Hh);if(t){this.J=this.Hh;this.W=!1;t.q7=!0;f=this.playback.getCurrentTime();this.Y={Wh:B,isAd:!0,J1:!1,vj:f,adCpn:this.Hh,SG:t,pDE:z};this.playback.vH(t, this.pJ(),f,this.playback.getCurrentTime(),!1,!0,z,(0,g.X)());M&&this.playback.M7();if(B==null?0:B.start)this.IP=f*1E3-B.start,TuT(this,B.id,f);this.G.clear();this.playback.bW();z=this.pJ();this.Hh=z.cpn;this.fd(z.cpn,f);this.api.publish("serverstitchedvideochange");this.playback.seekTo(p,{seekSource:89,v8:"lifa_skip"});this.playback.playVideo();this.D||(this.D=this.events.X(this.api,"progresssync",function(){K.E4(t)})); return!0}this.Nc({skipFail:f},!0);return!1}; g.k.Nc=function(z,K){((K===void 0?0:K)||this.VE||this.playback.getVideoData().Fr())&&this.playback.Th("sdai",z)}; var rFW=0;g.h(Dlq,g.CY);g.k=Dlq.prototype; g.k.onCueRangeEnter=function(z){var K=z.getId();this.playback.Th("sdai",{oncueEnter:1,cpn:K,start:z.start,end:z.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.t$()||0).toFixed(3)});var f=this.S.S.get(K);this.playback.Th("sdai",{enterAdCueRange:1});var M=this.Hh||this.pJ().cpn,p;M=(p=this.S.S.get(M))!=null?p:this.pJ();f&&(f={UE:M,eT:f,xZ:this.playback.getCurrentTime()},this.Sb(f),this.api.B("html5_ssdai_log_ssevt_in_loader")&&yed(this,K,z.start/1E3,this.playback.getCurrentTime()))}; g.k.onCueRangeExit=function(z){for(var K=this.playback.getCurrentTime()*1E3,f=z.getId(),M=g.a(this.T.values()),p=M.next();!p.done;p=M.next())if(p=p.value,p.getId()!==f&&K>=p.start&&K<=p.end)return;if(K=this.S.S.get(f))K={UE:K,eT:this.pJ(),xZ:this.playback.getCurrentTime()},this.Sb(K),this.api.B("html5_ssdai_log_ssevt_in_loader")&&yed(this,this.playback.d8(),z.end/1E3,this.playback.getCurrentTime())}; g.k.Sb=function(z){this.J||this.W||vS(this,this.Hh);var K=z.UE,f=z.eT;if(f.cpn===this.Hh)this.playback.Th("sdai",{igtranssame:1,enter:f.cpn,exit:K.cpn});else{var M=this.W,p=!!this.J;this.J="";var t=z.xZ,B=K.playerType===2?K.D2/1E3+K.videoData.ra:this.pJ().videoData.ra;this.api.B("html5_ssdai_enable_media_end_cue_range")&&(p||M||K.playerType!==2?(M||p)&&this.Nc({mecr:0,seek:M,skip:p}):this.api.XB(K.cpn));if(K.playerType===2&&f.playerType===2)p?this.playback.Th("sdai",{igtransskip:1,enter:f.cpn,exit:K.cpn, seek:M,skip:this.J}):$U(this,K,f,B,t,M,p);else{this.Hh=f.cpn;TuT(this,K.cpn,t);this.fd(f.cpn,t);z=z.n9f;if(K.playerType===1&&f.playerType===2){this.IP=0;KS(this,f);var v=z3(this,"c2a",f);this.playback.Th("sdai",v);this.cV++}else if(K.playerType===2&&f.playerType===1){v=K.videoData.ra;this.api.publish("serverstitchedvideochange");var I=z3(this,"a2c");this.playback.Th("sdai",I);this.cV=0;this.IP=v*1E3;this.QW=B;a_I(this,K.Eo)}this.playback.vH(K,f,B,t,M,p,z)}this.J="";this.W=!1}}; g.k.seekTo=function(z,K,f,M){z=z===void 0?0:z;K=K===void 0?{}:K;f=f===void 0?!1:f;M=M===void 0?null:M;vS(this,this.Hh);this.playback.getVideoData().Fr()&&z<=this.QW?(this.playback.pauseVideo(),this.QW=this.IP=0,kad(this,z)):g.CY.prototype.seekTo.call(this,z,K,f,M)}; g.k.DL=function(z,K,f){f=f===void 0?!1:f;var M=tJ(this,z,K);if(M){var p=void 0,t=M.Eo;if(t){this.playback.Th("sdai",{skipadonsq:K,sts:f,abid:t,acpn:M.cpn,avid:M.videoData.videoId});f=this.S.T.get(t);if(!f)return;f=g.a(f);for(t=f.next();!t.done;t=f.next())t=t.value,t.fN=K,t.KB=z,t.D2>M.D2&&(p=t)}vS(this,this.Hh);this.J=M.cpn;NYS(this);z=this.playback.getCurrentTime();$U(this,M,p,z,z,!1,!0);this.J="";this.W=!1}}; g.k.pK=function(z,K,f,M,p,t,B,v,I){M.length>0&&this.playback.Th("sdai",{onssinfo:1,sq:z,start:K.toFixed(3),cpns:M.join(","),ds:p.join(","),isVideo:B?1:0});I&&this.Hx.pK(z,B,v,I);if(B){if(M.length&&p.length)for(this.J&&this.J===M[0]&&this.playback.Th("sdai",{skipfail:1,sq:z,acpn:this.J}),z=K+this.xg(),f=0;f=0&&this.S.Y.splice(z,1)};g.h(S_5,g.J);g.k=S_5.prototype;g.k.onCueRangeEnter=function(z){if(this.S===this.app.Of()){var K=this.C.get(z);K?Qg8(this,K.target,K.Vw,z):this.yW("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:z.toString()})}else if(K=this.Y.find(function(p){return p.Ec.Wh===z})){var f=K.Ec,M=f.target; f=f.Vw;M?Qg8(this,M,f,z):HAW(this,K.TE,f,z)}}; g.k.onQueuedVideoLoaded=function(){var z=this.G;e6(this);if(z){if(!bC(this,z)){var K=this.app.Of();this.yW("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:K==null?void 0:K.getVideoData().clientPlaybackNonce,ccpn:""+z.playerVars.cpn})}this.app.Of().addCueRange(z.Ec.Wh)}}; g.k.seekTo=function(z,K,f,M){z=z===void 0?0:z;K=K===void 0?{}:K;M=M===void 0?null:M;if(f===void 0?0:f)Rjq(this,z,K);else{f=this.app.Of()||null;var p=f===this.J?this.W:null;wd(this,!1);this.Y1=z;this.N=K;M!=null&&this.D.start(M);f&&(this.W=p||f.getPlayerState(),f.sH(),this.J=f)}}; g.k.Lb=function(z){g.Ld(z,128)&&n_I(this)}; g.k.isManifestless=function(){return k3(this.S.getVideoData())}; g.k.JL=function(){wd(this,!1);JeT(this);g.J.prototype.JL.call(this)}; g.k.yW=function(z,K){this.S.yW(new Jq(z,K))}; var uRa=0;var g_g="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.h(Dg,g.J);Dg.prototype.rB=function(z){if(z)return this.Y.get(z)}; Dg.prototype.JL=function(){this.S.removeAll();this.Y.removeAll();g.J.prototype.JL.call(this)};g.DWH=ye(function(){var z=window.AudioContext||window.webkitAudioContext;try{return new z}catch(K){return K.name}});g.h(AeW,g.F);g.k=AeW.prototype;g.k.sU=function(){g.wy(this.element,g.i8.apply(0,arguments))}; g.k.dS=function(){this.lP&&(this.lP.removeEventListener("focus",this.YJ),g.ps(this.lP),this.lP=null)}; g.k.lK=function(){this.CH();var z=this.app.Z();z.ai||this.sU("tag-pool-enabled");z.W&&this.sU(g.$6.HOUSE_BRAND);z.playerStyle==="gvn"&&(this.sU("ytp-gvn"),this.element.style.backgroundColor="transparent");z.O3&&(this.kN=g.IP("yt-dom-content-change",this.resize,this));this.X(window,"orientationchange",this.resize,this);this.X(window,"resize",this.resize,this)}; g.k.nB=function(z){g.si(this.app.Z());this.PJ=!z;y$(this)}; g.k.resize=function(){if(this.lP){var z=this.ox();if(!z.isEmpty()){var K=!g.JR(z,this.l7.getSize()),f=Fqp(this);K&&(this.l7.width=z.width,this.l7.height=z.height);z=this.app.Z();(f||K||this.vQ||z.O3)&&this.app.Fc.publish("resize",this.getPlayerSize())}}}; g.k.Up=function(z,K){this.updateVideoData(K)}; g.k.updateVideoData=function(z){if(this.lP){var K=this.app.Z();TN&&(this.lP.setAttribute("x-webkit-airplay","allow"),z.title?this.lP.setAttribute("title",z.title):this.lP.removeAttribute("title"));this.lP.setAttribute("controlslist","nodownload");K.qb&&z.videoId&&(this.lP.poster=z.JJ("default.jpg"))}K=g.Q_(z,"yt:bgcolor");this.sO.style.backgroundColor=K?K:"";this.XT=ep(g.Q_(z,"yt:stretch"));this.DA=ep(g.Q_(z,"yt:crop"),!0);g.k4(this.element,"ytp-dni",z.f3);this.resize()}; g.k.setGlobalCrop=function(z){this.hI=ep(z,!0);this.resize()}; g.k.setCenterCrop=function(z){this.Tl=z;this.resize()}; g.k.ZE=function(){}; g.k.getPlayerSize=function(){var z=this.app.Z(),K=this.app.Fc.isFullscreen(),f=z.externalFullscreen&&g.Jw(z);if(K&&ow()&&!f)return new g.W9(window.outerWidth,window.outerHeight);f=!isNaN(this.Ue.width)&&!isNaN(this.Ue.height);var M=this.app.Z().B("kevlar_player_enable_squeezeback_fullscreen_sizing");if(K&&!f&&M)return new g.W9(this.element.clientWidth,this.element.clientHeight);if(K||z.du){if(window.matchMedia){z="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.Xb&&this.Xb.media=== z||(this.Xb=window.matchMedia(z));var p=this.Xb&&this.Xb.matches}if(p)return new g.W9(window.innerWidth,window.innerHeight)}else if(f)return this.Ue.clone();return new g.W9(this.element.clientWidth,this.element.clientHeight)}; g.k.ox=function(){var z=this.app.Z().B("enable_desktop_player_underlay"),K=this.getPlayerSize(),f=g.uY(this.app.Z().experiments,"player_underlay_min_player_width");return z&&this.RZ&&K.width>f?(z=g.uY(this.app.Z().experiments,"player_underlay_video_width_fraction"),new g.W9(Math.min(K.height*this.getVideoAspectRatio(),K.width*z),Math.min(K.height,K.width*z/this.getVideoAspectRatio()))):K}; g.k.getVideoAspectRatio=function(){return isNaN(this.XT)?Y_a(this):this.XT}; g.k.getVideoContentRect=function(z){var K=this.ox();z=XVT(this,K,this.getVideoAspectRatio(),z);return new g.Ls((K.width-z.width)/2,(K.height-z.height)/2,z.width,z.height)}; g.k.u4=function(z){this.RZ=z;this.resize()}; g.k.Tn=function(){return this.Bu}; g.k.onMutedAutoplayChange=function(){y$(this)}; g.k.setInternalSize=function(z){g.JR(this.Ue,z)||(this.Ue=z,this.resize())}; g.k.JL=function(){this.kN&&g.GW(this.kN);this.dS();g.F.prototype.JL.call(this)};g.k=reS.prototype;g.k.click=function(z,K){this.elements.has(z);this.S.has(z);var f=g.Vz();f&&z.visualElement&&g.bn(f,z.visualElement,K)}; g.k.createClientVe=function(z,K,f,M){var p=this;M=M===void 0?!1:M;this.elements.has(z);this.elements.add(z);f=uHp(f);z.visualElement=f;var t=g.Vz(),B=g.lc();t&&B&&(g.Hg("combine_ve_grafts")?so(d8(),f,B):g.Mu(g.zU)(void 0,t,B,f));K.addOnDisposeCallback(function(){p.elements.has(z)&&p.destroyVe(z)}); M&&this.Y.add(z)}; g.k.createServerVe=function(z,K,f){var M=this;f=f===void 0?!1:f;this.elements.has(z);this.elements.add(z);K.addOnDisposeCallback(function(){M.destroyVe(z)}); f&&this.Y.add(z)}; g.k.destroyVe=function(z){this.elements.has(z);this.elements.delete(z);this.T.delete(z);this.S.delete(z);this.Y.delete(z)}; g.k.Bo=function(z,K){this.clientPlaybackNonce!==K&&(this.clientPlaybackNonce=K,cl(d8(),z),ZAg(this))}; g.k.setTrackingParams=function(z,K){this.elements.has(z);K&&(z.visualElement=g.qe(K))}; g.k.s3=function(z,K,f){this.elements.has(z);K?this.S.add(z):this.S.delete(z);var M=g.Vz(),p=z.visualElement;this.Y.has(z)?M&&p&&(K?g.IT(M,[p]):g.GU(M,[p])):K&&!this.T.has(z)&&(M&&p&&g.vW(M,p,void 0,f),this.T.add(z))}; g.k.hasVe=function(z){return this.elements.has(z)};g.h(g.hJ,g.J);g.hJ.create=function(z,K,f,M){try{var p=typeof z==="string"?z:"player"+g.M5(z),t=Hn[p];if(t){try{t.dispose()}catch(v){g.sm(v)}Hn[p]=null}var B=new g.hJ(z,K,f,M);B.addOnDisposeCallback(function(){Hn[p]=null;B.wQ&&B.wQ()}); return Hn[p]=B}catch(v){throw g.sm(v),(v&&v instanceof Error?v:Error(String(v))).stack;}}; g.k=g.hJ.prototype;g.k.cC=function(){return this.visibility}; g.k.EF=function(z){var K=this.JH();if(z!==K){z.getVideoData().autonavState=K.getVideoData().autonavState;K.s9(this.dT,this);var f=K.getPlaybackRate();K.dispose();this.xb.EF(z);z.setPlaybackRate(f);z.Qw(this.dT,this);$KS(this)}}; g.k.Gm=function(){this.rj||(this.rj=g.eh(jz(),lxI()));return this.rj}; g.k.dS=function(z){if(this.mediaElement){this.Ji&&(this.events.W8(this.Ji),this.Ji=null);g.g0(this.Na);this.Of().dS(!0,!1,z);this.template.dS();try{this.B("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.bu()}catch(K){g.Al(K)}this.mediaElement=null}}; g.k.vn=function(z,K,f){f=f===void 0?!1:f;if(z!==this.Of()){this.logger.debug(function(){return"start set presenting player, type "+z.getPlayerType()+", vid "+z.getVideoData().videoId}); var M=null;f||(f=this.Of(),M=f.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),l$(this.g3,3),j6(this,"cuerangesremoved",f.B7()),this.b9&&!z.isGapless()&&f.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),f=z.o1()&&f.o1(),this.hH.Vz("iv_s"),G_a(this,f));z.getPlayerType()===1&&this.EF(z);Iuv(this,z);this.xb.vn(z);this.mediaElement&&z.setMediaElement(this.mediaElement);z.Qw(this.ys,this);z.Dj()?c_5(this,"setPresenting",!1):(this.Up("newdata",z,z.getVideoData()), M&&!g.a4(M,z.getPlayerState())&&this.jn(new g.S$(z.getPlayerState(),M)),K=K&&this.B("html5_player_preload_ad_fix")&&z.getPlayerType()===1,z.zf()&&!K&&this.Up("dataloaded",z,z.getVideoData()),(K=(K=z.getVideoData().Y)&&K.video)&&this.Fc.IX("onPlaybackQualityChange",K.quality),j6(this,"cuerangesadded",z.B7()),K=z.getPlayerState(),g.Z(K,2)?vsI(this):g.Z(K,8)?z.playVideo():z.gZ()&&z.pauseVideo(),K=this.JH(),z.getPlayerType()===2&&(z.getVideoData().UN=K.getVideoData().clientPlaybackNonce),z.getPlayerType()!== 2||this.RX()||(M=z.getVideoData(),K.nE(M.clientPlaybackNonce,M.K3||"",M.breakType||0,M.SU,M.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.k.OI=function(){if(this.JH()!==this.Of()){var z=this.Of();this.logger.debug(function(){return"release presenting player, type "+z.getPlayerType()+", vid "+z.getVideoData().videoId}); this.vn(this.JH())}}; g.k.e_=function(){return this.xb}; g.k.FL=function(z){return this.xb.FL(z)}; g.k.cA=function(z){return this.xb.cA(z)}; g.k.JH=function(){return this.xb.JH()}; g.k.Of=function(){return this.xb.Of()}; g.k.RQ=zo(50);g.k.OHf=function(){Er(this)||(this.logger.debug("application playback ready"),this.D7(5))}; g.k.q0h=function(){if(!Er(this)){this.logger.debug("playback ready");J_S(this);var z=this.Of(),K=z.getPlayerState();z.gZ()?this.pauseVideo():K.isOrWillBePlaying()&&this.playVideo()}}; g.k.canPlayType=function(z){return cf(z)}; g.k.Z=function(){return this.SV}; g.k.getVideoData=function(){return this.Of().getVideoData()}; g.k.Lr=zo(19);g.k.Y8=function(){return this.JH().getVideoData()}; g.k.getVideoLoadedFraction=function(z){return(z=this.FL({playerType:z}))?z.getVideoLoadedFraction():this.xb.S.getVideoLoadedFraction()}; g.k.wE=function(){return this.template}; g.k.pI=function(){return this.g3}; g.k.Rx=function(){return this.hH}; g.k.Dr=function(z){var K=this.FL({playerType:1});K&&K.BH(z)}; g.k.PX=function(){var z=this.g3.PX();this.Fc.publish("videoStatsPingCreated",z);return z}; g.k.getVolume=function(){return Math.round(this.Fc.getVolume())}; g.k.isMuted=function(){return this.Fc.isMuted()}; g.k.c$=function(){if(this.JH()===this.Of()&&this.U3)return this.U3.postId}; g.k.dT_=function(){var z=this;this.B("use_rta_for_player")||(g.iY(this.SV)?g.IB(this.SV,g.X6(this.getVideoData())).then(function(K){YO(jz(),K);Z9S(z.getVideoData(),z.SV,z.Gm())}):Z9S(this.getVideoData(),this.SV,this.Gm()))}; g.k.Ai=function(z){this.Fc.publish("poTokenVideoBindingChange",z)}; g.k.ut=function(z){this.Fc.publish("d6de4videobindingchange",z)}; g.k.Q1=function(){this.wV&&this.wV.Q1()}; g.k.LC=function(z){this.wV=z}; g.k.CU=function(z){if(z===1){this.hH.tick("vr");var K=this.Of();K.f5();xC8(this.hH,K.getVideoData(),WXg(this));myp(this.g3)}K=this.SV;if(BG(K)&&K.D||g.jo(K)){var f;(((f=this.Of().getVideoData())==null?0:f.enableServerStitchedDai)||!this.RX())&&this.Fc.IX("onAdStateChange",z)}}; g.k.setLoopVideo=function(z){var K=this.Of();K===this.JH()&&K.FP()!==z&&(K.setLoop(z),this.Fc.LH("onLoopChange",z))}; g.k.getLoopVideo=function(){return this.Of().FP()}; g.k.setLoopRange=function(z){var K=!1;!!this.U3!==!!z?K=!0:this.U3&&z&&(K=this.U3.startTimeMs!==z.startTimeMs||this.U3.endTimeMs!==z.endTimeMs||this.U3.postId!==z.postId||this.U3.type!==z.type);if(K){K=this.Of();NE(K.getVideoData())&&K.Th("slr",{et:(z==null?void 0:z.endTimeMs)||-1});K=this.JH();K.GE("applooprange");if(z){var f=new g.bS(z.startTimeMs,z.endTimeMs,{id:"looprange",namespace:"applooprange"});K.addCueRange(f)}else{this.Y8().clipConfig=void 0;var M;((f=this.U3)==null?void 0:f.type)!=="repeatChapter"|| isNaN(Number((M=this.U3)==null?void 0:M.loopCount))||(f={loopCount:String(this.U3.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.Ds("repeatChapterLoopEvent",f))}this.U3=z;this.Fc.LH("onLoopRangeChange",z||void 0);this.JH()===this.Of()&&(this.l6(),K.R9())}}; g.k.getLoopRange=function(){return this.U3}; g.k.l6=function(){var z="",K=this.JH();this.U3?K!==this.Of()?z="pnea":auq(this,K.getCurrentTime())&&(this.U3.loopCount=0,z="ilr"):z="nlr";var f=this.Of();if(NE(f.getVideoData()))if(this.B("html5_gapless_log_loop_range_info")){var M,p;f.Th("slrre",{rej:z,ct:K.getCurrentTime(),lst:(M=this.U3)==null?void 0:M.startTimeMs,let:(p=this.U3)==null?void 0:p.endTimeMs})}else f.Th("slrre",{});z||SVT(this)}; g.k.setPlaybackRate=function(z,K){if(!isNaN(z)){z=pUI(this,z);var f=this.JH();f.getPlaybackRate()!==z&&(f.setPlaybackRate(z),K&&!this.SV.J&&g.sT("yt-player-playback-rate",z),this.Fc.IX("onPlaybackRateChange",z))}}; g.k.getCurrentTime=function(z,K){K=K===void 0?!0:K;var f=this.xb.qM;if(f)return f.getCurrentTime();var M=z===2&&this.getVideoData().enableServerStitchedDai;f=null;M?f=this.Of():f=this.FL({playerType:z});return f?M&&this.La?(z=this.xb.W)?z.getCurrentTime(K):f.getCurrentTime():K?(K=LS(this,f),JJ(this,K.getCurrentTime(),K)):f.getCurrentTime():this.xb.S.getCurrentTime()}; g.k.jo=function(){var z=this.FL({playerType:void 0});if(!z)return this.xb.S.jo();z=LS(this,z);return JJ(this,z.jo(),z)}; g.k.getDuration=function(z,K){K=K===void 0?!0:K;var f=this.xb.qM;if(f)return f.getDuration();f=this.getVideoData();var M=z===2&&f.enableServerStitchedDai,p=null;M?p=this.Of():p=this.FL({playerType:z});if(!p)return this.xb.S.getDuration();if(f.hasProgressBarBoundaries()&&!M){var t,B=Number((t=f.progressBarStartPosition)==null?void 0:t.utcTimeMillis),v;t=Number((v=f.progressBarEndPosition)==null?void 0:v.utcTimeMillis);if(!isNaN(B)&&!isNaN(t))return(t-B)/1E3}if(NE(f)&&!f.isLivePlayback)return nS(this, z);if(K)return z=uC(this,p),JJ(this,z.getDuration(),z);if(M&&this.La){if(this.B("html5_huli_ssdai_use_playback_state"))return z=this.xb,z=z.C===z.W?z.C:null,(z==null?void 0:z.getDuration())||0;var I;return((I=this.xb.W)==null?void 0:I.getDuration())||0}return p.getDuration()}; g.k.ll=function(z){var K=this.FL({playerType:z});return K?this.RX(K)?(K=uC(this,K),K.ll()-K.getCurrentTime()+this.getCurrentTime(z)):K.ll():this.xb.S.ll()}; g.k.addPlayerResponseForAssociation=function(){}; g.k.finishSegmentByCpn=function(){return[]}; g.k.lK=function(){this.template.lK();var z=this.Fc;z.state.element=this.template.element;var K=z.state.element,f;for(f in z.state.S)z.state.S.hasOwnProperty(f)&&(K[f]=z.state.S[f]);(z=iGI(this.template.element))&&this.events.X(this.template,z,this.onFullscreenChange)}; g.k.getDebugText=function(z){var K=this.JH().S3(z),f=this.Of();if(f!==this.JH()){f=f.S3(z);for(var M=g.a(Object.keys(f)),p=M.next();!p.done;p=M.next())p=p.value,K["ad"+p]=f[p];if(z){f=K;M={};if(p=X3(document,"movie_player"))M.bounds=p.getBoundingClientRect(),M["class"]=p.className;p={};var t=g.rT("video-ads");t?(jq5(t,p),p.html=t.outerHTML):p.missing=1;t={};var B=g.rT("videoAdUiSkipContainer"),v=g.rT("ytp-ad-skip-button-container"),I=g.rT("ytp-skip-ad-button"),G=B||v||I;G?(jq5(G,t),t.ima=B?1:0,t.bulleit= v?1:0,t.component=I?1:0):t.missing=1;M=JSON.stringify({player:M,videoAds:p,skipButton:t});f.ad_skipBtnDbgInfo=M}}z&&this.mediaElement&&(K["0sz"]=""+(+gT(this.mediaElement.getSize())===0),K.op=this.mediaElement.kp("opacity"),f=this.mediaElement.hV().y+this.mediaElement.getSize().height,K.yof=""+(+f<=0),K.dis=this.mediaElement.kp("display"));z&&((z=(0,g.hx)())&&(K.gpu=z),(z=this.SV.playerStyle)&&(K.ps=z),this.SV.QE&&(K.webview=1));K.debug_playbackQuality=this.Fc.getPlaybackQuality(1);K.debug_date=(new Date).toString(); K.origin=window.origin;K.timestamp=Date.now();delete K.uga;delete K.q;return JSON.stringify(K,null,2)}; g.k.getFeedbackProductData=function(){var z={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.Z().experiments.experimentIds.join(", "),player_release:N[62]},K=this.getPlayerStateObject().Pj;K&&(z.player_error_code=K.errorCode,z.player_error_details=JSON.stringify(K.errorDetail));return z}; g.k.getPresentingPlayerType=function(z){if(this.appState===1)return 1;if(Er(this))return 3;var K;return z&&((K=this.La)==null?0:K.yT(this.getCurrentTime()))?2:this.Of().getPlayerType()}; g.k.Mn=function(){return!1}; g.k.getPlayerStateObject=function(z){var K=this.xb.qM;return K?K.getPlayerState():this.FL({playerType:z}).getPlayerState()}; g.k.getAppState=function(){return this.appState}; g.k.cBc=function(z){switch(z.type){case "loadedmetadata":this.Nj.start();z=g.a(this.IM);for(var K=z.next();!K.done;K=z.next())K=K.value,VCS(this,K.id,K.JJq,K.qrf,void 0,!1);this.IM=[];break;case "loadstart":this.hH.Vz("gv");break;case "progress":case "timeupdate":aC(z.target.MV())>=2&&this.hH.Vz("l2s");break;case "playing":g.pa&&this.Nj.start();if(g.iY(this.SV))z=!1;else{K=g.gq(this.pI());z=this.mediaElement.kp("display")==="none"||gT(this.mediaElement.getSize())===0;var f=kU(this.template),M=this.Of().getVideoData(), p=g.O$(this.SV);M=vw(M);K=!f||K||p||M||this.SV.SE;z=z&&!K}z&&(z=this.Of(),z.qp(),this.getVideoData().Ft||(this.getVideoData().Ft=1,this.dV(),z.playVideo()))}}; g.k.ABh=function(z){this.Fc.rO("onLoadProgress",z)}; g.k.xvV=function(){this.Fc.publish("playbackstalledatstart")}; g.k.nb_=function(z,K){this.Fc.publish("sabrCaptionsDataLoaded",z,K)}; g.k.ob_=function(z){this.Of().gs(z)}; g.k.a3f=function(z){this.Of().u7(z)}; g.k.WdL=function(z){z=LS(this,this.Of());z=JJ(this,z.getCurrentTime(),z);this.Fc.IX("onVideoProgress",z);this.SV.LY&&Qqp(this,this.visibility.Uo())&&this.pauseVideo()}; g.k.w1e=function(){this.Fc.IX("onAutoplayBlocked");var z=this.Of().getVideoData();z&&(z.BY=!0);this.B("embeds_enable_autoplay_and_visibility_signals")&&g.Jw(this.SV)&&(z={autoplayBrowserPolicy:fX(),autoplayIntended:Mo(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.Ds("embedsAutoplayStatusChanged",z))}; g.k.Eb1=function(){this.Fc.publish("progresssync")}; g.k.TOf=function(){this.Fc.rO("onPlaybackPauseAtStart")}; g.k.VVc=function(z){if(this.getPresentingPlayerType()===1){g.Ld(z,1)&&!g.Z(z.state,64)&&this.Y8().isLivePlayback&&this.JH().isAtLiveHead()&&this.Fc.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.Ld(z,2)){if(this.U3&&this.U3.endTimeMs>=(this.getDuration()-1)*1E3){SVT(this);return}vsI(this)}if(g.Z(z.state,128)){var K=z.state;this.cancelPlayback(5);K=K.Pj;JSON.stringify({errorData:K,debugInfo:this.getDebugText(!0)});this.Fc.IX("onError",B88(K.errorCode));this.Fc.rO("onDetailedError",{errorCode:K.errorCode, errorDetail:K.errorDetail,message:K.errorMessage,messageKey:K.hj,cpn:K.cpn});(0,g.X)()-this.SV.FK>6048E5&&this.Fc.rO("onReloadRequired")}K={};if(z.state.isPlaying()&&!z.state.isBuffering()&&!Cp("pbresume","ad_to_video")&&Cp("_start","ad_to_video")){var f=this.getVideoData();K.clientPlaybackNonce=f.clientPlaybackNonce;f.videoId&&(K.videoId=f.videoId);g.ZE(K,"ad_to_video");rl("pbresume",void 0,"ad_to_video");myp(this.g3)}this.Fc.publish("applicationplayerstatechange",z)}}; g.k.jn=function(z){this.xb.qM||this.Fc.publish("presentingplayerstatechange",z)}; g.k.Lb=function(z){S6(this,Sx(z.state));g.Z(z.state,1024)&&this.Fc.isMutedByMutedAutoplay()&&(lC(this,{muted:!1,volume:this.X2.volume},!1),V$(this,!1))}; g.k.MVc=function(z,K){z==="newdata"&&$KS(this);this.Fc.publish("applicationvideodatachange",z,K)}; g.k.tE_=function(z,K){this.B("html5_afmt_change_update_volume")&&J_S(this);this.Fc.rO("onPlaybackAudioChange",this.Fc.getAudioTrack().b8.name);this.Fc.publish("internalaudioformatchange",this.Fc.getAudioTrack().b8.id,K)}; g.k.Uv1=function(z){var K=this.Of().getVideoData();z===K&&this.Fc.IX("onPlaybackQualityChange",z.Y.video.quality)}; g.k.E2=function(){var z=this.xb.T[2]||null;z&&(z=z.getVideoData(),this.Of().Th("ssdai",{cleanaply:1,acpn:z==null?void 0:z.clientPlaybackNonce,avid:z.videoId,isDai:this.Y8().enableServerStitchedDai?1:0}),delete this.xb.T[2])}; g.k.hOH=function(z,K){this.Up(z,this.Of(),K)}; g.k.Up=function(z,K,f){this.logger.debug(function(){return"on video data change "+z+", player type "+K.getPlayerType()+", vid "+f.videoId}); this.SV.i8()&&K.Th("vdc",{type:z,vid:f.videoId||"",cpn:f.clientPlaybackNonce||""});K===this.JH()&&(this.SV.Yx=f.oauthToken);K===this.JH()&&(this.getVideoData().enableServerStitchedDai&&!this.La?(this.JH().Th("sdai",{initSstm:1}),this.La=this.B("html5_enable_ssdai_transition_with_only_enter_cuerange")||this.B("html5_ssdai_log_ssevt_in_loader")?new Dlq(this.Fc,this.SV,this.JH(),this):new g.CY(this.Fc,this.SV,this.JH(),this)):!this.getVideoData().enableServerStitchedDai&&this.La&&(this.La.dispose(), this.La=null,VBI(this.xb)));if(z==="newdata")this.logger.debug("new video data, destroy modules"),l$(this.g3,2),this.Fc.publish("videoplayerreset",K);else{if(!this.mediaElement)return;z==="dataloaded"&&(this.JH()===this.Of()?(Oi(f.pH,f.pA),DKI(this)):e28(this));K.getPlayerType()===1&&(this.SV.Bx&&A_a(this),this.getVideoData().isLivePlayback&&!this.SV.YX&&this.a5("html5.unsupportedlive",2,"DEVICE_FALLBACK"),f.isLoaded()&&((yka(f)||this.getVideoData().An)&&this.Fc.publish("legacyadtrackingpingchange", this.getVideoData()),f.hasProgressBarBoundaries()&&LXa(this)));this.Fc.publish("videodatachange",z,f,K.getPlayerType())}this.Fc.IX("onVideoDataChange",{type:z,playertype:K.getPlayerType()});this.l6();var M=f.LU;M?this.uY.Bo(M,f.clientPlaybackNonce):ZAg(this.uY)}; g.k.gT=function(){HS(this,null);this.Fc.rO("onPlaylistUpdate")}; g.k.Kd1=function(z){delete this.Xl[z.getId()];this.JH().removeCueRange(z);a:{z=this.getVideoData();var K,f,M,p,t,B,v,I,G,b,e=((K=z.eV)==null?void 0:(f=K.contents)==null?void 0:(M=f.singleColumnWatchNextResults)==null?void 0:(p=M.autoplay)==null?void 0:(t=p.autoplay)==null?void 0:t.sets)||((B=z.eV)==null?void 0:(v=B.contents)==null?void 0:(I=v.twoColumnWatchNextResults)==null?void 0:(G=I.autoplay)==null?void 0:(b=G.autoplay)==null?void 0:b.sets);if(e)for(K=g.a(e),f=K.next();!f.done;f=K.next())if(f= f.value,p=M=void 0,f=f.autoplayVideo||((M=f.autoplayVideoRenderer)==null?void 0:(p=M.autoplayEndpointRenderer)==null?void 0:p.endpoint),M=g.A(f,g.f5),t=p=void 0,f!=null&&((p=M)==null?void 0:p.videoId)===z.videoId&&((t=M)==null?0:t.continuePlayback)){z=f;break a}z=null}(K=g.A(z,g.f5))&&this.Fc.LH("onPlayVideo",{sessionData:{autonav:"1",itct:z==null?void 0:z.clickTrackingParams},videoId:K.videoId,watchEndpoint:K})}; g.k.D7=function(z){var K=this;z!==this.appState&&(this.logger.debug(function(){return"app state change "+K.appState+" -> "+z}),z===2&&this.getPresentingPlayerType()===1&&(S6(this,-1),S6(this,5)),this.appState=z,this.Fc.publish("appstatechange",z))}; g.k.a5=function(z,K,f,M,p){this.JH().HA(z,K,f,M,p)}; g.k.ID=function(z,K){this.JH().handleError(new Jq(z,K))}; g.k.isAtLiveHead=function(z,K){K=K===void 0?!1:K;var f=this.FL({playerType:z});if(!f)return this.xb.S.isAtLiveHead();z=uC(this,f);f=LS(this,f);return z!==f?z.isAtLiveHead(JJ(this,f.getCurrentTime(),f),!0):z.isAtLiveHead(void 0,K)}; g.k.dL=function(){var z=this.FL({playerType:void 0});return z?uC(this,z).dL():this.xb.S.dL()}; g.k.seekTo=function(z,K,f,M,p){K=K!==!1;if(M=this.FL({playerType:M}))this.appState===2&&qy(this),this.RX(M)?gd(this)?this.La.seekTo(z,{seekSource:p},K,f):this.Z3.seekTo(z,{seekSource:p},K,f):M.seekTo(z,{aM:!K,De:f,v8:"application",seekSource:p})}; g.k.seekBy=function(z,K,f,M){this.seekTo(this.getCurrentTime()+z,K,f,M)}; g.k.p8f=function(){this.Fc.IX("SEEK_COMPLETE")}; g.k.spV=function(){this.Fc.LH("onAbnormalityDetected")}; g.k.eOE=function(z){this.Fc.LH("onSnackbarMessage",z)}; g.k.jFd=function(z){var K=this.Of(),f=K.getVideoData();if(this.appState===1||this.appState===2)f.startSeconds=z;this.appState===2?g.Z(K.getPlayerState(),512)||qy(this):this.Fc.IX("SEEK_TO",z)}; g.k.L9_=function(){this.Fc.publish("airplayactivechange");this.SV.B("html5_external_airplay_events")&&this.Fc.rO("onAirPlayActiveChange",this.Fc.Lz())}; g.k.rHL=function(){this.Fc.publish("airplayavailabilitychange");this.SV.B("html5_external_airplay_events")&&this.Fc.rO("onAirPlayAvailabilityChange",this.Fc.Tf())}; g.k.showAirplayPicker=function(){this.Of().pG()}; g.k.Rae=function(){this.Fc.publish("beginseeking")}; g.k.yHE=function(){this.Fc.publish("endseeking")}; g.k.getStoryboardFormat=function(z){return(z=this.FL({playerType:z}))?uC(this,z).getStoryboardFormat():this.xb.S.getStoryboardFormat()}; g.k.ax=function(z){return(z=this.FL({playerType:z}))?uC(this,z).getVideoData().ax():this.xb.S.ax()}; g.k.RX=function(z){z=(z||this.Of()).getVideoData();if(gd(this))z=z===this.La.playback.getVideoData();else a:{var K=this.Z3;if(z===K.S.getVideoData()&&K.Y.length)z=!0;else{K=g.a(K.Y);for(var f=K.next();!f.done;f=K.next())if(z.O0===f.value.O0){z=!0;break a}z=!1}}return z}; g.k.BU=function(z,K,f,M,p,t,B,v){this.logger.debug(function(){return"Adding video to timeline id="+z.video_id+"\n lengthMs="+M+" enterTimeMs="+p}); var I="",G=gd(this);this.Of().Th("appattl",{sstm:this.La?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:G});G?(f=ouS(this.La,z,K,f,M,p,t,B,v),I=(f==null?void 0:f.O0)||"",this.B("html5_ssdai_new_decoration_logic")&&this.JH().CE(v||"",K,(f==null?void 0:f.clientPlaybackNonce)||"")):I=P7u(this.Z3,z,f,M,p,t);this.logger.debug(function(){return"Video added to timeline id="+z.video_id+" timelinePlaybackId="+I}); return I}; g.k.Sa=function(z,K,f,M,p,t,B,v){if(gd(this)){var I=ouS(this.La,z,K,f,M,p,t,B,v);this.logger.debug(function(){return"Remaining video added to timeline id="+z.video_id+" timelinePlaybackId="+I})}return""}; g.k.z0=function(z){this.B("html5_ssdai_new_decoration_logic")&&this.JH().CE(z,"","");var K;(K=this.La)==null||K.z0(z)}; g.k.wv=function(z,K){z=z===void 0?-1:z;K=K===void 0?Infinity:K;gd(this)||JeT(this.Z3,z,K)}; g.k.gW=function(z,K,f){if(gd(this)){var M=this.La,p=M.S.J.get(z);p?(f===void 0&&(f=p.TE),Kqa(M,p,K,f)):M.Bc("Invalid_timelinePlaybackId_"+z+"_specified")}else{M=this.Z3;p=null;for(var t=g.a(M.Y),B=t.next();!B.done;B=t.next())if(B=B.value,B.O0===z){p=B;break}p?(f===void 0&&(f=p.TE),Wq8(M,p,K,f)):IK(M,"InvalidTimelinePlaybackId timelinePlaybackId="+z)}}; g.k.enqueueVideoByPlayerVars=function(z,K,f,M){f=f===void 0?Infinity:f;M=M===void 0?"":M;this.RX();z=new g.oB(this.SV,z);M&&(z.O0=M);Es5(this,z,K,f)}; g.k.queueNextVideo=function(z,K,f,M,p){f=f===void 0?NaN:f;z=this.preloadVideoByPlayerVars(z,K===void 0?1:K,f,M===void 0?"":M,p===void 0?"":p);K=this.Of();z&&(this.B("html5_check_queue_on_data_loaded")?this.Z().supportsGaplessShorts()&&K.getVideoData().G&&(f=this.T_,M=this.b9.C,f.J!==z&&(f.Y=K,f.J=z,f.T=1,f.S=z.getVideoData(),f.C=M,f.S.isLoaded()?f.W():f.S.subscribe("dataloaded",f.W,f))):(f=DV8(K,z,this.b9.C),f!=null?(K.Th("sgap",f),K.getVideoData().G&&K.df(!1)):(z=z.getVideoData(),K=this.T_,K.S!== z&&(K.S=z,K.T=1,z.isLoaded()?K.G():K.S.subscribe("dataloaded",K.G,K)))))}; g.k.DF=function(z,K,f,M){var p=this;f=f===void 0?0:f;M=M===void 0?0:M;uC(this,this.Of()).pB();H4W(this.b9,z,K,f,M).then(function(){p.Fc.rO("onQueuedVideoLoaded")},function(){})}; g.k.Ao=function(){return this.b9.Ao()}; g.k.AC=function(z){var K=this.b9.S;return K?K.Uw(z):!1}; g.k.clearQueue=function(z,K){z=z===void 0?!1:z;K=K===void 0?!1:K;this.logger.debug("Clearing queue");this.b9.clearQueue(z,K)}; g.k.loadVideoByPlayerVars=function(z,K,f,M,p,t){K=K===void 0?1:K;var B=this.JH();if(K===2&&this.Y8().enableServerStitchedDai&&B&&!B.kI())return B.Th("lvonss",{vid:(z==null?void 0:z.videoId)||"",ptype:K}),!1;var v=!1;B=new g.oB(this.SV,z);B.SE=t;g.MR(this.SV)&&!B.NV&&yu(this.hH);var I;t=this.hH;var G=(I=B.N)!=null?I:"";t.timerName=G;this.hH.o5("pl_i");this.B("web_player_early_cpn")&&B.clientPlaybackNonce&&this.hH.infoGel({clientPlaybackNonce:B.clientPlaybackNonce});xGI(B).supportsVp9Encoding===!1&& this.Of().Th("noVp9enc",{});if(this.Z().supportsGaplessShorts()){I=mVS(this.b9,B,K);if(I==null){S6(this,-1);z=this.b9;z.app.Z().B("html5_gapless_new_slr")?WS(z.app,"gaplessshortslooprange"):z.app.setLoopRange(null);z.app.getVideoData().Eu=!0;var b;(b=z.S)==null||b.yC();var e;(e=z.S)==null||e.ER();f={v8:"gapless_to_next_video",seekSource:60,Js:z.C.S};M=g.uY(z.app.Z().experiments,"html5_gapless_seek_offset");if(z.C.S){var w,D;p=(D=(w=z.T)==null?void 0:dR(w).Kc)!=null?D:q68(z)}else p=q68(z);var y;(y= z.app.Of())==null||y.seekTo(p+M,f);if(!z.app.getPlayerStateObject(K).isPlaying()){var R;(R=z.app.Of())==null||R.playVideo(!0)}var S;(S=z.app.Of())==null||S.xD();z.G();return!0}w=this.B("html5_shorts_gapless_preload_fallback");D=this.b9.S;w&&D&&!D.CH()&&(y=D.getVideoData(),y=this.SV.B("html5_autonav_autoplay_in_preload_key")?dd(this,K,y):cS(this,K,y.videoId,y.O0),this.xb.J.set(y,D,3600));this.b9.clearQueue(w);this.Of().Th("sgap",{f:I})}if(p){for(;B.Ii.length&&B.Ii[0].isExpired();)B.Ii.shift();w=B.Ii.length- 1;v=w>0&&p.Y(B.Ii[w])&&p.Y(B.Ii[w-1]);B.Ii.push(p)}f||(z&&rzu(z)?(Ui(this.SV)&&!this.d2&&(z.fetch=0),HS(this,z)):this.playlist&&HS(this,null),z&&(this.d2=vK(!1,z.external_list)));this.Fc.publish("loadvideo");K=this.tV(B,K,M);v&&this.a5("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+B.Ii.join()).replace(/[;:,]/g,"_"));return K}; g.k.preloadVideoByPlayerVars=function(z,K,f,M,p){K=K===void 0?1:K;f=f===void 0?NaN:f;M=M===void 0?"":M;p=p===void 0?"":p;var t="";if(this.SV.B("html5_autonav_autoplay_in_preload_key"))t=H$g(this,K,z,p);else{var B=w0(z);t=cS(this,K,B,p)}if(this.xb.J.get(t))return this.logger.debug(function(){return"already preloaded "+t}),null; z=new g.oB(this.SV,z);p&&(z.O0=p);return POW(this,z,K,f,M)}; g.k.setMinimized=function(z){this.visibility.setMinimized(z);(z=nUu(this.g3))&&(this.isMinimized()?z.load():z.unload());this.Fc.publish("minimized")}; g.k.setInline=function(z){this.visibility.setInline(z)}; g.k.setInlinePreview=function(z){this.visibility.setInline(z)}; g.k.G0=function(z){qV5(this,z)||this.visibility.G0(z)}; g.k.setSqueezeback=function(z){this.visibility.setSqueezeback(z)}; g.k.Se=function(){var z,K=(z=this.mediaElement)==null?void 0:z.H1();K&&(this.SV.fE&&Lg(Re(function(){return document.exitFullscreen()}),function(){}),Lg(Re(function(){return PK(K)}),function(){}))}; g.k.A9e=function(){this.mediaElement.H1();this.mediaElement.H1().webkitPresentationMode==="picture-in-picture"?this.G0(!0):this.G0(!1)}; g.k.togglePictureInPicture=function(){this.Of().togglePictureInPicture()}; g.k.tV=function(z,K,f){K=K===void 0?1:K;this.logger.debug(function(){return"start load video, id "+z.videoId+", type "+K}); Cp("_start",this.hH.timerName)||g.Mu(AE)(void 0,this.hH.timerName);var M=!1,p=h2S(this,K,z,!1);p?(M=!0,z.dispose()):(p=aK(this,K,z,!0,f),(this.B("html5_onesie")||this.B("html5_load_before_stop"))&&p.M_()&&p.GK(),this.Nj.stop(),K===1&&K!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,K),this.vn(p));p===this.JH()&&(this.SV.Yx=z.oauthToken);if(!p.M_())return!1;if(p===this.JH())return this.D7(1),f=qy(this),M&&this.B("html5_player_preload_ad_fix")&&p.getPlayerType()===1&& p.zf()&&this.Up("dataloaded",p,p.getVideoData()),f;p.b7();return!0}; g.k.cueVideoByPlayerVars=function(z,K){var f=this;K=K===void 0?1:K;var M=this.JH();if(this.Y8().enableServerStitchedDai&&M&&!M.kI()&&z&&Object.keys(z).length>0)M.Th("qvonss",{vid:(z==null?void 0:z.videoId)||"",ptype:K});else if(z&&rzu(z))if(this.iT=!0,HS(this,z),(z=g.kW(this.playlist))&&z.bl())AJ(this,z,K);else this.playlist.onReady(function(){Q$(f)}); else{K||(K=this.getPresentingPlayerType());K===1&&this.gT();M=new g.oB(this.SV,z);var p=g.Jw(this.SV)&&!this.SV.l_&&K===1&&!M.isAd()&&!M.K3;this.Fc.publish("cuevideo");p?(this.Of().getVideoData().loading=!0,KDT(M,z?z:{}).then(function(t){AJ(f,t,K)}),M.dispose()):AJ(this,M,K)}}; g.k.by=function(z,K,f,M,p,t,B){if(!z&&!f)throw Error("Playback source is invalid");if(iI(this.SV)||g.JK(this.SV))return K=K||{},K.lact=nv(),K.vis=this.Fc.getVisibilityState(),this.Fc.LH("onPlayVideo",{videoId:z,watchEndpoint:t,sessionData:K,listId:f}),!1;FLq(this.hH);this.hH.reset();z={video_id:z};M&&(z.autoplay="1");M&&(z.autonav="1");t&&(z.player_params=t.playerParams);B&&(z.oauth_token=B);f?(z.list=f,this.loadPlaylist(z)):this.loadVideoByPlayerVars(z,1);return!0}; g.k.cuePlaylist=function(z,K,f,M){this.iT=!0;mKp(this,z,K,f,M)}; g.k.loadPlaylist=function(z,K,f,M){this.iT=!1;mKp(this,z,K,f,M)}; g.k.BF=function(){return this.Fc.isMutedByMutedAutoplay()?!1:this.xb.qM?!0:!(!this.playlist||!this.playlist.WC())}; g.k.dZ=zo(13); g.k.nextVideo=function(z,K){var f=g.ME(this.JH().getVideoData());g.cD(this.Fc)&&f?this.by(f.videoId,K?f.HF:f.sessionData,f.playlistId,K,void 0,f.bR||void 0):this.d2?this.Fc.rO("onPlaylistNext"):this.getPresentingPlayerType()===3?nq(this.g3).nextVideo():!this.playlist||Ui(this.SV)&&!this.Fc.isFullscreen()||(this.playlist.WC(z)&&Cod(this.playlist,ZYv(this.playlist)),this.playlist.loaded?(z=K&&this.SV.B("html5_player_autonav_logging"),K&&this.Fc.publish("playlistautonextvideo"),this.tV(g.kW(this.playlist,void 0, K,z),1)):this.iT=!1)}; g.k.previousVideo=function(z){this.d2?this.Fc.rO("onPlaylistPrevious"):this.getPresentingPlayerType()===3?nq(this.g3).Pu():!this.playlist||Ui(this.SV)&&!this.Fc.isFullscreen()||(this.playlist.S4(z)&&Cod(this.playlist,o2I(this.playlist)),this.playlist.loaded?this.tV(g.kW(this.playlist),1):this.iT=!1)}; g.k.playVideoAt=function(z){this.d2?this.Fc.rO("onPlaylistIndex",z):this.playlist&&(this.playlist.loaded?this.tV(g.kW(this.playlist,z),1):this.iT=!1,Cod(this.playlist,z))}; g.k.getPlaylist=function(){return this.playlist}; g.k.Z9=zo(25);g.k.g1q=function(z){this.Fc.IX("onCueRangeEnter",z.getId())}; g.k.fqf=function(z){this.Fc.IX("onCueRangeExit",z.getId())}; g.k.Q4=function(){var z=g.qN(this.pI());z&&z.Q4()}; g.k.tA=function(z,K,f){var M=this.FL({playerType:K});if(M){if(this.B("html5_ssdai_enable_media_end_cue_range")&&this.La){M.getPlayerType()===2&&this.La.yT(this.getCurrentTime())&&(M=this.JH());for(var p=g.a(z),t=p.next();!t.done;t=p.next())t.value.T=this.La.Hh}M.tA(z,f);K&&this.getPresentingPlayerType()!==K||j6(this,"cuerangesadded",z)}}; g.k.V4=function(z,K){var f=this.FL({playerType:K});f&&(f.V4(z),K&&this.getPresentingPlayerType()!==K||j6(this,"cuerangesremoved",z))}; g.k.XB=function(z){return this.Of().XB(z)}; g.k.Qa_=function(){function z(){var M=K.screenLayer||(K.isMinimized()?3:0),p=g.Vz(M);if(p&&p!=="UNDEFINED_CSN"){var t=K.SV.B("web_player_attach_player_response_ve"),B=K.SV.B("web_playback_associated_ve");M={cpn:K.getVideoData().clientPlaybackNonce,csn:p};K.getVideoData().vx&&(t||B)&&(t=g.qe(K.getVideoData().vx),g.vW(p,t),B&&(M.playbackVe=t.getAsJson()));K.getVideoData().queueInfo&&(M.queueInfo=K.getVideoData().queueInfo);p={};K.B("web_playback_associated_log_ctt")&&K.getVideoData().W&&(p.cttAuthInfo= {token:K.getVideoData().W,videoId:K.getVideoData().videoId});g.Ds("playbackAssociated",M,p)}else g.Al(new g.UT("CSN Missing or undefined during playback association"))} var K=this,f=this.Of();this.getPresentingPlayerType();xC8(this.hH,f.getVideoData(),WXg(this));PS(this)&&this.SV.J&&sM(this.Y8())==="embedded"&&this.p$&&Math.random()<.01&&g.Ds("autoplayTriggered",{intentional:this.intentionalPlayback});this.p$=!1;myp(this.g3);this.B("web_player_defer_ad")&&wUp(this);this.Fc.rO("onPlaybackStartExternal");(this.SV.B("mweb_client_log_screen_associated"),r7(this.SV))||z();f={};this.getVideoData().W&&(f.cttAuthInfo={token:this.getVideoData().W,videoId:this.getVideoData().videoId}); f.sampleRate=20;oV("player_att",f);if(this.getVideoData().botguardData||this.B("fetch_att_independently"))g.$t(this.SV)||g.tw(this.SV)==="MWEB"?g.Mg(g.tO(),function(){mD(K)}):mD(this); this.l6();R2u(this);this.B("embeds_enable_autoplay_and_visibility_signals")&&g.Jw(this.SV)&&(f={autoplayBrowserPolicy:fX(),autoplayIntended:Mo(this.getVideoData()),autoplayStatus:K78(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.Ds("embedsAutoplayStatusChanged",f))}; g.k.oi_=function(){this.Fc.publish("internalAbandon");iC(this)}; g.k.onApiChange=function(){var z=this.Of();this.SV.D?this.Fc.IX("onApiChange",z.getPlayerType()):this.Fc.IX("onApiChange")}; g.k.X1c=function(){var z=this.mediaElement;z={volume:g.qt(Math.floor(z.getVolume()*100),0,100),muted:z.Sj()};z.muted||V$(this,!1);this.X2=g.$o(z);this.Fc.IX("onVolumeChange",z)}; g.k.mutedAutoplay=function(z){var K=this.getVideoData().videoId;isNaN(this.Qq)&&(this.Qq=this.getVideoData().startSeconds);if((z==null?0:z.videoId)||K)this.loadVideoByPlayerVars({video_id:(z==null?0:z.videoId)?z==null?void 0:z.videoId:K,playmuted:!0,start:this.Qq,muted_autoplay_duration_mode:z==null?void 0:z.durationMode}),this.Fc.rO("onMutedAutoplayStarts")}; g.k.onFullscreenChange=function(){var z=gsS(this);this.ZE(z?1:0);dKo(this,!!z)}; g.k.ZE=function(z){var K=!!z,f=!!this.Fv()!==K;this.visibility.ZE(z);this.template.ZE(K);this.B("html5_media_fullscreen")&&!K&&this.mediaElement&&gsS(this)===this.mediaElement.H1()&&this.mediaElement.xp();this.template.resize();f&&this.hH.tick("fsc");f&&(this.Fc.publish("fullscreentoggled",K),z=this.Y8(),K={fullscreen:K,videoId:z.Jx||z.videoId,time:this.getCurrentTime()},this.Fc.getPlaylistId()&&(K.listId=this.Fc.getPlaylistId()),this.Fc.IX("onFullscreenChange",K))}; g.k.qP=function(){return this.visibility.qP()}; g.k.isFullscreen=function(){return this.visibility.isFullscreen()}; g.k.Fv=function(){return this.visibility.Fv()}; g.k.b6x=function(){var z=this.Fv();z!==0&&z!==1||this.ZE(gsS(this)?1:0);z=window.screen.width*window.screen.height;var K=window.outerHeight*window.outerWidth;this.SV.yM?(this.Cg=Math.max(this.Cg,z,K),z=K/this.Cg0&&(I=Math.floor(G/1E3))}I=K?K.mP:I;var b={AD_BLOCK:this.S++,AD_BREAK_LENGTH:I,AUTONAV_STATE:X5(this.player.Z()),CA_TYPE:"image",CPN:v.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.dL()*1E3,LACT:nv(),LIVE_INDEX:K?this.T++:1,LIVE_TARGETING_CONTEXT:K&&K.context?K.context:"",MIDROLL_POS:t? Math.round(t.start/1E3):0,MIDROLL_POS_MS:t?Math.round(t.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.wE().ox().height,P_W:this.player.wE().ox().width,YT_REMOTE:p?p.join(","):""},e=kB(y4);Object.keys(e).forEach(function(D){e[D]!=null&&(b[D.toUpperCase()]=e[D].toString())}); f!==""&&(b.BISCOTTI_ID=f);f={};DQ(z)&&(f.sts="20237",(K=this.player.Z().forcedExperiments)&&(f.forced_experiments=K));var w=bm(g.Jy(z,b),f);return w.split("?").length!==2?J8(Error("Invalid AdBreakInfo URL")):g.IB(this.player.Z(),v==null?void 0:v.oauthToken).then(function(D){if(D&&wV()){var y=jz();YO(y,D)}D=M.player.Gm(y);y=vQv(M,w,b,v.isMdxPlayback,B);return g.$H(D,y,"/youtubei/v1/player/ad_break").then(function(R){return R})})}; xU.prototype.reset=function(){this.T=this.S=1};g.h(IaS,xU); IaS.prototype.Y=function(z,K,f){K=K===void 0?{}:K;var M=K.tf;var p=K.Wh;var t=K.cueProcessedMs;f=f===void 0?"":f;K=this.S;this.S++;var B=this.player.Z().B("h5_disable_macro_substitution_in_get_ad_break")?z:GRv(this,z,{tf:M,Wh:p,cueProcessedMs:t},f,K);if(B.split("?").length!==2)return Math.random()<.1&&g.Al(Error("Invalid AdBreakInfo URL")),J8(Error("Invalid AdBreakInfo URL"));var v=this.player.getVideoData(1).isMdxPlayback,I=f;f=$Up.exec(B);f=f!=null&&f.length>=2?f[1]:"";z=fad.test(B);var G=Mcv.exec(B); G=G!=null&&G.length>=2?G[1]:"";var b=pbp.exec(B);b=b!=null&&b.length>=2&&!Number.isNaN(Number(b[1]))?Number(b[1]):1;var e=tcd.exec(B);e=e!=null&&e.length>=2?e[1]:"0";var w=Ff(this.player.Z().c7),D=g.tE(this.player.getVideoData(1).vx,!0);osd(this,D,B,I===""?"":I,this.player.Z(),this.player.getVideoData(1));I={splay:!1,lactMilliseconds:String(nv()),playerHeightPixels:Math.trunc(this.player.wE().ox().height),playerWidthPixels:Math.trunc(this.player.wE().ox().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20237,autonavState:X5(this.player.Z())};if(v){v={};var y=this.player.Z().Jo;UK8(v,y?y.join(","):"")&&(I.mdxContext=v)}if(v=Bt8.includes(w)?void 0:g.YB("PREF")){y=v.split(RegExp("[:&]"));for(var R=0,S=y.length;R1&&E[1].toUpperCase()==="TRUE"){D.user.lockedSafetyMode=!0;break}}I.autoCaptionsDefaultOn=K_S(v)}B=Ntp.exec(B);(B=B!=null&&B.length>=2?B[1]:"")&&G&&(D.user.credentialTransferTokens= [{token:B,scope:"VIDEO"}]);B={contentPlaybackContext:I};I=this.player.getVideoData(1).getGetAdBreakContext();v=this.player.getVideoData(1).clientPlaybackNonce;y=t!==void 0?Math.round(t).toString():void 0;R=(M==null?0:M.context)?M.context:void 0;S=0;t&&p&&!M&&(p=p.end-p.start,p>0&&(S=Math.floor(p/1E3)));M=(M=Math.trunc((M?M.mP:S)*1E3))?String(M):void 0;p=this.player.dL()*1E3;p=Number.isNaN(p)?0:Math.trunc(p);K={adBlock:K,params:f,breakIndex:b,breakPositionMs:e,clientPlaybackNonce:v,topLevelDomain:w, isProxyAdTagRequest:z,context:D,overridePlaybackContext:B,cueProcessedMs:y,videoId:G?G:void 0,liveTargetingParams:R,breakLengthMs:M,driftFromHeadMs:p?String(p):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:I?I:void 0};return b2d(this,K)};var kdS={esE:"replaceUrlMacros",gm1:"onAboutThisAdPopupClosed",XWE:"executeCommand"};e_u.prototype.CD=function(){return"adPingingEndpoint"}; e_u.prototype.BD=function(z,K,f){oQS(this.Gh.get(),z,K,f)};wbS.prototype.CD=function(){return"changeEngagementPanelVisibilityAction"}; wbS.prototype.BD=function(z){this.U.LH("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:z})};DUd.prototype.CD=function(){return"loggingUrls"}; DUd.prototype.BD=function(z,K,f){z=g.a(z);for(var M=z.next();!M.done;M=z.next())M=M.value,oQS(this.Gh.get(),M.baseUrl,K,f,M.attributionSrcMode)};g.h(kRS,g.J);g.h(Or,g.J);g.k=Or.prototype;g.k.addListener=function(z){this.listeners.push(z)}; g.k.removeListener=function(z){this.listeners=this.listeners.filter(function(K){return K!==z})}; g.k.BW=function(z,K,f,M,p,t,B,v){if(z==="")R3("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(z!==this.S||f){this.S=z;this.Uf.get().BW(z,K,f,M,p,t,B,v);this.i_.get().BW(z,K,f,M,p,t,B,v);var I;(I=this.ML)==null||I.get().BW(z,K,f,M,p,t,B,v);this.Y.BW(z,K,f,M,p,t,B,v);I=g.a(this.listeners);for(var G=I.next();!G.done;G=I.next())G.value.BW(z,K,f,M,p,t,B,v)}else R3("Duplicate content video loaded signal")}; g.k.mBh=function(){this.S&&this.CY(this.S)}; g.k.CY=function(z){this.S=void 0;for(var K=g.a(this.listeners),f=K.next();!f.done;f=K.next())f.value.CY(z)};rd.prototype.r0=function(z,K,f,M,p){h_8(this);this.C=!K&&f===0;var t=this.U.getVideoData(1),B=this.U.getVideoData(2);t&&(this.contentCpn=t.clientPlaybackNonce,this.videoId=t.videoId,this.S=t.W);B&&(this.adCpn=B.clientPlaybackNonce,this.adVideoId=B.videoId,this.adFormat=B.adFormat);this.J=z;M<=0?(h_8(this),this.C=!K&&f===0):(this.actionType=this.C?K?"unknown_type":"video_to_ad":K?"ad_to_video":"ad_to_ad",this.videoStreamType=p?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.T=!0,Cp("_start",this.actionType)&&SYu(this)))}; rd.prototype.reset=function(){return new rd(this.U)};g.h(Zg,g.J);Zg.prototype.addCueRange=function(z,K,f,M,p,t,B){t=t===void 0?3:t;B=B===void 0?1:B;this.S.has(z)?R3("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:z}):(z=new uEu(z,K,f,M,t),this.S.set(z.id,{Wh:z,listener:p,mJ:B}),this.U.St([z],B))}; Zg.prototype.removeCueRange=function(z){var K=this.S.get(z);K?(this.U.gL([K.Wh],K.mJ),this.S.delete(K.Wh.id)):R3("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:z})}; Zg.prototype.onCueRangeEnter=function(z){if(this.S.has(z.id))this.S.get(z.id).listener.onCueRangeEnter(z.id)}; Zg.prototype.onCueRangeExit=function(z){if(this.S.has(z.id))this.S.get(z.id).listener.onCueRangeExit(z.id)}; g.h(uEu,g.bS);oK.prototype.addPlayerResponseForAssociation=function(z){this.U.addPlayerResponseForAssociation(z)};CS.prototype.CU=function(z){this.U.CU(z)}; CS.prototype.x$=function(z){var K=g.i8.apply(1,arguments);z==="onAdStart"||z==="onAdEnd"?this.U.IX.apply(this.U,[z].concat(g.P(K))):this.U.LH.apply(this.U,[z].concat(g.P(K)))};T3.prototype.xd=function(z){return z&&Ur(this)};var W_v=null;g.h(nQu,g.Dv);nQu.prototype.LL=function(z){return this.S.hasOwnProperty(z)?this.S[z].LL():{}}; g.ov("ytads.bulleit.getVideoMetadata",function(z){return zZ().LL(z)}); g.ov("ytads.bulleit.triggerExternalActivityEvent",function(z,K,f){var M=zZ();f=VcT(f);f!==null&&M.publish(f,{queryId:z,viewabilityString:K})});g.k=K7.prototype;g.k.ZU=function(z,K){if(!this.S.has(z))return{};if(K==="seek"){K=!1;K=K===void 0?!1:K;var f=$N(f_).ej(z,{});f?TQ(f):K&&(z=$N(f_).XO(null,FO(),!1,z),z.GU=3,EDI([z]));return{}}K=gQu(K);if(K===null)return{};var M=this.U.IK();if(!M)return{};var p=this.U.getPresentingPlayerType(!0);if((f=this.U.getVideoData(p))==null||!f.isAd())return{};f={opt_adElement:M,opt_fullscreen:this.Uf.get().isFullscreen()};return Epp(K,z,f)}; g.k.r6=function(z,K,f,M,p){this.S.has(z)&&(M<=0||p<=0||$N(f_).r6(z,K,f,M,p))}; g.k.jN=function(z){var K;(K=this.S.get(z.queryId))==null||K.jN()}; g.k.p9=function(z){var K;(K=this.S.get(z.queryId))==null||K.p9()}; g.k.Hd=function(z){var K;(K=this.S.get(z.queryId))==null||K.Hd()}; g.k.zr=function(z){var K;(K=this.S.get(z.queryId))==null||K.zr()}; g.k.n9=function(z){var K;(K=this.S.get(z.queryId))==null||K.n9()};xUI.prototype.send=function(z,K,f,M){try{F_q(this,z,K,f,M===void 0?!1:M)}catch(p){}};g.h(O2W,xUI);rBa.prototype.send=function(z,K,f,M){var p=!1;try{if(M==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||M==="ATTRIBUTION_SRC_MODE_XHR_OPTION")p=!0,z=bJI(z);M=p;var t=g.Le(z);if(t[1]==="https")var B=z;else t[1]="https",B=u6("https",t[2],t[3],t[4],t[5],t[6],t[7]);var v=BBW(B);t=[];var I=ZVd(B)&&this.Ef.get().U.Z().experiments.sf("add_auth_headers_to_remarketing_google_dot_com_ping");if(DQ(B)||I)t.push({headerType:"USER_AUTH"}),t.push({headerType:"PLUS_PAGE_ID"}),t.push({headerType:"VISITOR_ID"}),t.push({headerType:"EOM_VISITOR_ID"}), t.push({headerType:"AUTH_USER"}),t.push({headerType:"DATASYNC_ID"});this.S.send({baseUrl:B,scrubReferrer:v,headers:t},K,f,M)}catch(G){}};tZ.prototype.qZ=function(){return this.U.qZ(1)};g.h(B$,g.J);g.k=B$.prototype;g.k.nJ=function(){return this.U.getVideoData(1).clientPlaybackNonce}; g.k.addListener=function(z){this.listeners.push(z)}; g.k.removeListener=function(z){this.listeners=this.listeners.filter(function(K){return K!==z})}; g.k.BW=function(){this.qN.clear();this.mp=null;this.QM.get().clear()}; g.k.CY=function(){}; g.k.B3_=function(z,K,f,M,p){K.videoId==="nPpU29QrbiU"&&this.U.Th("ads_ssm_vdc_s",{pt:f,dvt:z});VE(this.Ef.get())&&z!=="dataloaded"||fm8(this,K,f);if(Ur(this.Ef.get())&&z==="newdata"&&p!==void 0){z=this.nJ();var t=K.clientPlaybackNonce,B={};mE(this,"rte",(B.ec=t,B.xc=M==null?void 0:M.clientPlaybackNonce,B.tr=p,B.pt=f,B.ia=t!==z,B.ctp=qT(t),B));K=K.clientPlaybackNonce;M=M==null?void 0:M.clientPlaybackNonce;p=MDI(p);if(p!==1)if(M!==void 0)for(f=g.a(this.listeners),z=f.next();!z.done;z=f.next())z.value.Nw(M, K,p);else R3("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:K,transitionReason:String(p)});p=g.a(this.listeners);for(M=p.next();!M.done;M=p.next())M.value.R_(K)}}; g.k.T3c=function(z,K){z!==void 0&&(this.mp=z,K===void 0?R3("Expected ad video start time on SS video changed"):this.qN.set(z,K));var f=this.U.getPresentingPlayerType(!0),M=this.U.getVideoData(f),p;z===void 0?p=null:p=this.QM.get().S.get(z)||null;this.U.getVideoData(1).Th("ads_ssvc",{pt:f,cpn:M==null?void 0:M.clientPlaybackNonce,crtt:this.U.getCurrentTime(1,!1),atlh:this.U.isAtLiveHead(),adstt:K,pid:z,slid:p==null?void 0:p.layoutId});M?fm8(this,M,f):R3("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.U.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:z})}; g.k.tS=function(z,K){var f=z.author,M=z.clientPlaybackNonce,p=z.isListed,t=z.O0,B=z.title,v=z.ya,I=z.O8,G=z.isMdxPlayback,b=z.kq,e=z.mdxEnvironment,w=z.isAutonav,D=z.X9,y=z.NV,R=z.gU,S=z.videoId||"",E=z.profilePicture||"",L=z.rL||"",q=z.WW()||!1,V=z.Fr()||!1;z=z.M$||void 0;t=this.QM.get().S.get(t)||{layoutId:null,slotId:null};var c=this.U.getVideoData(1),O=c.CI();c=c.getPlayerResponse();K=1E3*this.U.getDuration(K);var x=1E3*this.U.getDuration(1),T,M8,$S=(c==null?void 0:(T=c.playerConfig)==null?void 0: (M8=T.daiConfig)==null?void 0:M8.enableDai)||!1,td,r;T=(c==null?void 0:(td=c.playerConfig)==null?void 0:(r=td.daiConfig)==null?void 0:r.enablePreroll)||!1;return Object.assign({},t,{videoId:S,author:f,clientPlaybackNonce:M,Mo:K,ZD:x,daiEnabled:$S,F1:T,isListed:p,CI:O,profilePicture:E,title:B,rL:L,ya:v,O8:I,M$:z,isMdxPlayback:G,kq:b,mdxEnvironment:e,isAutonav:w,X9:D,NV:y,gU:R,WW:q,Fr:V})}; g.k.JL=function(){this.listeners.length=0;this.wc=null;g.J.prototype.JL.call(this)};g.h(NH,g.J);g.k=NH.prototype;g.k.BW=function(){var z=this;Ur(this.Ef.get())||(this.S=k0(function(){z.U.CH()||z.U.A_("ad",1)}))}; g.k.CY=function(){}; g.k.addListener=function(z){this.listeners.push(z)}; g.k.removeListener=function(z){this.listeners=this.listeners.filter(function(K){return K!==z})}; g.k.RS=function(){}; g.k.playVideo=function(){this.U.playVideo()}; g.k.pauseVideo=function(){this.U.pauseVideo()}; g.k.resumeVideo=function(z){this.Ld(z)&&this.U.playVideo()}; g.k.Ld=function(z){return this.U.getPlayerState(z)===2}; g.k.getCurrentTimeSec=function(z,K,f){var M=this.i_.get().mp;if(z===2&&!K&&M!==null)return tDp(this,M);MI(this.Ef.get(),"html5_ssap_use_cpn_to_get_time")||(f=void 0);return f!==void 0?this.U.getCurrentTime(z,K,f):this.U.getCurrentTime(z,K)}; g.k.getVolume=function(){return this.U.getVolume()}; g.k.isMuted=function(){return this.U.isMuted()}; g.k.getPresentingPlayerType=function(){return this.U.getPresentingPlayerType(!0)}; g.k.getPlayerState=function(z){return this.U.getPlayerState(z)}; g.k.isFullscreen=function(){return this.U.isFullscreen()}; g.k.isAtLiveHead=function(){return this.U.isAtLiveHead()}; g.k.u4=function(z){this.U.u4(z)}; g.k.Fdx=function(){var z=this.U.getPresentingPlayerType(!0),K=this.getCurrentTimeSec(z,!1);if(z===2){z=g.a(this.listeners);for(var f=z.next();!f.done;f=z.next())f.value.P7(K)}else if(z===1)for(z=g.a(this.r9),f=z.next();!f.done;f=z.next())f.value.RS(K)}; g.k.JBH=function(z){for(var K=g.a(this.listeners),f=K.next();!f.done;f=K.next())f.value.Fo(z,this.getPresentingPlayerType())}; g.k.onFullscreenToggled=function(z){for(var K=g.a(this.listeners),f=K.next();!f.done;f=K.next())f.value.onFullscreenToggled(z)}; g.k.onVolumeChange=function(){for(var z=g.a(this.listeners),K=z.next();!K.done;K=z.next())K.value.onVolumeChange()}; g.k.Hj=function(){for(var z=this.U.isMinimized(),K=g.a(this.listeners),f=K.next();!f.done;f=K.next())f.value.Hj(z)}; g.k.GN=function(z){for(var K=g.a(this.listeners),f=K.next();!f.done;f=K.next())f.value.GN(z)}; g.k.NB=function(){for(var z=this.U.wE().ox(),K=g.a(this.listeners),f=K.next();!f.done;f=K.next())f.value.bj(z)}; g.k.If=function(z){for(var K=g.a(this.listeners),f=K.next();!f.done;f=K.next())f.value.If(z)}; g.k.KW=function(){for(var z=g.a(this.listeners),K=z.next();!K.done;K=z.next())K.value.KW()};g.h(vGq,g.J);g.h(eH,g.J);eH.prototype.JL=function(){this.Rt.CH()||this.Rt.get().removeListener(this);g.J.prototype.JL.call(this)};wL.prototype.fetch=function(z){var K=z.ST;return this.S.fetch(z.kL,{tf:z.tf===void 0?void 0:z.tf,Wh:K,cueProcessedMs:z.cueProcessedMs===void 0?0:z.cueProcessedMs}).then(function(f){return Im8(f,K)})};g.h(Dk,g.J);g.k=Dk.prototype;g.k.addListener=function(z){this.listeners.push(z)}; g.k.removeListener=function(z){this.listeners=this.listeners.filter(function(K){return K!==z})}; g.k.B_=function(z){Gbd(this,z,1)}; g.k.onAdUxClicked=function(z,K){yH(this,function(f){f.J_(z,K)})}; g.k.Lg=function(z){yH(this,function(K){K.mf(z)})}; g.k.sQ=function(z){yH(this,function(K){K.W3(z)})}; g.k.XxH=function(z){yH(this,function(K){K.WJ(z)})};kX.prototype.reduce=function(z){switch(z.event){case "unknown":return}var K=z.identifier;var f=this.S[K];f?K=f:(f={yP:null,oI:-Infinity},K=this.S[K]=f);f=z.startSecs+z.S/1E3;if(!(f=this.S.startSecs&&f.startSecs<=this.S.startSecs+this.S.mP)){var M=void 0;if(n9(this.Ef.get())&&f.identifier!==((M=this.S)==null?void 0:M.identifier)){var p=M=void 0,t=void 0,B=void 0;bb(this.Gh.get(),"ocud","ccpi."+f.identifier+";ccpe."+f.event+";ccps."+f.startSecs+";\n ccpd."+f.mP+";pcpi."+((M=this.S)==null?void 0:M.identifier)+ ";pcpe."+((p=this.S)==null?void 0:p.event)+";\n pcps."+((t=this.S)==null?void 0:t.startSecs)+";pcpd."+((B=this.S)==null?void 0:B.mP)+";")}M=void 0;f.identifier!==((M=this.S)==null?void 0:M.identifier)&&R3("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.S=f,wyg(this,f)}}; g.k.JL=function(){this.Y!=null&&(this.Y.unsubscribe("cuepointupdated",this.yq,this),this.Y=null);this.listeners.length=0;this.yX.length=0;g.J.prototype.JL.call(this)};g.k=Rh.prototype;g.k.BU=function(z,K,f,M,p,t,B){return this.U.BU(z,K,f,M,p,t,B)}; g.k.wv=function(z,K){this.U.wv(z,K)}; g.k.gW=function(z,K,f){this.U.gW(z,K,f)}; g.k.z0=function(z){this.U.z0(z)}; g.k.Sa=function(z,K,f,M,p,t,B){return this.U.Sa(z,K,f,M,p,t,B)}; g.k.fY=function(z){return this.U.fY(z)}; g.k.finishSegmentByCpn=function(z,K,f){f=kbW(f);this.U.finishSegmentByCpn(z,K,f)};g.h(SH,g.J);g.h(ama,g.J);g.h(RJv,g.J);g.h(SkW,g.J);g.h(uhg,g.J);g.h(LCu,g.J);g.h(P0W,g.J);P0W.prototype.T=function(){return this.Y};g.h(HBu,Ua); HBu.prototype.J=function(z){var K=z.content;if(K.componentType==="shopping-companion")switch(z.actionType){case 1:case 2:z=this.S.getVideoData(1);this.S.LH("updateKevlarOrC3Companion",{contentVideoId:z&&z.videoId,shoppingCompanionCarouselRenderer:K.renderer,layoutId:K.layoutId,macros:K.macros,onLayoutVisibleCallback:K.S,interactionLoggingClientData:K.interactionLoggingClientData});break;case 3:this.S.LH("updateKevlarOrC3Companion",{})}else if(K.componentType==="action-companion")switch(z.actionType){case 1:case 2:z=this.S.getVideoData(1); this.S.LH("updateKevlarOrC3Companion",{contentVideoId:z&&z.videoId,actionCompanionAdRenderer:K.renderer,layoutId:K.layoutId,macros:K.macros,onLayoutVisibleCallback:K.S,interactionLoggingClientData:K.interactionLoggingClientData});break;case 3:K.renderer&&(K=this.S.getVideoData(1),this.S.LH("updateKevlarOrC3Companion",{contentVideoId:K&&K.videoId})),this.S.LH("updateKevlarOrC3Companion",{})}else if(K.componentType==="image-companion")switch(z.actionType){case 1:case 2:z=this.S.getVideoData(1);this.S.LH("updateKevlarOrC3Companion", {contentVideoId:z&&z.videoId,imageCompanionAdRenderer:K.renderer,layoutId:K.layoutId,macros:K.macros,onLayoutVisibleCallback:K.S,interactionLoggingClientData:K.interactionLoggingClientData});break;case 3:K=this.S.getVideoData(1),this.S.LH("updateKevlarOrC3Companion",{contentVideoId:K&&K.videoId}),this.S.LH("updateKevlarOrC3Companion",{})}else if(K.componentType==="top-banner-image-text-icon-buttoned")switch(z.actionType){case 1:case 2:z=this.S.getVideoData(1);this.S.LH("updateKevlarOrC3Companion", {contentVideoId:z&&z.videoId,topBannerImageTextIconButtonedLayoutViewModel:K.renderer,layoutId:K.layoutId,macros:K.macros,onLayoutVisibleCallback:K.S,interactionLoggingClientData:K.interactionLoggingClientData});break;case 3:K.renderer&&(K=this.S.getVideoData(1),this.S.LH("updateKevlarOrC3Companion",{contentVideoId:K&&K.videoId})),this.S.LH("updateKevlarOrC3Companion",{})}else if(K.componentType==="banner-image")switch(z.actionType){case 1:case 2:z=this.S.getVideoData(1);this.S.LH("updateKevlarOrC3Companion", {contentVideoId:z&&z.videoId,bannerImageLayoutViewModel:K.renderer,layoutId:K.layoutId,macros:K.macros,onLayoutVisibleCallback:K.S,interactionLoggingClientData:K.interactionLoggingClientData});break;case 3:K=this.S.getVideoData(1),this.S.LH("updateKevlarOrC3Companion",{contentVideoId:K&&K.videoId}),this.S.LH("updateKevlarOrC3Companion",{})}else if(K.componentType==="ads-engagement-panel")switch(K=K.renderer,z.actionType){case 1:case 2:this.S.LH("updateEngagementPanelAction",K.addAction);this.S.LH("changeEngagementPanelVisibility", K.expandAction);break;case 3:this.S.LH("changeEngagementPanelVisibility",K.hideAction),this.S.LH("updateEngagementPanelAction",K.removeAction)}else if(K.componentType==="ads-engagement-panel-layout"){var f=K.renderer;switch(z.actionType){case 1:case 2:this.S.LH("updateEngagementPanelAction",{action:FX(f.addAction),layoutId:K.layoutId,onLayoutVisibleCallback:K.S,interactionLoggingClientData:K.interactionLoggingClientData});this.S.LH("changeEngagementPanelVisibility",FX(f.expandAction));break;case 3:this.S.LH("changeEngagementPanelVisibility", FX(f.hideAction)),this.S.LH("updateEngagementPanelAction",{action:FX(f.removeAction)})}}};g.h(QLd,BP);g.k=QLd.prototype;g.k.init=function(z,K,f){BP.prototype.init.call(this,z,K,f);g.H6(this.T,"stroke-dasharray","0 "+this.Y);this.T.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.W.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.J.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){vP(this);BP.prototype.hide.call(this)}; g.k.show=function(){NS(this);BP.prototype.show.call(this)}; g.k.KY=function(){this.hide()}; g.k.DE=function(){if(this.S){var z=this.S.getProgressState();z!=null&&z.current!=null&&g.H6(this.T,"stroke-dasharray",z.current/z.seekableEnd*this.Y+" "+this.Y)}};g.h(qka,Sj);g.k=qka.prototype; g.k.init=function(z,K,f){Sj.prototype.init.call(this,z,K,f);if(K.image&&K.image.thumbnail)if(K.headline)if(K.description)if(K.backgroundImage&&K.backgroundImage.thumbnail)if(K.actionButton&&g.A(K.actionButton,g.Fd))if(z=K.durationMilliseconds||0,typeof z!=="number"||z<=0)g.sm(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+z));else if(K.navigationEndpoint){var M=this.api.getVideoData(2);if(M!=null){var p=K.image.thumbnail.thumbnails;p!=null&& p.length>0&&g.h6(g.hR(p[0].url))&&(p[0].url=M.profilePicture,g.h6(g.hR(M.profilePicture))&&jCg("VideoPlayer",239976093,"Expected non-empty profile picture."));p=K.backgroundImage.thumbnail.thumbnails;p!=null&&p.length>0&&g.h6(g.hR(p[0].url))&&(p[0].url=M.JJ());p=K.headline;p!=null&&g.h6(g.hR(p.text))&&(p.text=M.author)}this.N.init(ej("ad-image"),K.image,f);this.W.init(ej("ad-text"),K.headline,f);this.T.init(ej("ad-text"),K.description,f);this.Xc.init(ej("ad-image"),K.backgroundImage,f);M=["ytp-ad-action-interstitial-action-button", "ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.W.element.classList.add("ytp-ad-action-interstitial-headline-light");this.T.element.classList.add("ytp-ad-action-interstitial-description-light");M.push("ytp-ad-action-interstitial-action-button-dark");this.api.Z().Y&&(M.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),M.push("ytp-ad-action-interstitial-action-button-dark"));this.api.Z().B("enable_unified_action_endcap_on_web")&& !this.api.Z().Y&&(M.push("ytp-ad-action-interstitial-action-button-unified"),this.VE.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.N.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.rE.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.Df.classList.add("ytp-ad-action-interstitial-card-unified"),this.l_.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.T.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.eV.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.W.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.vx.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.Px.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new jj(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,M);g.d(this,this.actionButton);this.actionButton.hL(this.VE); this.actionButton.init(ej("button"),g.A(K.actionButton,g.Fd),f);ol(this.actionButton.element);M=UD(this.actionButton.element);T$(this.actionButton.element,M+" This link opens in new tab");this.navigationEndpoint=K.navigationEndpoint;this.J.X(this.vx,"click",this.cw,this);this.J.X(this.l_,"click",this.cw,this);!this.api.Z().B("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.Z().Y||this.J.X(this.eV,"click",this.cw,this);this.S=this.YL?new ls(this.api,z):new VD(z);g.d(this,this.S);if(K.skipButton){(z= g.A(K.skipButton,J6Z))&&this.S&&(this.skipButton=new E$(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,this.S,this.v_),g.d(this,this.skipButton),this.skipButton.hL(this.element),this.skipButton.init(ej("skip-button"),z,f));if(f=K.adBadgeRenderer)if(f=g.A(f,WyQ))z=new qS(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,!0,!0),z.hL(this.Px),z.init(ej("simple-ad-badge"),f,this.macros),g.d(this,z);if(f=K.adInfoRenderer)if(f=g.A(f,Xd))z=new MS(this.api,this.layoutId,this.interactionLoggingClientData, this.Zq,this.element,void 0,!0),z.hL(this.Px),z.init(ej("ad-info-hover-text-button"),f,this.macros),g.d(this,z)}else K.nonskippableOverlayRenderer&&(z=g.A(K.nonskippableOverlayRenderer,xP))&&this.S&&(this.Y=new bs(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,this.S,!1),g.d(this,this.Y),this.Y.hL(this.element),this.Y.init(ej("ad-preview"),z,f));K.countdownRenderer&&(K=K.countdownRenderer,g.A(K,goT)&&this.S&&(f=new QLd(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq, this.S),g.d(this,f),f.hL(this.element),f.init(ej("timed-pie-countdown"),g.A(K,goT),this.macros)));this.show();this.element.focus()}else g.sm(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.sm(Error("AdActionInterstitialRenderer has no button."));else g.sm(Error("AdActionInterstitialRenderer has no background AdImage."));else g.sm(Error("AdActionInterstitialRenderer has no description AdText."));else g.sm(Error("AdActionInterstitialRenderer has no headline AdText."));else g.sm(Error("AdActionInterstitialRenderer has no image."))}; g.k.clear=function(){g.g0(this.J);this.hide()}; g.k.show=function(){mFa(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.Y&&this.Y.show();Sj.prototype.show.call(this)}; g.k.hide=function(){mFa(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.Y&&this.Y.hide();Sj.prototype.hide.call(this)}; g.k.cw=function(){this.navigationEndpoint&&(this.layoutId?this.Zq.executeCommand(this.navigationEndpoint,this.layoutId):g.sm(Error("Missing layoutId for ad action interstitial.")))};var J78={iconType:"CLOSE"},P$=new g.W9(320,63);g.h(WCT,Sj);g.k=WCT.prototype; g.k.init=function(z,K,f){Sj.prototype.init.call(this,z,K,f);this.J=K;this.N=g.L1(this.J.onClickCommands||[]);this.Px=this.J.onErrorCommand||null;if(z=this.J.contentSupportedRenderer)z=this.J.contentSupportedRenderer,K=this.J.adInfoRenderer||null,g.A(z,lKZ)?(this.W=g.rT("ytp-ad-overlay-ad-info-button-container",this.T.element),gGa(this,K),z=dFI(this,g.A(z,lKZ))):g.A(z,Vm1)?(this.W=g.rT("ytp-ad-overlay-ad-info-button-container",this.Y.element),gGa(this,K),z=c7a(this,g.A(z,Vm1))):g.A(z,noZ)?(this.W= g.rT("ytp-ad-overlay-ad-info-button-container",this.S.element),gGa(this,K),z=sLo(this,g.A(z,noZ))):(g.sm(Error("InvideoOverlayAdRenderer content could not be initialized.")),z=!1);z&&(this.show(),A78(this,!0))}; g.k.clear=function(){A78(this,!1);this.vx.reset();this.l_=0;this.T.hide();this.logVisibility(this.T.element,!1);this.Y.hide();this.logVisibility(this.Y.element,!1);this.S.hide();this.logVisibility(this.S.element,!1);this.hide();this.dispose()}; g.k.h6_=function(){this.VE&&(this.layoutId?this.Zq.executeCommand(this.VE,this.layoutId):g.sm(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.k.nw=function(){a:{if(this.J&&this.J.closeButton&&this.J.closeButton.buttonRenderer){var z=this.J.closeButton.buttonRenderer;if(z.serviceEndpoint){z=[z.serviceEndpoint];break a}}z=[]}z=g.a(z);for(var K=z.next();!K.done;K=z.next())K=K.value,this.layoutId?this.Zq.executeCommand(K,this.layoutId):g.sm(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.k.iHL=function(){this.Xc||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.k.ew=function(){this.Xc||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.ew("invideo-overlay")}; g.k.Fe_=function(z){z.target===this.W&&g.rT("ytp-ad-button",this.rE.element).click()};g.h(jLI,BP);g.k=jLI.prototype;g.k.init=function(z,K,f){BP.prototype.init.call(this,z,K,f);z=K.durationMs;this.T=z==null||z===0?0:z+this.S.getProgressState().current*1E3;if(K.text)var M=K.text.templatedAdText;else K.staticMessage&&(M=K.staticMessage);this.messageText.init(ej("ad-text"),M,f);this.messageText.hL(this.Y.element);this.J.show(100);this.show()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){YkS(this,!1);BP.prototype.hide.call(this);this.Y.hide();this.messageText.hide();vP(this)}; g.k.show=function(){YkS(this,!0);BP.prototype.show.call(this);NS(this);this.Y.show();this.messageText.show()}; g.k.KY=function(){this.hide()}; g.k.DE=function(){if(this.S!=null){var z=this.S.getProgressState();z!=null&&z.current!=null&&(z=1E3*z.current,!this.l_&&z>=this.T?(this.J.hide(),this.l_=!0):this.messageText&&this.messageText.isTemplated()&&(z=Math.max(0,Math.ceil((this.T-z)/1E3)),z!==this.W&&(tP(this.messageText,{TIME_REMAINING:String(z)}),this.W=z)))}};g.h(Xyq,Sj);g.k=Xyq.prototype; g.k.init=function(z,K,f){Sj.prototype.init.call(this,z,K,{});K.image&&K.image.thumbnail?K.headline?K.description?K.actionButton&&g.A(K.actionButton,g.Fd)?(this.T.init(ej("ad-image"),K.image,f),this.Y.init(ej("ad-text"),K.headline,f),this.J.init(ej("ad-text"),K.description,f),z=["ytp-ad-underlay-action-button"],this.api.Z().B("use_blue_buttons_for_desktop_player_underlay")&&z.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new jj(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq, z),K.backgroundColor&&g.H6(this.element,"background-color",g.rc(K.backgroundColor)),g.d(this,this.actionButton),this.actionButton.hL(this.W),this.actionButton.init(ej("button"),g.A(K.actionButton,g.Fd),f),K=g.uY(this.api.Z().experiments,"player_underlay_video_width_fraction"),this.api.Z().B("place_shrunken_video_on_left_of_player")?(f=this.S,g.Dz(f,"ytp-ad-underlay-left-container"),g.ey(f,"ytp-ad-underlay-right-container"),g.H6(this.S,"margin-left",Math.round((K+.02)*100)+"%")):(f=this.S,g.Dz(f,"ytp-ad-underlay-right-container"), g.ey(f,"ytp-ad-underlay-left-container")),g.H6(this.S,"width",Math.round((1-K-.04)*100)+"%"),this.api.Tn()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.x7.bind(this)),this.api.addEventListener("resize",this.e9.bind(this))):g.sm(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.sm(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.sm(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.sm(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.k.show=function(){xF8(!0);this.actionButton&&this.actionButton.show();Sj.prototype.show.call(this)}; g.k.hide=function(){xF8(!1);this.actionButton&&this.actionButton.hide();Sj.prototype.hide.call(this)}; g.k.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.x7.bind(this));this.api.removeEventListener("resize",this.e9.bind(this));this.hide()}; g.k.onClick=function(z){Sj.prototype.onClick.call(this,z);this.actionButton&&g.t$(this.actionButton.element,z.target)&&this.api.pauseVideo()}; g.k.x7=function(z){z==="transitioning"?(this.S.classList.remove("ytp-ad-underlay-clickable"),this.show()):z==="visible"?this.S.classList.add("ytp-ad-underlay-clickable"):z==="hidden"&&(this.hide(),this.S.classList.remove("ytp-ad-underlay-clickable"))}; g.k.e9=function(z){z.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):z.width>875?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")); g.H6(this.Y.element,"font-size",z.width/40+"px")};g.h(H$,Sj); H$.prototype.init=function(z,K,f){Sj.prototype.init.call(this,z,K,f);K.toggledLoggingParams&&(this.toggledLoggingParams=K.toggledLoggingParams);K.answer&&g.A(K.answer,g.Fd)?(z=new jj(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),z.hL(this.answer),z.init(ej("ytp-ad-survey-answer-button"),g.A(K.answer,g.Fd),f),z.show()):K.answer&&g.A(K.answer,u9)&&(this.S=new Cc(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq, ["ytp-ad-survey-answer-toggle-button"]),this.S.hL(this.answer),g.d(this,this.S),this.S.init(ej("survey-answer-button"),g.A(K.answer,u9),f));this.show()}; H$.prototype.rN=function(z){this.layoutId?K6(this.Zq,z,this.layoutId,this.macros):(z=new g.UT("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.sm(z))}; H$.prototype.onClick=function(z){Sj.prototype.onClick.call(this,z);if(this.api.Z().B("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; H$.prototype.clear=function(){this.hide()};g.h(FC8,Sj);FC8.prototype.init=function(z,K,f){Sj.prototype.init.call(this,z,K,f);K.answer&&g.A(K.answer,u9)&&(this.button=new Cc(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.hL(this.S),this.button.init(ej("survey-none-of-the-above-button"),g.A(K.answer,u9),f));this.show()};g.h(QH,jj);QH.prototype.init=function(z,K,f){jj.prototype.init.call(this,z,K,f);z=!1;K.text&&(K=g.Lc(K.text),z=!g.h6(K));z||g.Al(Error("No submit text was present in the renderer."))}; QH.prototype.onClick=function(z){this.publish("l");jj.prototype.onClick.call(this,z)};g.h(qH,Sj); qH.prototype.init=function(z,K,f){Sj.prototype.init.call(this,z,K,f);if(z=K.skipOrPreviewRenderer)g.A(z,yk)?(z=g.A(z,yk),f=new HP(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,this.J,!0),f.hL(this.skipOrPreview),f.init(ej("skip-button"),z,this.macros),g.d(this,f),this.S=f):g.A(z,xP)&&(z=g.A(z,xP),f=new bs(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,this.J,!1),f.hL(this.skipOrPreview),f.init(ej("ad-preview"),z,this.macros),f.l_.show(100),f.show(),g.d(this,f), this.S=f);this.S==null&&(z=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(K)),g.sm(z));K.submitButton&&(z=K.submitButton,g.A(z,g.Fd)&&(z=g.A(z,g.Fd),f=new QH(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq),f.hL(this.submitButton),f.init(ej("survey-submit"),z,this.macros),g.d(this,f),this.Y=f));if(z=K.adBadgeRenderer)z=g.A(z,WyQ),f=new qS(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,!0,!0,!0),f.hL(this.T),f.init(ej("simple-ad-badge"), z,this.macros),this.adBadge=f.element,g.d(this,f);if(z=K.adDurationRemaining)z=g.A(z,Q9H),f=new JP(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,this.J,void 0,!0),f.hL(this.T),f.init(ej("ad-duration-remaining"),z,this.macros),g.d(this,f);(K=K.adInfoRenderer)&&g.A(K,Xd)&&(z=new MS(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,this.element,void 0,!0),g.d(this,z),this.adBadge!==void 0?this.T.insertBefore(z.element,this.adBadge.nextSibling):z.hL(this.T),z.init(ej("ad-info-hover-text-button"), g.A(K,Xd),this.macros));this.show()}; qH.prototype.clear=function(){this.hide()};g.h(mP,Sj);mP.prototype.init=function(z,K,f){Sj.prototype.init.call(this,z,K,f);C08(this)}; mP.prototype.show=function(){this.T=Date.now();Sj.prototype.show.call(this)}; mP.prototype.zk=function(){};g.h(TOu,mP);g.k=TOu.prototype;g.k.init=function(z,K,f){var M=this;mP.prototype.init.call(this,z,K,f);K.questionText&&OBp(this,K.questionText);K.answers&&K.answers.forEach(function(p,t){g.A(p,Rb)&&r7g(M,g.A(p,Rb),f,t)}); this.W=new Set(this.Y.map(function(p){return p.S.S})); (z=K.noneOfTheAbove)&&(z=g.A(z,mnT))&&UFg(this,z,f);K.surveyAdQuestionCommon&&oGu(this,K.surveyAdQuestionCommon);K.submitEndpoints&&(this.submitEndpoints=K.submitEndpoints);this.X(this.element,"change",this.onChange);this.show()}; g.k.zk=function(){zp2(this,!1);this.J.Y.subscribe("l",this.e6c,this)}; g.k.onChange=function(z){z.target===this.noneOfTheAbove.button.S?KS4(this):this.W.has(z.target)&&(this.noneOfTheAbove.button.toggleButton(!1),zp2(this,!0))}; g.k.e6c=function(){var z=[],K=this.Y.reduce(function(p,t,B){var v=t.toggledLoggingParams;t.S&&t.S.isToggled()&&v&&(p.push(v),z.push(B));return p},[]).join("&"),f=this.submitEndpoints.map(function(p){if(!p.loggingUrls)return p; p=g.fL(p);p.loggingUrls=p.loggingUrls.map(function(t){t.baseUrl&&(t.baseUrl=ne(t.baseUrl,K));return t}); return p}); if(f){f=g.a(f);for(var M=f.next();!M.done;M=f.next())M=M.value,this.layoutId?K6(this.Zq,M,this.layoutId,this.macros):g.sm(Error("Missing layoutId for multi_select_question."))}this.api.Z().B("supports_multi_step_on_desktop")&&this.l_(z)}; g.k.clear=function(){this.api.Z().B("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.h(ly,mP);ly.prototype.init=function(z,K,f){var M=this;mP.prototype.init.call(this,z,K,f);K.questionText&&OBp(this,K.questionText);K.answers&&K.answers.forEach(function(p,t){g.A(p,Rb)&&r7g(M,g.A(p,Rb),f,t)}); K.surveyAdQuestionCommon?oGu(this,K.surveyAdQuestionCommon):wg(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(K)));this.show()}; ly.prototype.clear=function(){this.api.Z().B("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.h(VH,Sj);VH.prototype.init=function(z,K,f){var M=this;Sj.prototype.init.call(this,z,K,f);if(this.api.Z().B("supports_multi_step_on_desktop")){var p;this.conditioningRules=(p=K.conditioningRules)!=null?p:[];var t;this.Y=(t=K.questions)!=null?t:[];var B;((B=K.questions)==null?0:B.length)&&p59(this,0)}else(K.questions||[]).forEach(function(v){g.A(v,je)?fT1(M,g.A(v,je),f):g.A(v,Av)&&Mq7(M,g.A(v,Av),f)}); this.show()}; VH.prototype.clear=function(){this.api.Z().B("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; VH.prototype.J=function(z){var K=this;if(this.api.Z().B("supports_multi_step_on_desktop")){var f;if((f=this.conditioningRules)==null?0:f.length){var M;if(z.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(p){return p.questionIndex===K.S})==null)g.sm(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(p){if(p.questionIndex===K.S)switch(p.condition){case "CONDITION_ALL_OF":var t;if((t=p.answerIndices)==null?0:t.every(function(v){return z.includes(v)}))M=p.nextQuestionIndex; break;case "CONDITION_ANY_OF":var B;if((B=p.answerIndices)==null?0:B.some(function(v){return z.includes(v)}))M=p.nextQuestionIndex; break;default:g.sm(Error("Expected specified condition in survey conditioning rules."))}}),M!=null)p59(this,M); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.sm(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};g.h(n7,Sj); n7.prototype.init=function(z,K,f){var M=this;Sj.prototype.init.call(this,z,K,f);z=K.timeoutSeconds||0;if(typeof z!=="number"||z<0)g.sm(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+z));else if(K.timeoutCommands)if(K.text)if(K.ctaButton&&g.A(K.ctaButton,g.Fd))if(K.brandImage)if(K.backgroundImage&&g.A(K.backgroundImage,OF)&&g.A(K.backgroundImage,OF).landscape){this.layoutId||g.sm(Error("Missing layoutId for survey interstitial."));tq1(this.interstitial,g.A(K.backgroundImage, OF).landscape);tq1(this.logoImage,K.brandImage);g.B6(this.text,g.Lc(K.text));var p=["ytp-ad-survey-interstitial-action-button"];p.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new jj(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,p);g.d(this,this.actionButton);this.actionButton.hL(this.Y);this.actionButton.init(ej("button"),g.A(K.ctaButton,g.Fd),f);this.actionButton.show();this.S=new ls(this.api,z*1E3);this.S.subscribe("g",function(){M.transition.hide()}); g.d(this,this.S);this.X(this.element,"click",function(t){var B=t.target===M.interstitial;t=M.actionButton.element.contains(t.target);if(B||t)if(M.transition.hide(),B)M.api.onAdUxClicked(M.componentType,M.layoutId)}); this.transition.show(100)}else g.sm(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.sm(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.sm(Error("SurveyTextInterstitialRenderer has no button."));else g.sm(Error("SurveyTextInterstitialRenderer has no text."));else g.sm(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; n7.prototype.clear=function(){this.hide()}; n7.prototype.show=function(){Ba5(!0);Sj.prototype.show.call(this)}; n7.prototype.hide=function(){Ba5(!1);Sj.prototype.hide.call(this)};g.h(W$,BP);g.k=W$.prototype; g.k.init=function(z,K){BP.prototype.init.call(this,z,K,{});if(K.durationMilliseconds){if(K.durationMilliseconds<0){g.sm(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+K.durationMilliseconds));return}this.Y=K.durationMilliseconds}else this.Y=this.S.s2();var f;if((f=K.previewText)==null||!f.text||g.h6(K.previewText.text))g.sm(Error("No text is returned for AdPreview."));else{this.W=K.previewText;K.previewText.isTemplated||g.B6(this.T,K.previewText.text);var M; if(((M=this.api.getVideoData(1))==null?0:M.ND)&&K.previewImage){var p,t;(z=((t=iR(((p=K.previewImage)==null?void 0:p.sources)||[],52,!1))==null?void 0:t.url)||"")&&z.length?(this.previewImage=new g.RT({j:"img",K:"ytp-preview-ad__image",V:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",z),g.d(this,this.previewImage),this.previewImage.hL(this.element)):g.sm(Error("Failed to get imageUrl in AdPreview."))}else this.T.classList.add("ytp-preview-ad__text--padding--wide")}}; g.k.clear=function(){this.hide()}; g.k.hide=function(){vP(this);BP.prototype.hide.call(this)}; g.k.show=function(){NS(this);BP.prototype.show.call(this)}; g.k.KY=function(){this.hide()}; g.k.DE=function(){if(this.S){var z=this.S.getProgressState();if(z!=null&&z.current)if(z=1E3*z.current,z>=this.Y)this.transition.hide();else{var K;if((K=this.W)==null?0:K.isTemplated)if(K=Math.max(0,Math.ceil((this.Y-z)/1E3)),K!==this.J){var f,M;(z=(f=this.W)==null?void 0:(M=f.text)==null?void 0:M.replace("{TIME_REMAINING}",String(K)))&&g.B6(this.T,z);this.J=K}}}};g.h(JZ,Sj); JZ.prototype.init=function(z,K){Sj.prototype.init.call(this,z,K,{});var f,M;if((z=((M=iR(((f=K.image)==null?void 0:f.sources)||[],NaH(K),!0))==null?void 0:M.url)||"")&&z.length){f=this.dE("ytp-ad-avatar");f.src=z;var p,t;if(M=(p=K.interaction)==null?void 0:(t=p.accessibility)==null?void 0:t.label)f.alt=M;switch(K.size){case "AD_AVATAR_SIZE_XXS":this.element.classList.add("ytp-ad-avatar--size-xxs");break;case "AD_AVATAR_SIZE_XS":this.element.classList.add("ytp-ad-avatar--size-xs");break;case "AD_AVATAR_SIZE_S":this.element.classList.add("ytp-ad-avatar--size-s"); break;case "AD_AVATAR_SIZE_M":this.element.classList.add("ytp-ad-avatar--size-m");break;case "AD_AVATAR_SIZE_L":this.element.classList.add("ytp-ad-avatar--size-l");break;case "AD_AVATAR_SIZE_XL":this.element.classList.add("ytp-ad-avatar--size-xl");break;case "AD_AVATAR_SIZE_RESPONSIVE":this.element.classList.add("ytp-ad-avatar--size-responsive");break;default:this.element.classList.add("ytp-ad-avatar--size-m")}switch(K.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":this.element.classList.add("ytp-ad-avatar--rounded-corner"); break;default:this.element.classList.add("ytp-ad-avatar--circular")}}else g.sm(Error("Failed to get imageUrl in AdAvatar."))}; JZ.prototype.clear=function(){this.hide()}; JZ.prototype.onClick=function(z){Sj.prototype.onClick.call(this,z)};g.h(gL,Sj); gL.prototype.init=function(z,K){Sj.prototype.init.call(this,z,K,{});var f;z=(f=K.label)==null?void 0:f.content;if((f=z!=null&&!g.h6(z))||K.iconImage){f&&(this.buttonText=new g.RT({j:"span",K:"ytp-ad-button-vm__text",qc:z}),g.d(this,this.buttonText),this.buttonText.hL(this.element));var M,p,t=((M=K.interaction)==null?0:(p=M.accessibility)==null?0:p.label)||f?z:"";t&&T$(this.element,t+" This link opens in new tab");ol(this.element);if(K.iconImage){M=void 0;if(K.iconImage){a:{p=K.iconImage;if(p.sources)for(p= g.a(p.sources),z=p.next();!z.done;z=p.next())if(z=z.value,t=void 0,(t=z.clientResource)==null?0:t.imageName){p=z;break a}p=void 0}if(p){var B;M={iconType:(B=p.clientResource)==null?void 0:B.imageName}}}B=At(M,!1,this.Y);B!=null&&(this.buttonIcon=new g.RT({j:"span",K:"ytp-ad-button-vm__icon",L:[B]}),g.d(this,this.buttonIcon),K.iconLeading?(M0(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):f?(this.buttonIcon.hL(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.hL(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(K.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_FILLED":this.element.classList.add(this.S?"ytp-ad-button-vm--style-filled-dark":"ytp-ad-button-vm--style-filled");break;default:this.element.classList.add("ytp-ad-button-vm--style-filled")}switch(K.size){case "AD_BUTTON_SIZE_COMPACT":this.element.classList.add("ytp-ad-button-vm--size-compact"); break;case "AD_BUTTON_SIZE_LARGE":this.element.classList.add("ytp-ad-button-vm--size-large");break;default:this.element.classList.add("ytp-ad-button-vm--size-default")}}else g.Al(Error("AdButton does not have label or an icon."))}; gL.prototype.clear=function(){this.hide()}; gL.prototype.onClick=function(z){Sj.prototype.onClick.call(this,z)};g.h(vS1,BP);g.k=vS1.prototype; g.k.init=function(z,K){BP.prototype.init.call(this,z,K,{});this.api.Z().B("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.dE("ytp-ad-avatar-lockup-card__avatar_and_text_container").classList.add("ytp-ad-avatar-lockup-card__avatar_and_text_container--large"),this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline--large"),this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--large"),this.adButton.element.classList.add("ytp-ad-avatar-lockup-card__button--large"), this.adAvatar.element.classList.add("ytp-ad-avatar-lockup-card__ad_avatar--large"),M0(this.dE("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(z=g.A(K.avatar,xX)){var f=K.headline;if(f){var M=K.description;if(M){var p=g.A(K.button,Ob);p?(this.adAvatar.init(ej("ad-avatar"),z),this.headline.init(ej("ad-simple-attributed-string"),new dc(f)),this.description.init(ej("ad-simple-attributed-string"),new dc(M)),f.content&&f.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(ej("ad-button"),p),this.startMilliseconds=K.startMs||0,this.api.Tn()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.h2.bind(this)),NS(this)):g.sm(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.sm(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.sm(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.sm(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.k.DE=function(){if(this.S){var z=this.S.getProgressState();z&&z.current&&1E3*z.current>=this.startMilliseconds&&(vP(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.k.KY=function(){this.clear()}; g.k.onClick=function(z){this.api.pauseVideo();BP.prototype.onClick.call(this,z)}; g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.h2.bind(this))}; g.k.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();BP.prototype.show.call(this)}; g.k.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();BP.prototype.hide.call(this)}; g.k.h2=function(z){z==="hidden"?this.show():this.hide()};g.h(iy,Sj);g.k=iy.prototype; g.k.init=function(z,K){Sj.prototype.init.call(this,z,K,{});if(!K.label||g.h6(K.label))g.sm(Error("No label is returned for SkipAdButton."));else if(g.B6(this.J,K.label),z=At({iconType:"SKIP_NEXT_NEW"}),z==null)g.sm(Error("Unable to retrieve icon for SkipAdButton"));else if(this.T=new g.RT({j:"span",K:"ytp-skip-ad-button__icon",L:[z]}),g.d(this,this.T),this.T.hL(this.element),this.api.Z().experiments.sf("enable_skip_to_next_messaging")&&(K=g.hR(K.targetId)))this.Y=!0,this.element.setAttribute("data-tooltip-target-id",K), this.element.setAttribute("data-tooltip-target-fixed","")}; g.k.onClick=function(z){z&&z.preventDefault();var K,f;pkg(z,{contentCpn:(f=(K=this.api.getVideoData(1))==null?void 0:K.clientPlaybackNonce)!=null?f:""})===0?this.api.LH("onAbnormalityDetected"):(Sj.prototype.onClick.call(this,z),this.api.LH("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.k.clear=function(){this.S.reset();this.hide()}; g.k.hide=function(){Sj.prototype.hide.call(this)}; g.k.show=function(){this.S.start();Sj.prototype.show.call(this);this.Y&&this.api.Z().experiments.sf("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.h(IT1,BP);g.k=IT1.prototype; g.k.init=function(z,K){BP.prototype.init.call(this,z,K,{});z=g.A(K.preskipState,YP7);var f;if((f=this.api.getVideoData())==null?0:f.isDaiEnabled()){if(!z){g.sm(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.Y=new W$(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,this.S);g.d(this,this.Y);this.Y.hL(this.element);var M;(M=this.Y)==null||M.init(ej("preview-ad"),z);(f=this.Y)!=null&&(f.transition.show(100),f.show())}(f=g.A(K.skippableState,xnQ))?(K.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=K.skipOffsetMilliseconds:(g.Al(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.T.init(ej("skip-button"),f),this.show()):g.sm(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.k.show=function(){NS(this);BP.prototype.show.call(this)}; g.k.hide=function(){!this.isSkippable&&this.Y?this.Y.hide():this.T&&this.T.hide();vP(this);BP.prototype.hide.call(this)}; g.k.clear=function(){var z;(z=this.Y)==null||z.clear();this.T&&this.T.clear();vP(this);BP.prototype.hide.call(this)}; g.k.KY=function(){this.hide()}; g.k.DE=function(){if(1E3*this.S.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var z;(z=this.Y)!=null&&z.transition.hide();(z=this.T)!=null&&(z.transition.show(),z.show())}};g.h(dL,Sj); dL.prototype.init=function(z,K){Sj.prototype.init.call(this,z,K,{});if(K.label){var f;((f=K.label)==null?0:f.content)&&!g.h6(K.label.content)&&(this.linkText=new g.RT({j:"span",K:"ytp-visit-advertiser-link__text",qc:K.label.content}),g.d(this,this.linkText),this.linkText.hL(this.element));var M,p;if((M=K.interaction)==null?0:(p=M.accessibility)==null?0:p.label)T$(this.element,K.interaction.accessibility.label+" This link opens in new tab");else{var t;((t=K.label)==null?0:t.content)&&!g.h6(K.label.content)&&T$(this.element, K.label.content+" This link opens in new tab")}ol(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.sm(Error("No label found in VisitAdvertiserLink."))}; dL.prototype.onClick=function(z){Sj.prototype.onClick.call(this,z);this.api.onAdUxClicked(this.componentType,this.layoutId)}; dL.prototype.clear=function(){this.hide()};g.h(c$,Sj); c$.prototype.init=function(z,K,f,M){Sj.prototype.init.call(this,z,K,{});if(K.skipOrPreview){f=K.skipOrPreview;z=g.A(f,FyT);f=g.A(f,YP7);if(z)this.DL=new IT1(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,this.Y),g.d(this,this.DL),this.DL.hL(this.N),this.DL.init(ej("skip-ad"),z);else{var p;f&&((p=this.api.getVideoData())==null?0:p.isDaiEnabled())&&(this.J=new W$(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,this.Y,1),g.d(this,this.J),this.J.hL(this.N),this.J.init(ej("ad-preview"), f),p=this.J,p.transition.show(100),p.show())}if(p=g.A(K.skipOrPreview,FyT))var t=p.skipOffsetMilliseconds}K.playerAdCard&&(p=g.A(K.playerAdCard,X4o))&&(this.playerAdCard=new vS1(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,this.Y),g.d(this,this.playerAdCard),this.playerAdCard.hL(this.eV),this.playerAdCard.init(ej("ad-avatar-lockup-card"),p));K.adBadgeRenderer&&((p=g.A(K.adBadgeRenderer,FL))?(this.T=new s$(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,!0),g.d(this, this.T),this.T.hL(this.S),this.T.init(ej("ad-badge"),p)):g.sm(Error("AdBadgeViewModel is not found in player overlay layout.")));K.adPodIndex&&(p=g.A(K.adPodIndex,c6o))&&(this.adPodIndex=new AP(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq),g.d(this,this.adPodIndex),this.adPodIndex.hL(this.S),this.adPodIndex.init(ej("ad-pod-index"),p));K.adInfoRenderer&&((p=g.A(K.adInfoRenderer,Xd))?(this.adInfoButton=new MS(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,this.element, void 0,!0),g.d(this,this.adInfoButton),this.T!==void 0?this.S.insertBefore(this.adInfoButton.element,this.T.element.nextSibling):this.adInfoButton.hL(this.S),this.adInfoButton.init(ej("ad-info-hover-text-button"),p,this.macros)):g.Al(Error("AdInfoRenderer is not found in player overlay layout.")));var B;p=(B=this.api.getVideoData())==null?void 0:B.isDaiEnabled();K.adDurationRemaining&&p&&(B=g.A(K.adDurationRemaining,Q9H))&&(this.adDurationRemaining=new JP(this.api,this.layoutId,this.interactionLoggingClientData, this.Zq,this.Y,M.videoAdDurationSeconds,!0),g.d(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.S.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.hL(this.S),this.adDurationRemaining.init(ej("ad-duration-remaining"),B,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));K.visitAdvertiserLink&&(M=g.A(K.visitAdvertiserLink,r69))&&(this.visitAdvertiserLink=new dL(this.api,this.layoutId, this.interactionLoggingClientData,this.Zq),g.d(this,this.visitAdvertiserLink),this.visitAdvertiserLink.hL(this.S),this.visitAdvertiserLink.init(ej("visit-advertiser-link"),M));K.adDisclosureBanner&&(K=g.A(K.adDisclosureBanner,dnp))&&(this.adDisclosureBanner=new j$(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq),g.d(this,this.adDisclosureBanner),this.adDisclosureBanner.hL(this.l_),this.adDisclosureBanner.init(ej("ad-disclosure-banner"),K));this.W=new xk(this.api,this.Y,t,!0);g.d(this, this.W);g.dq(this.api,this.W.element,4);this.show()}; c$.prototype.clear=function(){this.hide()};g.h(Go7,Sj);g.k=Go7.prototype; g.k.init=function(z,K){Sj.prototype.init.call(this,z,K,{});if(K!=null&&K.title)if(z=K.title)if(this.headline.init(ej("ad-simple-attributed-string"),new dc(z)),z=g.A(K.moreInfoButton,Ob)){if(this.moreInfoButton.init(ej("ad-button"),z),K.descriptions)K.descriptions.length>0&&(z=K.descriptions[0])&&(this.S=new cP(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq),g.d(this,this.S),this.S.hL(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.S.init(ej("ad-simple-attributed-string"), new dc(z))),K.descriptions.length>1&&(K=K.descriptions[1])&&(this.Y=new cP(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq),g.d(this,this.Y),this.Y.hL(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.Y.init(ej("ad-simple-attributed-string"),new dc(K)))}else g.sm(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.sm(Error("No headline found in AdGridCardText."));else g.sm(Error("No headline found in AdGridCardText."))}; g.k.onClick=function(z){Sj.prototype.onClick.call(this,z);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.k.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var z;(z=this.S)==null||z.clear();var K;(K=this.Y)==null||K.clear()}; g.k.hide=function(){this.headline.hide();this.moreInfoButton.hide();var z;(z=this.S)==null||z.hide();var K;(K=this.Y)==null||K.hide();Sj.prototype.hide.call(this)}; g.k.show=function(){Sj.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var z;(z=this.S)==null||z.show();var K;(K=this.Y)==null||K.show()};g.h(sb,Sj);sb.prototype.init=function(z,K){Sj.prototype.init.call(this,z,K,{});if(K!=null&&K.gridCards)if(K.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.sm(Error("Only single column style is currently supported in AdGridCardCollection."));else for(z=g.a(K.gridCards),K=z.next();!K.done;K=z.next()){if(K=g.A(K.value,j98)){var f=new Go7(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq);g.d(this,f);f.hL(this.element);f.init(ej("ad-grid-card-text"),K);this.S.push(f)}}else g.sm(Error("No grid cards found in AdGridCardCollection."))}; sb.prototype.show=function(){for(var z=g.a(this.S),K=z.next();!K.done;K=z.next())K.value.show();Sj.prototype.show.call(this)}; sb.prototype.clear=function(){this.hide();for(var z=g.a(this.S),K=z.next();!K.done;K=z.next())K.value.clear()}; sb.prototype.hide=function(){for(var z=g.a(this.S),K=z.next();!K.done;K=z.next())K.value.hide();Sj.prototype.hide.call(this)};g.h(AZ,BP);g.k=AZ.prototype;g.k.init=function(z,K,f,M,p){p=p===void 0?0:p;BP.prototype.init.call(this,z,K,f,M);this.playerProgressOffsetMs=p;NS(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.Ac.bind(this));this.api.addEventListener("resize",this.cG.bind(this));this.api.Tn()?(this.Y=!0,this.api.u4(!0),this.show()):this.hide()}; g.k.DE=function(){if(this.S){var z=this.S.getProgressState();z&&z.current&&!this.Y&&1E3*z.current>=this.playerProgressOffsetMs&&(this.Y=!0,this.api.u4(!0),this.show())}}; g.k.KY=function(){this.Y&&this.api.u4(!1);this.hide()}; g.k.clear=function(){this.api.u4(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.Ac.bind(this));this.api.removeEventListener("resize",this.cG.bind(this));vP(this);this.hide()}; g.k.hide=function(){bWo(!1);BP.prototype.hide.call(this)}; g.k.show=function(){bWo(!0);BP.prototype.show.call(this)};g.h(epo,AZ);g.k=epo.prototype; g.k.init=function(z,K,f,M){if(K!=null&&K.adGridCardCollection)if(K!=null&&K.adButton){var p=Number(K.playerProgressOffsetMs||"0");isNaN(p)?AZ.prototype.init.call(this,z,K,f,M):AZ.prototype.init.call(this,z,K,f,M,p);z=K.headline;f=g.A(K.adAvatar,xX);z&&f?(this.headline=new cP(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq),g.d(this,this.headline),this.headline.hL(this.dE("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(ej("ad-simple-attributed-string"),new dc(z)), this.adAvatar=new JZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq),g.d(this,this.adAvatar),this.adAvatar.hL(this.dE("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(ej("ad-avatar"),f)):this.J.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");z=g.A(K.adGridCardCollection,A6Q);this.adGridCardCollection.init(ej("ad-grid-card-collection"),z);K=g.A(K.adButton,Ob);this.adButton.init(ej("ad-button"),K); this.hide()}else g.sm(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.sm(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.k.onClick=function(z){(this.adButton&&g.t$(this.adButton.element,z.target)||this.adAvatar&&g.t$(this.adAvatar.element,z.target))&&this.api.pauseVideo();AZ.prototype.onClick.call(this,z);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.k.cG=function(){}; g.k.clear=function(){this.hide();var z;(z=this.headline)==null||z.clear();var K;(K=this.adAvatar)==null||K.clear();this.adGridCardCollection.clear();this.adButton.clear();AZ.prototype.clear.call(this)}; g.k.show=function(){var z;(z=this.headline)==null||z.show();var K;(K=this.adAvatar)==null||K.show();this.adGridCardCollection.show();this.adButton.show();AZ.prototype.show.call(this)}; g.k.hide=function(){var z;(z=this.headline)==null||z.hide();var K;(K=this.adAvatar)==null||K.hide();this.adGridCardCollection.hide();this.adButton.hide();AZ.prototype.hide.call(this)}; g.k.Ac=function(z){z==="transitioning"?(this.T.classList.remove("ytp-ad-underlay-clickable"),this.show()):z==="visible"?this.T.classList.add("ytp-ad-underlay-clickable"):z==="hidden"&&(this.hide(),this.T.classList.remove("ytp-ad-underlay-clickable"))};g.h(jH,Sj); jH.prototype.init=function(z,K){Sj.prototype.init.call(this,z,K,{});if(K.attributes===void 0)g.sm(Error("No attributes found in AdDetailsLineViewModel."));else if(K.style===void 0)g.sm(Error("No style found in AdDetailsLineViewModel."));else{z=g.a(K.attributes);for(var f=z.next();!f.done;f=z.next())if(f=f.value,f.text!==void 0){f=f.text;var M=K.style,p=new cP(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq);g.d(this,p);p.hL(this.element);a:switch(M){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":M="ytp-ad-details-line__text--style-responsive"; break a;default:M="ytp-ad-details-line__text--style-standard"}p.element.classList.add(M);p.init(ej("ad-simple-attributed-string"),new dc(f));this.S.push(p)}this.show()}}; jH.prototype.show=function(){this.S.forEach(function(z){z.show()}); Sj.prototype.show.call(this)}; jH.prototype.clear=function(){this.hide()}; jH.prototype.hide=function(){this.S.forEach(function(z){z.hide()}); Sj.prototype.hide.call(this)};g.h(YX,Sj);YX.prototype.init=function(z,K){Sj.prototype.init.call(this,z,K,{});var f,M;(z=((M=iR(((f=K.image)==null?void 0:f.sources)||[]))==null?void 0:M.url)||"")&&z.length?(f=this.dE("ytp-image-background-image"),g.H6(f,"backgroundImage","url("+z+")"),K.blurLevel!==void 0&&g.H6(f,"filter","blur("+K.blurLevel+"px)"),K.gradient!==void 0&&(K=new g.F({j:"div",Wx:["ytp-image-background--gradient-vertical"]}),g.d(this,K),K.hL(this.element)),this.show()):g.sm(Error("Failed to get imageUrl in ImageBackground."))}; YX.prototype.clear=function(){this.hide()};g.h(w5p,BP);g.k=w5p.prototype;g.k.init=function(z,K){BP.prototype.init.call(this,z,K,{});g.H6(this.T,"stroke-dasharray","0 "+this.Y);this.show()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){vP(this);BP.prototype.hide.call(this)}; g.k.show=function(){NS(this);BP.prototype.show.call(this)}; g.k.KY=function(){this.hide()}; g.k.DE=function(){if(this.S){var z=this.S.getProgressState();z!=null&&z.current!=null&&g.H6(this.T,"stroke-dasharray",z.current/z.seekableEnd*this.Y+" "+this.Y)}};g.h(XL,Sj); XL.prototype.init=function(z,K){Sj.prototype.init.call(this,z,K,{});if(ydH(K)){this.adAvatar=new JZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq);g.d(this,this.adAvatar);this.adAvatar.hL(this.dE("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(ej("ad-avatar"),g.A(K.adAvatar,xX));this.headline=new cP(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq);g.d(this,this.headline);this.headline.hL(this.dE("ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"));this.headline.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline"); this.headline.init(ej("ad-simple-attributed-string"),new dc(K.headline));if(z=g.A(K.adDetailsLine,iL_))this.detailsLine=new jH(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq),g.d(this,this.detailsLine),this.detailsLine.hL(this.dE("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(ej("ad-details-line"),z);this.adButton=new gL(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,!0);g.d(this,this.adButton); this.adButton.hL(this.dE("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(ej("ad-button"),g.A(K.adButton,Ob));this.adBadge=new s$(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,!0);g.d(this,this.adBadge);this.adBadge.hL(this.J);this.adBadge.init(ej("ad-badge"),g.A(K.adBadge,FL));this.adInfoButton=new MS(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,this.element,void 0,!0);g.d(this,this.adInfoButton);this.adInfoButton.hL(this.J); this.adInfoButton.init(ej("ad-info-hover-text-button"),g.A(K.adInfoRenderer,Xd),this.macros);if(z=g.A(K.skipAdButton,xnQ))this.skipAdButton=new iy(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq),g.d(this,this.skipAdButton),this.skipAdButton.hL(this.element),this.skipAdButton.init(ej("skip-button"),z);this.Y=new VD(K.durationMilliseconds);g.d(this,this.Y);if(z=g.A(K.countdownViewModel,OL1))this.S=new w5p(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq,this.Y),g.d(this, this.S),this.S.hL(this.dE("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.S.init(ej("timed-pie-countdown"),z);if(K=g.A(K.imageBackground,s98))this.imageBackground=new YX(this.api,this.layoutId,this.interactionLoggingClientData,this.Zq),g.d(this,this.imageBackground),this.imageBackground.hL(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(ej("image-background"), K);this.show();this.element.focus()}}; XL.prototype.clear=function(){g.g0(this.T);this.hide()}; XL.prototype.show=function(){D8f(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();Sj.prototype.show.call(this)}; XL.prototype.hide=function(){D8f(!1);this.adAvatar&&this.adAvatar.hide();this.headline&&this.headline.hide();this.adButton&&this.adButton.hide();this.detailsLine&&this.detailsLine.hide();this.adBadge&&this.adBadge.hide();this.adInfoButton&&this.adInfoButton.hide();this.skipAdButton&&this.skipAdButton.hide();this.S&&this.S.hide();this.imageBackground&&this.imageBackground.hide();Sj.prototype.hide.call(this)};g.h(rL,g.Dv);g.k=rL.prototype;g.k.s2=function(){return 1E3*this.api.getDuration(this.mJ,!1)}; g.k.stop=function(){this.S&&this.Nv.W8(this.S)}; g.k.C6=function(){var z=this.api.getProgressState(this.mJ);this.Y={seekableStart:z.seekableStart,seekableEnd:z.seekableEnd,current:this.api.getCurrentTime(this.mJ,!1)};this.publish("h")}; g.k.getProgressState=function(){return this.Y}; g.k.AX=function(z){g.Ld(z,2)&&this.publish("g")};var hYo="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat("shopping-companion action-companion image-companion ads-engagement-panel ads-engagement-panel-layout banner-image top-banner-image-text-icon-buttoned".split(" "));g.h(Zk,Ua); Zk.prototype.J=function(z){var K=z.id,f=z.content,M=f.componentType;if(!hYo.includes(M))switch(z.actionType){case 1:z=this.api;var p=this.Zq,t=f.layoutId,B=f.interactionLoggingClientData,v=f instanceof fn?f.YL:!1,I=f instanceof fn||f instanceof mc?f.v_:!1;B=B===void 0?{}:B;v=v===void 0?!1:v;I=I===void 0?!1:I;switch(M){case "invideo-overlay":z=new WCT(z,t,B,p);break;case "player-overlay":z=new FN(z,t,B,p,new rL(z),I);break;case "player-overlay-layout":z=new c$(z,t,B,p,new rL(z));break;case "survey":z= new VH(z,t,B,p);break;case "ad-action-interstitial":z=new qka(z,t,B,p,v,I);break;case "video-interstitial-buttoned-centered":z=new XL(z,t,B,p);break;case "survey-interstitial":z=new n7(z,t,B,p);break;case "ad-message":z=new jLI(z,t,B,p,new rL(z,1));break;case "player-underlay":z=new Xyq(z,t,B,p);break;case "display-underlay-text-grid-cards":z=new epo(z,t,B,p,new rL(z));break;default:z=null}if(!z){g.Al(Error("No UI component returned from ComponentFactory for type: "+M));break}g.o8(this.Y,K)?g.Al(Error("Ad UI component already registered: "+ K)):this.Y[K]=z;z.bind(f);f instanceof Kn?this.T?this.T.append(z.Gz):g.Al(Error("Underlay view was not created but UnderlayRenderer was created")):this.C.append(z.Gz);break;case 2:K=koZ(this,z);if(K==null)break;K.bind(f);break;case 3:f=koZ(this,z),f!=null&&(g.DO(f),g.o8(this.Y,K)?(f=this.Y,K in f&&delete f[K]):g.Al(Error("Ad UI component does not exist: "+K)))}}; Zk.prototype.JL=function(){g.yj(Object.values(this.Y));this.Y={};Ua.prototype.JL.call(this)};g.h(hpp,g.R5);g.k=hpp.prototype;g.k.create=function(){try{aTf(this),this.load(),this.created=!0,aTf(this)}catch(z){R3(z instanceof Error?z:String(z))}}; g.k.load=function(){try{ug7(this)}finally{Ur(L7(this.S).Ep)&&this.player.A_("ad",1)}}; g.k.destroy=function(){var z=this.player.getVideoData(1);this.S.S.eN.CY(z&&z.clientPlaybackNonce||"");this.unload();this.created=!1}; g.k.unload=function(){g.R5.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(K){R3(K instanceof Error?K:String(K))}if(this.Y!=null){var z=this.Y;this.Y=null;z.dispose()}this.T.reset()}; g.k.g_=function(){return!1}; g.k.getAdState=function(){return-1}; g.k.getOptions=function(){return Object.values(kdS)}; g.k.Lo=function(z,K){K=K===void 0?{}:K;switch(z){case "replaceUrlMacros":return z=K,z.url?(K=s1a(this.player),Object.assign(K,z.Pa_),z=g.Jy(z.url,K)):z=null,z;case "onAboutThisAdPopupClosed":this.xe(K);break;case "executeCommand":z=K;z.command&&z.layoutId&&this.executeCommand(z);break;default:return null}}; g.k.JF=function(z){var K;return!((K=this.S.S.ML)==null||!K.get().JF(z))}; g.k.xe=function(z){z.isMuted&&Pca(L7(this.S).CJ,L7(this.S).yJ,z.layoutId);this.kQ&&this.kQ.xe()}; g.k.executeCommand=function(z){L7(this.S).Zq.executeCommand(z.command,z.layoutId)};g.ov("yt.player.Application.create",g.hJ.create);g.ov("yt.player.Application.createAlternate",g.hJ.create);cVa(gx(),y4f);var aj7=g.CW("ytcsi.tick");aj7&&aj7("pe");g.a5("ad",hpp);g.h(g.TZ,g.J);g.TZ.prototype.start=function(z,K,f){this.config={from:z,to:K,duration:f,startTime:(0,g.X)()};this.next()}; g.TZ.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.TZ.prototype.next=function(){if(this.config){var z=this.config,K=z.from,f=z.to,M=z.duration;z=z.startTime;var p=(0,g.X)()-z;z=this.S;M=XOo(z,p/M);if(M==0)z=z.G;else if(M==1)z=z.D;else{p=le(z.G,z.C,M);var t=le(z.C,z.W,M);z=le(z.W,z.D,M);p=le(p,t,M);t=le(t,z,M);z=le(p,t,M)}z=g.qt(z,0,1);this.callback(K+(f-K)*z);z<1&&this.delay.start()}};g.h(g.Ub,g.F);g.k=g.Ub.prototype;g.k.hasSuggestions=function(){return this.suggestionData.length>0}; g.k.YE=function(){this.Y&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.k.show=function(){g.F.prototype.show.call(this);quQ(this)}; g.k.lf=function(){this.Y&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.k.xT=function(){this.NB(this.api.wE().getPlayerSize())}; g.k.NB=function(z){var K=this.api.isEmbedsShortsMode()?.5625:16/9,f=this.api.po();z=z.width-(f?112:58);f=Math.ceil(z/(f?320:192));var M=(z-f*8)/f;K=Math.floor(M/K);for(var p=g.a(this.S),t=p.next();!t.done;t=p.next())t=t.value.dE("ytp-suggestion-image"),t.style.width=M+"px",t.style.height=K+"px";this.suggestions.element.style.height=K+"px";this.J=M;this.D=K;this.containerWidth=z;this.columns=f;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.zX(this)}; g.k.onVideoDataChange=function(){var z=this.api.Z(),K=this.api.getVideoData();this.W=K.f3?!1:z.J;this.suggestionData=K.suggestions?g.ds(K.suggestions,function(f){return f&&!f.playlistId}):[]; lTQ(this);K.f3?this.title.update({title:g.Pt("Video kh\u00e1c t\u1eeb $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:K.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"Video ng\u1eafn kh\u00e1c":"Video kh\u00e1c"})}; g.k.scrollTo=function(z){z=g.qt(z,this.containerWidth-this.suggestionData.length*(this.J+8),0);this.G.start(this.scrollPosition,z,1E3);this.scrollPosition=z;g.zX(this);quQ(this)};})(_yt_player);